godlygeek / tabular

Vim script for text filtering and alignment
Other
2.61k stars 166 forks source link

Tabular

Sometimes, it's useful to line up text. Naturally, it's nicer to have the computer do this for you, since aligning things by hand quickly becomes unpleasant. While there are other plugins for aligning text, the ones I've tried are either impossibly difficult to understand and use, or too simplistic to handle complicated tasks. This plugin aims to make the easy things easy and the hard things possible, without providing an unnecessarily obtuse interface. It's still a work in progress, and criticisms are welcome.

See Aligning Text with Tabular.vim for a screencast that shows how Tabular.vim works.

See doc/Tabular.txt for detailed documentation.

Installation

Vim 8.1+

No third-party package manager is required! Clone into:

.vim/pack/plugins/start

Make sure you include packloadall in your .vimrc.

Pathogen

mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clone https://github.com/godlygeek/tabular.git

Once help tags have been generated (either using Pathogen's :Helptags command, or by pointing vim's :helptags command at the directory where you installed Tabular), you can view the manual with :help tabular.

See pathogen.vim for help or for package manager installation.