From 1a6653b69dad08be197153c3a2790e4d79ba3bd3 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 18 Apr 2017 08:26:27 +0900 Subject: [PATCH] Fix #382 escape problem --- autoload/neosnippet/view.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/neosnippet/view.vim b/autoload/neosnippet/view.vim index 1141d4c..50394d4 100644 --- a/autoload/neosnippet/view.vim +++ b/autoload/neosnippet/view.vim @@ -67,7 +67,7 @@ function! neosnippet#view#_insert(snippet, options, cur_text, col) abort "{{{ \ '<|\1|>', 'g') " Substitute escaped characters. - let snip_word = substitute(snip_word, '\\\\', '\\', 'g') + let snip_word = substitute(snip_word, '\\\(\\\|`\)', '\1', 'g') " Insert snippets. let next_line = getline('.')[a:col-1 :]