girishji / vimcomplete

Async autocompletion for Vim.
MIT License
121 stars 5 forks source link

Fix a bug ( can't enter ```<cr>``` if have popmenu ) #46

Closed Angluca closed 7 months ago

girishji commented 7 months ago

That's not a bug though! You should unmap <cr> in your .vimrc. See: https://github.com/girishji/vimcomplete/issues/41

Angluca commented 7 months ago

ooooer I know,
I've auto-Pair plugin set <cr>, But if haven't it can't auto complete pairs .T_T How to custom set pair-complete use vimcomplete option, I'm a newbie .

Angluca commented 7 months ago

Maybe ok now, I've set autoPairReturn use <c-cr> / <c-s-cr>

girishji commented 7 months ago

Do something like this:

:inoremap <expr> <buffer> <cr> pumvisible() ? "\<c-y>\<cr>" : "\<your-outopair-keymap>\<cr>"