From 8583d10c5cc3664334d4e98b756f6a12a30a008b Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Mon, 3 Apr 2017 00:31:23 +0800 Subject: [PATCH] Fix enter mapping --- autoload/SpaceVim/mapping/enter.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/SpaceVim/mapping/enter.vim b/autoload/SpaceVim/mapping/enter.vim index 0eb58227b..f828bcf84 100644 --- a/autoload/SpaceVim/mapping/enter.vim +++ b/autoload/SpaceVim/mapping/enter.vim @@ -2,8 +2,10 @@ if g:spacevim_snippet_engine ==# 'neosnippet' function! SpaceVim#mapping#enter#i_enter() abort if pumvisible() - if neosnippet#expandable_or_jumpable() - return "\(neosnippet_expand_or_jump)" + if neosnippet#expandable() + return "\(neosnippet_expand)" + else + return "\" endif else return "\"