Skip to content

Commit

Permalink
Fixing <cr> in .vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
spf13 committed Feb 9, 2012
1 parent 98f4b56 commit 55633be
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .vimrc
Expand Up @@ -442,12 +442,13 @@
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()
" <CR>: close popup

" <CR>: close popup
" <s-CR>: close popup and save indent.
inoremap <expr><CR> neocomplcache#close_popup()
inoremap <expr><s-CR> neocomplcache#close_popup() . "\<CR>"
inoremap <expr><CR> pumvisible() ? neocomplcache#close_popup() : "\<CR>"
inoremap <expr><s-CR> pumvisible() ? neocomplcache#close_popup() "\<CR>" : "\<CR>"
" <TAB>: completion.
"inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
Expand Down

0 comments on commit 55633be

Please sign in to comment.