[Haskell-cafe] WANTED: grey line layout boxes in vim and emacs

Claus Reinke claus.reinke at talk21.com
Fri Dec 8 22:13:10 EST 2006

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..


ps. 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" <dons at cse.unsw.edu.au>
To: <haskell-cafe at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: blocks.vim
Type: application/octet-stream
Size: 1093 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20061209/7d2da3f6/blocks.obj

More information about the Haskell-Cafe mailing list