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 72B5 easy things easy and the hard things possible, without providing an unnecessarily obtuse interface.
See Aligning Text with Tabular.vim for a screencast that shows how Tabular.vim works.
If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle
git clone git://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 doc/Tabular.txt
copy and paste the file ./tabular/plugin/Tabular.vim into your ~/.vim/plugin/Tabular.vim
copy and paste the file ./tabular/autoload/tabular.vim into your ~/.vim/plugin/tabular.vim
copy and paste the file ./tabular/after/plugin/TabularMaps.vim into your ~/.vim/after/ftplugin/TabularMaps.vim
vim your_csv.csv
:Tabularize /,
Set throttle to ahead full.