jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.1k stars 373 forks source link

Very RANDOM ISSUE #349

Open NikithGanga opened 2 years ago

NikithGanga commented 2 years ago
34_AutoPairsReturned what is this , why i am getting this sometimes ,how to rectify it
LunarWatcher commented 2 years ago

Another plugin is likely interfering with <cr>. What's the output of :verbose imap <cr>?

MuhammadSawalhy commented 2 years ago

I have the same issue, randomly I am getting this gibberish

image

LunarWatcher commented 2 years ago

@MuhammadSawalhy What's the output of :verbose imap )? Also gonna need to see :version, the literal insertion of ^R probably indicates an out-of-date vim.

MuhammadSawalhy commented 2 years ago

Sorry for my late response:

What's the output of :verbose imap )?

image

Also gonna need to see :version

image

LunarWatcher commented 2 years ago

Hm, weird. Not sure if nvim is to blame here, will have to try when I get home. The mapping looks generally okay though, which is annoying.

There have been other reports of this in the past, but I'm not sure where to look to debug this. Ctrl-r should work fine consistently; not sure why it doesn't. Are your dotfiles public? Would be nice to try to reproduce with a known broken configuration

LunarWatcher commented 2 years ago

"when I get home" has now turned into "after summer", because nvim remains miserable to work with in general, though especially on Windows, which I'm stuck with 'til I get back south to my main computer.

MuhammadSawalhy commented 2 years ago

I am not sure if this issue is caused by this plugin or another one. I thought for a while that CoC.vim is the reason behind it, but after disabling some custom configurations to make Tab expand the currently selected completion I still encounter this issue but at a lower rate.

I think I will work with minimal configurations and gradually add them again to really identify the guilty plugin.