From b9057fdae48610d3d90b6ffc5e62ce2d3db5b79b Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Thu, 26 Jun 2014 13:31:13 -0400 Subject: [PATCH] played with the autocompletion and folds keys to avoid issues in input mode --- vim/config/keyboard.vim | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 7db3715..3cadb58 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -108,10 +108,10 @@ " " (completion) " , | (A) -> enter after emmet 'word' (ie: html:5) -" | (I) -> (neocomp) autocomplete using common string -" | (I) -> (neocomp) autocomplete the common string -" | (I) -> (neocomp) close the suggestion popup -" | (I) -> (neocomp) undo the most recent completion +" | (I) -> (neocomp) close the popup and +" | (I) -> (neocomp) select/cycle popup completion +" | (I) -> (neocomp) close the popup and +" | (I) -> (neocomp) undo the most recent completion " " (search) " \ | (N) -> remove search highlighting @@ -383,18 +383,12 @@ "open all folds nnoremap + 'zn:echo "all folds have been opened"' - xnoremap + 'zngv' - inoremap + 'zn' "close folds set to be closed nnoremap - 'zN:echo "all opened folds have been closed"' - xnoremap - 'zNgv' - inoremap - 'zN' "reset all folds to the default fold level nnoremap 0 'zX:echo "all folds have been reset"' - xnoremap 0 'zXgv' - inoremap 0 'zX' "trigger vimfiler nnoremap ':VimFiler -split -simple -toggle -no-quit -direction=topleft -winwidth=45' @@ -478,15 +472,17 @@ "emmet switch triggerkey from let g:user_emmet_leader_key='' - - "neocomplcache: scroll through completion list - inoremap pumvisible() ? "\" : "\" - "neocomplcache: complete the common part of the string - inoremap neocomplcache#complete_common_string() - "neocomplcache: close popup and delete backward char - inoremap pumvisible() ? neocomplcache#smart_close_popup() : "\" + "neocomplcache close popup and save indent + inoremap =neocompl_cr() + function! s:neocompl_cr() + return neocomplcache#smart_close_popup() . "\" + endfunction + "neocomplcache tab completion + inoremap pumvisible() ? "\" : "\" "neocomplcache : undo completion - inoremap "" . neocomplcache#undo_completion() + inoremap neocomplcache#smart_close_popup()."\" + "neocomplcache undo completion + inoremap neocomplcache#undo_completion() "} "FORMATTING:{