tpope / vim-rsi

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

i_CTRL-E remapping conflicts with insert completion #56

Closed jiz4oh closed 1 year ago

jiz4oh commented 1 year 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