vim-matchup icon indicating copy to clipboard operation
vim-matchup copied to clipboard

Matching string and char delimeters

Open leg7 opened this issue 1 year ago • 2 comments
trafficstars

I always found it jarring that vims '%' operator wouldn't match the next closing " or ' for strings/chars. I was looking for a plugin that implemented this and found this one but alas it doesn't implement it either. I've seen you can implement your own matches with this plugin but wouldn't including this as default make more sense because it is such a wide idiom. I don't know of any language that doesn't use " or ' to enclose strings/chars.

leg7 avatar Nov 22 '23 19:11 leg7

Are you looking for vim or neovim

On Wed, Nov 22, 2023, 2:01 PM Léonard Gomez @.***> wrote:

I always found it jarring that vims '%' operator wouldn't match the next closing " or ' for strings/chars. I was looking for a plugin that implemented this and found this one but alas it doesn't implement it either. I've seen you can implement your own matches with this plugin but wouldn't including this as default make more sense because it is such a wide idiom. I don't know of any language that doesn't use " or ' to enclose strings/chars.

— Reply to this email directly, view it on GitHub https://github.com/andymass/vim-matchup/issues/331, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSY3DLMRHGPQKX6T4UAP2LYFZDZBAVCNFSM6AAAAAA7WWOQCKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDMOJVGQ2TMNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

andymass avatar Nov 22 '23 19:11 andymass

I use neovim but vim plugins should work just fine.

But coming back to my original question do you think it would make sense for ' and " to be matched by the % operator?

leg7 avatar Nov 24 '23 17:11 leg7