Is there a way to simply have my blocks and their closing end keyword align properly with vim? If I have a function which is nested with several conditions, things can start to get ugly fast. Can vim save the day?
+1: I've been using Vim for about 6 years, and I never knew this.
Mark Rushakoff
2010-06-10 02:01:18
Actually, this is *just* what I needed. Awesome, thanks Peter.
randombits
2010-06-10 02:05:38
All this seems to do for me is move everything selected to the same column. What am I missing?
2010-06-10 02:18:03
@.yahoo-co-jpaqwsykcj3aulh3h1: you should `:set ft=ruby` first. This means you won't have ruby indenting support turned on.
Peter
2010-06-10 02:22:16
Thanks Peter. The filetype was correct but it looks like I was missing "filetype plugin indent on" in the config file.
2010-06-10 02:55:21
+2
A:
There's also a nice Vim plugin called endwise that automatically inserts the ends for you.
Michael Kohl
2010-06-10 08:26:59