From a3973b170cf7dbd1e2fc9cbd5ccb589b439cd8f1 Mon Sep 17 00:00:00 2001 From: Dag Odenhall Date: Sat, 19 May 2012 02:42:15 +0200 Subject: [PATCH] :Tabularize haskell_comments --- autoload/vim2hs/haskell/editing.vim | 1 + doc/vim2hs.txt | 3 +++ 2 files changed, 4 insertions(+) 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 "<-".