Turn off mini.pairs when inserting after visual block selection #1814
Closed
raoulmillais
started this conversation in
Show and tell
Replies: 2 comments 5 replies
-
It could be made this more performant by not being so general with the |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks for sharing! The best (suggested) approach in this use case is in Insert mode to first press Also a note to avoid confusion for future readers: everything in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Contributing guidelines
Module(s)
mini.pairs
Description
I frequently use visual mode to simulate a contiguous multi cursor to insert the same thing on many lines. Very often this is to surround a token in multiple similar statements with e.g.
"
or'
. In this scenario I don't want mini.pairs to insert a matching pair. I got this working creating aModeChanged
autocmd in my lazy config and it struck me that this might be useful for others - maybe it could be incorporated into the plugin? Here's my lazy.vim plugin spec with the code:Beta Was this translation helpful? Give feedback.
All reactions