It's nice to have an auto-close plugin for brackets and quotes like coc-pairs
. However, when I paste text from outside into vim insert (ctrl-C
, ctrl-shift-v
), the text seems to be pasted character-by-character. As a result, vim inserts extra quotes and brackets and messes up the copied texts.
Example:
Copied text:
(this is a test)
Result:
(this is a test))
This behavior gets annoying really fast, especially when trying to copy code. This is currently the only reason I'm not using an auto-close plugin.
How can I fix this behavior to make vim copy text as a whole block without making any change to such copied texts?
'paste'
value, usually auto-pairing plugings jump over the next closing)
when typing it. Isn't it the case of the plugin you're using?