vimrc: insert completion with <cr>

This commit is contained in:
surtur 2022-10-30 04:10:24 +01:00
parent eae61fe67c
commit c5c8d564cd
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI

@ -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 ------