vimrc: insert completion with <cr>
This commit is contained in:
parent
eae61fe67c
commit
c5c8d564cd
@ -782,6 +782,7 @@ endif
|
|||||||
|
|
||||||
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<left>"
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<left>"
|
||||||
|
inoremap <expr> <CR> pumvisible() ? "\<C-Y>" : "\<CR>"
|
||||||
|
|
||||||
" ------ autocmd ------
|
" ------ autocmd ------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user