Mon, 23 Aug 2021 16:28:04 -0400
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