diff --git a/autoload/vim2hs/haskell/editing.vim b/autoload/vim2hs/haskell/editing.vim index e50b1fa..a82a532 100644 --- a/autoload/vim2hs/haskell/editing.vim +++ b/autoload/vim2hs/haskell/editing.vim @@ -112,6 +112,7 @@ endfunction " }}} function! vim2hs#haskell#editing#tabular() " {{{ AddTabularPattern! colon /^[^:]*\zs:/ AddTabularPattern! haskell_bindings /^[^=]*\zs=/ + AddTabularPattern! haskell_comments /--.*/l2 AddTabularPattern! haskell_do_arrows / <- /l0r0 AddTabularPattern! haskell_imports /^[^(]*\zs(.*\|\.*/ AddTabularPattern! haskell_pattern_arrows / -> /l0r0 diff --git a/doc/vim2hs.txt b/doc/vim2hs.txt index e4bff82..09df4e2 100644 --- a/doc/vim2hs.txt +++ b/doc/vim2hs.txt @@ -96,6 +96,9 @@ See also |g:haskell_tabular|. :Tabularize haskell_bindings Align a set of bindings by "=". +:Tabularize haskell_comments + Align line-comments at the end of lines. + :Tabularize haskell_do_arrows Align a set of monadic binds by "<-".