Permalink
Browse files

Add mappings to trigger :Tabularize for common tokens.

  • Loading branch information...
1 parent 77ff522 commit 70e18814b2fc6eaa9c614744a8a291854673e955 @nelstrom committed Jan 17, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 vimrc
View
7 vimrc
@@ -181,6 +181,13 @@ map <leader>ev :vsp <C-R>=expand("%:p:h") . "/" <CR>
map <leader>et :tabe <C-R>=expand("%:p:h") . "/" <CR>
" Shortcuts for visual selections {{{2
nmap gV `[v`]
+" Alignment commands {{{1
+if exists(":Tabularize")
+ nmap <Leader>a= :Tabularize /=<CR>
+ vmap <Leader>a= :Tabularize /=<CR>
+ nmap <Leader>a: :Tabularize /:\zs<CR>
+ vmap <Leader>a: :Tabularize /:\zs<CR>
+endif
" TextObject tweaks {{{1
nnoremap viT vitVkoj
nnoremap vaT vatV

0 comments on commit 70e1881

Please sign in to comment.