Skip to content

Vim script for text filtering and alignment

License

Notifications You must be signed in to change notification settings

sentientmachine/tabular

 
 

Repository files navigation

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.

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

Demo

Alt text

Installation

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.

Detailed Documentation.

See doc/Tabular.txt

Bypassing installer, Jist for ripping out the source and grafting it onto autodeploy stack

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

Most basic Usage Example

vim your_csv.csv
:Tabularize /,

Usage Guide

Set throttle to ahead full.

vimcasts-org-aligning-text-with-tabular-vim.pdf

About

Vim script for text filtering and alignment

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Vim Script 100.0%