tpope / vim-rsi

rsi.vim: Readline style insertion
http://www.vim.org/scripts/script.php?script_id=4359
590 stars 36 forks source link

i_CTRL-E remapping conflicts with insert completion #56

Closed jiz4oh closed 2 years ago

jiz4oh commented 2 years ago

coc has a custom popup window now and use coc#pum#visible() check whether insert completion is visible.

maybe vim-rsi should give user a function to customize i_CTRL-E and c_CTRL-Y, like

let pumvisible_func = get(g:, 'pumvisible_func', 'pumvisible')

inoremap <expr> <C-E> col('.')>strlen(getline('.'))<bar><bar>pumvisible_func()?"\<Lt>C-E>":"\<Lt>End>"

any suggestions will be appreciated