Tabular plugin for Vim

20150402_tabular

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

Advertisements

One thought on “Tabular plugin for Vim

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s