diff --git a/autoload/neosnippet/mappings.vim b/autoload/neosnippet/mappings.vim index 9d00d74..db22d3a 100644 --- a/autoload/neosnippet/mappings.vim +++ b/autoload/neosnippet/mappings.vim @@ -127,6 +127,11 @@ function! neosnippet#mappings#_expand_target_trigger(trigger) "{{{ endif call neosnippet#view#_expand(cur_text, col, a:trigger) + + if !neosnippet#mappings#jumpable() + call cursor(0, col('.') - 1) + stopinsert + endif endfunction"}}} function! s:snippets_expand(cur_text, col) "{{{