News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by mypalmike on Wednesday January 04, 2023 @04:52PM (#34252353)
I'm not a vim user, but I think the problem with Ruby here is that it's not begin/end. It's anything that evaluates to an iterable/end.
Re:Ruby 3.2.0 Is from Another Dimension by bhaak on Wednesday January 04, 2023 @05:45PM (#34253022)
Yes, that's the problem for plain vi(m) which only supports single character braces.

matchit/matchup extends this to language specific delimiter words. This animation https://github.com/andymass/vim-matchup#screenshot shows how you can iterate over multiple sequences like if/elsif/else/endif.