diff --git a/after/plugin/tabular_commands.vim b/after/plugin/tabular_commands.vim new file mode 100644 index 0000000..360ed22 --- /dev/null +++ b/after/plugin/tabular_commands.vim @@ -0,0 +1,17 @@ +" 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 + +" Restore the saved value of 'cpo' +let &cpo = s:save_cpo +unlet s:save_cpo