Skip to content

Commit

Permalink
Don't remap <CR> for omnicomplete it causes issues
Browse files Browse the repository at this point in the history
fixes issue spf13#280
  • Loading branch information
chrisnicola authored and Duke committed Aug 29, 2014
1 parent d4580e2 commit 60b1b5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@

" Some convenient mappings
inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
if exists('g:spf13_map_cr_omni_complete')
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
endif
inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
inoremap <expr> <C-d> pumvisible() ? "\<PageDown>\<C-p>\<C-n>" : "\<C-d>"
Expand Down

0 comments on commit 60b1b5a

Please sign in to comment.