2016-08-17 16:15:01 +00:00
|
|
|
" after/plugin/tabular_commands.vim
|
|
|
|
" Provides extra :Tabularize commands
|
|
|
|
|
|
|
|
if !exists(':Tabularize')
|
|
|
|
finish " Give up here; the Tabular plugin musn't have been loaded
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Make line wrapping possible by resetting the 'cpo' option, first saving it
|
|
|
|
let s:save_cpo = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
" Use on ~/.ssh/config: %Tabularize ssh_config
|
|
|
|
AddTabularPattern! ssh_config /^[ ]*[^ ]*\zs /l2l0
|
2016-09-17 11:02:57 +00:00
|
|
|
AddTabularPattern! crontab /\t/r1l0r1l0r1l0r1l0r1l0l0
|
2017-05-22 20:16:15 +00:00
|
|
|
AddTabularPattern! firstspace /^ *[^ ]*\zs /l0c0l0
|
2016-08-17 16:15:01 +00:00
|
|
|
|
|
|
|
" Restore the saved value of 'cpo'
|
|
|
|
let &cpo = s:save_cpo
|
|
|
|
unlet s:save_cpo
|