From e07931125e884a4db40590d260fc58900ab5242c Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 10 Jul 2014 00:00:20 -0400 Subject: [PATCH] Selecting autocompletion with the return key won't also linebreak --- vim/config/keyboard.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 84abc50..5ddca53 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -475,7 +475,7 @@ "neocomplcache close popup and save indent inoremap =neocompl_cr() function! s:neocompl_cr() - return neocomplcache#smart_close_popup() . "\" + return pumvisible() ? neocomplcache#close_popup() : "\" endfunction "neocomplcache tab completion inoremap pumvisible() ? "\" : "\"