Tabular is an useful plugin for Vim if you like to line up text in your source code. Install it from here on Github.
- To line up lines in a block of code along an
To line up lines in a block of code along their separating whitespace, try:
You should be able to use
:Tabas a shorthand for
You can also visually mark these lines and run these commands.
Tried with: Vim 7.4.52 and Ubuntu 14.04