Many of you might already know this but if not here’s an interesting
tip I just discovered over on vim.org/tips.
Base assumption: you have installed the ruby-vim gem and the vim
files are in the correct places.
If you have old ruby files that have screwed up formatting, you can
beautify them (re-indent) using vim.
- Open the file.
- Hit control-g to discover how many lines are in the file.
- While still in command-mode, type that number and then type
“==” (without the quotes). It will reindent everything.