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.
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.
Put "runtime macros/matchit.vim" into your .vimrc. Or for even better support add the matchup plugin. https://github.com/andymass/vim-matchup