Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add mappings to trigger :Tabularize for common tokens.

  • Loading branch information...
commit 70e18814b2fc6eaa9c614744a8a291854673e955 1 parent 77ff522
@nelstrom authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.