Align Haskell import statements in Vim using Tabular plugin? -


i'd format haskell import statements style see in published source code.

from this:

import data.map import qualified data.vector v 

to this:

import           data.map import qualified data.vector v 

i'd not have install plugins specialize in doing this. tabular. me regexp needed make happen?

assuming want align first uppercase character on top of each other, appears work on test case

:%tabularize /\c[a-z].*/ 

the \c forces case sensitive comparison.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -