📅 2015-Apr-02 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ plugin, tabular, vim ⬩ 📚 Archive
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 =
character, try :Tabularize /=
To line up lines in a block of code along their separating whitespace, try: :Tabularize /\s\+
You should be able to use :Tab
as a shorthand for :Tabularize
You can also visually mark these lines and run these commands.
Tried with: Vim 7.4.52 and Ubuntu 14.04