- Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
System
- vim-closer 26bba80
Reproducible with all the following vim-version:
- NVIM v0.5.0-dev+1367-g27c616d68
- NVIM v0.4.4
- VIM 8.2
Problem
vim-closer hangs when trying to close a bracket if an insert-mapping exists which executes <expr> dependent on pumvisible().
VIMRC
call plug#begin() Plug 'rstacruz/vim-closer' call plug#end() filetype plugin on inoremap <expr> <cr> pumvisible() ? '<c-y>' : '<cr>' Reproduce
- Create a new file with a filetype which is supported bug vim-closer:
vim bug.sh - Enter insert-mode, type
{and press<cr>:i{<cr> - Vim should hang now. Abort operation by pressing
<c-c>
It should be visible that vim-closer created a long line which looks like this:
{pumvisible() ? '' : 'pumvisible() ? '' : 'pumvisible() ? '' : It essentially pastes {pumvisible() ? '' : over and over.
Related
w1zd, mystilleef, laomaiweng and bronzehedwick
Metadata
Metadata
Assignees
Labels
No labels