News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by bhaak on Wednesday January 04, 2023 @02:26PM (#34250158)
> To be fair though, my vim-memory of using % to bounce between start/end brackets doesn't work in Ruby because of the begin/end words instead of matched symbols :(

Put "runtime macros/matchit.vim" into your .vimrc. Or for even better support add the matchup plugin. https://github.com/andymass/vim-matchup

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.