Skip to content

Commit 1bdba7e

Browse files
committed
Merge pull request spf13#636 from chrisnicola/dont-remap-cr
Don't remap <CR> for omnicomplete it causes issues
2 parents c11055e + 412556c commit 1bdba7e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vimrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,9 @@
461461

462462
" Some convenient mappings
463463
inoremap <expr> <Esc> pumvisible() ? "\<C-e>" : "\<Esc>"
464-
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
464+
if exists('g:spf13_map_cr_omni_complete')
465+
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<CR>"
466+
endif
465467
inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>"
466468
inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>"
467469
inoremap <expr> <C-d> pumvisible() ? "\<PageDown>\<C-p>\<C-n>" : "\<C-d>"

0 commit comments

Comments
 (0)