You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CR wrapping isn't well documented, particularly how it handles existing mappings. I had problems with a pumvisible expr mapping but found a workaround moving the expression into a function and using a <C-R>=...<CR> mapping instead, which composes correctly with vim-closer. E.g.
function! HandleCRKey() abort
return pumvisible() ? "\<C-E>\n" : "\n"
endfunction
" vim-closer can extend this correctly
inoremap <silent> <CR> <C-R>=HandleCRKey()<CR>
The text was updated successfully, but these errors were encountered:
The CR wrapping isn't well documented, particularly how it handles existing mappings. I had problems with a
pumvisible
expr mapping but found a workaround moving the expression into a function and using a<C-R>=...<CR>
mapping instead, which composes correctly with vim-closer. E.g.The text was updated successfully, but these errors were encountered: