# HG changeset patch # User Meredith Howard # Date 1483122197 18000 # Node ID 452034aff7884632c23fb8849b590c46d2807cad # Parent b864784951d98ffd51a04db7a250280d8420d5fa add first colon shortcut diff --git a/.vim/after/plugin/tabular.vim b/.vim/after/plugin/tabular.vim --- a/.vim/after/plugin/tabular.vim +++ b/.vim/after/plugin/tabular.vim @@ -1,5 +1,6 @@ if exists(':Tabularize') AddTabularPattern! first_eq /^[^=]*\zs=/ AddTabularPattern! first_arrow /^.\{-}\zs=>/ + AddTabularPattern! first_colon /^.\{-}:\zs/ AddTabularPattern! methods /->\|\\./l1r0 endif diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -175,7 +175,7 @@ nmap gKK :call ViewDoc('doc', expand('%' " Tabular shortcuts map ta :Tabularize first_arrow map te :Tabularize first_eq -map tc :Tabularize /:\zs +map tc :Tabularize first_colon map tm :Tabularize methods function! AutoFmtToggle()