improve tabular patterns

Mon, 23 Aug 2021 16:28:04 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Mon, 23 Aug 2021 16:28:04 -0400
changeset 942
1d3b41412cf6
parent 941
fb38620af446
child 943
e0ff02862951

improve tabular patterns

.vim/after/plugin/tabular.vim file | annotate | diff | comparison | revisions
--- a/.vim/after/plugin/tabular.vim
+++ b/.vim/after/plugin/tabular.vim
@@ -1,6 +1,6 @@
 if exists(':Tabularize')
-  AddTabularPattern! first_eq    /^[^=]*\zs=/
+  AddTabularPattern! first_eq    /^.\{-}\zs=/
   AddTabularPattern! first_arrow /^.\{-}\zs=>/
   AddTabularPattern! first_colon /^.\{-}:\zs/
-  AddTabularPattern! methods     /->\|\\./l1r0
+  AddTabularPattern! methods     /^.\{-}\zs\(->\|\.\)/l0
 endif

mercurial