# HG changeset patch # User Meredith Howard # Date 1477204287 14400 # Node ID e23906d13a5750c18dceb333ac43d415e73f6e71 # Parent 3f116b7f4d3e21b95391572e8f76dfb0d82b8a78 add method tab 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,4 +1,5 @@ if exists(':Tabularize') AddTabularPattern! first_eq /^[^=]*\zs=/ AddTabularPattern! first_arrow /^.\{-}\zs=>/ + AddTabularPattern! methods /->\|\\./l1r0 endif diff --git a/.vimrc b/.vimrc --- a/.vimrc +++ b/.vimrc @@ -175,6 +175,7 @@ nmap gKK :call ViewDoc('doc', expand('%' " Tabular shortcuts map te :Tabularize first_eq map ta :Tabularize first_arrow +map tm :Tabularize methods function! AutoFmtToggle() if &formatoptions =~ 'a'