blob: 23007af6a7e82995fca1c56ac3d3fd0e156535ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
" after/plugin/my_tabular_commands.vim
" Provides extra :Tabularize commands
if !exists(':Tabularize')
finish " Give up here; the Tabular plugin musn't have been loaded
endif
nmap <Leader>t= :Tabularize /=<CR>
vmap <Leader>t= :Tabularize /=<CR>
nmap <Leader>t: :Tabularize /:\zs<CR>
vmap <Leader>t: :Tabularize /:\zs<CR>
AddTabularPattern first_comma /^[^,]*\zs,/r0c0l0
AddTabularPattern first_colon /^[^:]*\zs:/r0c0l0
AddTabularPattern spaces /\s\+\zs\s/l1c0
|