aboutsummaryrefslogtreecommitdiff
path: root/vim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'vim/after/plugin')
-rw-r--r--vim/after/plugin/tabular.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/after/plugin/tabular.vim b/vim/after/plugin/tabular.vim
new file mode 100644
index 00000000..0e485355
--- /dev/null
+++ b/vim/after/plugin/tabular.vim
@@ -0,0 +1,11 @@
+" Only run this if function available
+if !exists(':AddTabularPattern')
+ finish
+endif
+
+" Shortcut patterns for Tabular; first colon, semicolon, comma, equals sign
+AddTabularPattern! f: /^[^:]*\zs:/
+AddTabularPattern! f; /^[^;]*\zs;/
+AddTabularPattern! f, /^[^,]*\zs,/
+AddTabularPattern! f= /^[^=]*\zs=/
+