.vim/after/plugin/tabular.vim

Sun, 09 Jan 2022 15:17:13 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 09 Jan 2022 15:17:13 -0500
changeset 968
0db164e368c5
parent 951
d37488324704
permissions
-rw-r--r--

keep shell stuff in one place, distinguish by ext

if exists(':Tabularize')
  AddTabularPattern! first_eq    /^.\{-}\zs=/
  AddTabularPattern! first_arrow /^.\{-}\zs=>/
  AddTabularPattern! first_colon /^.\{-}:\zs/l0l1
  AddTabularPattern! comma       /,\zs/l0l1
  AddTabularPattern! methods     /^.\{-}\zs\(->\|\.\)/l0
endif

mercurial