0. Links:
http://vimcasts.org/episodes/aligning-text-with-tabular-vim/
https://github.com/godlygeek/tabular
https://github.com/tpope/vim-pathogen
1. Install pathogen:
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
2. Configure pathogen:
vi .vimrc:
execute pathogen#infect()
Now any plugins you wish to install can be extracted to a subdirectory under ~/.vim/bundle, and they will be added to the 'runtimepath'. Observe:
cd ~/.vim/bundle && \
git clone git://github.com/tpope/vim-sensible.git
3. Install tabular:
cd ~/.vim/bundle
git clone git://github.com/godlygeek/tabular.git
4. Configure help:
vim
:Helptags
5. Read help:
vim
:help tabular
6. Use:
<select lines>
:Tab /=
:Tab /\.
No comments:
Post a Comment