something like the attached vim script might work for small sources(ignores all layout rules and keywords, just records increase/decrease of indentation stack; builds up a rather large pattern of positions for
highlighting via :match).
(don't assume that this is the only, let alone the right way to do this, and please pardon my rusty vimscript;-) bonus tasks are left as exercises for the reader.. Clausps. a good interface for teaching vim about language syntax and motion would be nice (or at least a dynamically loadable, position-independent GHC API for use with vim's libcall..), but I find that with visual highlighting of lines and blocks, Haskell layout manipulation at least tends to be fairly straightforward
(I do not even use highlightling of the cursor column, which gives you a vertical ruler)----- Original Message ----- From: "Donald Bruce Stewart" <[EMAIL PROTECTED]>
To: <haskell-cafe@haskell.org> Sent: Thursday, December 07, 2006 12:34 AM Subject: [Haskell-cafe] WANTED: grey line layout boxes in vim and emacs
I'd like some more help from the editors in getting 2d layout right without trying. Here's a mockup of vim with vertical grey bars delimiting layout: http://www.cse.unsw.edu.au/~dons/tmp/haskell+boxes.png Does anyone know how to get this effect in vim (or emacs)? Bonus points if the grey bars are draggable, changing the indenting. More bonus points for box-based navigation. -- Don _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
blocks.vim
Description: Binary data
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe