Is your feature request related to a problem? Please describe.
I've been looking for a way to extend the % function to include '<' / '>', and potentially others. So far I haven't been able to figure out how.
Describe the solution you'd like
Perhaps an option like vim.addPairings or whatever name? I think it'd just be making this part of code accessible through the settings, but I'm unsure about how much work it'd actually take.
Describe alternatives you've considered
I tried enabling the .vimrc settings and adding set matchpairs+=<:> but it didn't work. I'm fairly new to vim tinkering so I might've missed something.
Is this feasible or is it too complicated? Perhaps if there's another way of achieveing it, I'd appreciate the pointers.
Thanks in advance!
I think you mean matchpairs, not matchpairings. I don't believe we currently support this option though.
You're right! Edited, thanks. Is this a lot of trouble? I've never tinkered with vscode extensions but maybe I could give it a try.
I've been looking for this aswell, this would be a great addition.
Related: you can assign the command Emmet: Go to matching pair to a key which will match html tags. However it won't match on < and > like vim does when it's added to match pairs. (ie this lets you jump from < to > in eg <div> whereas the the go to matching pair will let you jump from <div> to eg </div>
It's really handy to have both, so a way to set matchpairs would be very useful.
Simple matchpairs support should be pretty straightforward; seems like we'd just need to make this map configurable. @karmaral if you'd like to give it a shot, go for it. Otherwise I'll take care of it when I get the bandwidth. Full matchit support would be more involved, though we do have some support for matching tags (see TagMatcher)
Related: #1885
Cool beans, will try!
Most helpful comment
Simple
matchpairssupport should be pretty straightforward; seems like we'd just need to make this map configurable. @karmaral if you'd like to give it a shot, go for it. Otherwise I'll take care of it when I get the bandwidth. Full matchit support would be more involved, though we do have some support for matching tags (seeTagMatcher)