Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

Easy Align plugin for Vim

πŸ“… 2015-Apr-08 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ easy align, plugin, tabular, vim ⬩ πŸ“š Archive

20150402_tabular

Easy Align is a plugin for Vim that makes it super easy to align your code along certain whitespace or characters. Unlike the Tabular plugin, Easy Align is actually easy to use, not requiring you to create and recall esoteric-looking arguments.

Below are a few examples of how I typically use this plugin. For everything below, first visually mark out the lines, press : followed by command given below:

The logic behind these commands is straightforward and is explained in the table of examples on the plugin’s Github page.

Tried with: Vim 7.4 and Ubuntu 14.04


Β© 2022 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 @codeyarns@hachyderm.io β€’ πŸ“§