diff --git a/autoload/neosnippet.vim b/autoload/neosnippet.vim index 64a49df..ac1a512 100644 --- a/autoload/neosnippet.vim +++ b/autoload/neosnippet.vim @@ -108,7 +108,7 @@ function! neosnippet#get_mirror_placeholder_marker_pattern() abort "{{{ return '<|\d\+|>' endfunction"}}} function! neosnippet#get_mirror_placeholder_marker_substitute_pattern() abort "{{{ - return '\$\(\d\+\)' + return '\\\@', 'g') " Substitute escaped characters. - let snip_word = substitute(snip_word, '\\\(\\\|`\)', '\1', 'g') + let snip_word = substitute(snip_word, '\\\(\\\|`\|\$\)', '\1', 'g') " Insert snippets. let next_line = getline('.')[a:col-1 :]