this post was submitted on 17 Jul 2024
83 points (97.7% liked)
Ask Experienced Devs
1230 readers
3 users here now
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Not just the next parenthesis that appears, It jumps to the matching one that opens or closes the one under the cursor. Hitting it repeatedly bounces back and forth around the text that pair of parentheses enclose.
It works not only with brackets and curly braces, but also with opening and closing tags in XML etc.
I feel like other editors must have an equivalent feature, though. I'd say the fact that vi can put such a specific action under just
%
rather than some nasty chord or mouse operation is what really makes it shine here.