From 2c97d62503ed5f6639bd43504c35b51f4fd05f8f Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 23 Jun 2015 21:51:14 +0900 Subject: [PATCH] Fix #279 add g:neosnippet#enable_conceal_markers --- autoload/neosnippet.vim | 2 ++ autoload/neosnippet/init.vim | 2 +- doc/neosnippet.txt | 7 +++++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 8cc449c..13df2ba 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -39,6 +39,8 @@ call neosnippet#util#set_default( \ 'g:neosnippet#enable_snipmate_compatibility', 0) call neosnippet#util#set_default( \ 'g:neosnippet#expand_word_boundary', 0) +call neosnippet#util#set_default( + \ 'g:neosnippet#enable_conceal_markers', 1) "}}} function! neosnippet#expandable_or_jumpable() "{{{ diff --git a/autoload/neosnippet/init.vim b/autoload/neosnippet/init.vim index 27f83e9..70393a1 100644 --- a/autoload/neosnippet/init.vim +++ b/autoload/neosnippet/init.vim @@ -97,7 +97,7 @@ function! s:initialize_others() "{{{ \ .neosnippet#get_sync_placeholder_marker_pattern().'\|' \ .neosnippet#get_mirror_placeholder_marker_pattern()."'" \ 'containedin=ALL oneline' - if has('conceal') + if g:neosnippet#enable_conceal_markers && has('conceal') autocmd BufNewFile,BufRead,Syntax * \ syntax region neosnippetConcealExpandSnippets \ matchgroup=neosnippetExpandSnippets diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index 42a8542..0f8adf8 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -212,6 +212,13 @@ g:neosnippet#expand_word_boundary The default value is 0. + *g:neosnippet#enable_conceal_markers* +g:neosnippet#enable_conceal_markers + If this variable is not 0, neosnippet will use the |conceal| + markers. + + The default value is 1. + *g:neosnippet#scope_aliases* g:neosnippet#scope_aliases It is a dictionary that associating certain filetypes with