vim syntax files for GHC-style .lhs, .hs + cpp
Hey all, ------------------------------------------------------------- Vim syntax highlighting for GHC-style .lhs and .hs + cpp ------------------------------------------------------------- Rather than let this just sit on my hd, I'm making them available. ftp://ftp.cse.unsw.edu.au/pub/users/dons/vim/ These are vim syntax files for the tex-style (not the bird-feet style) literate Haskell used in much of GHC, and for normal Haskell with -cpp preprocessor sprinkles. The directories should go in your ~/.vim/ folder. There is also a preliminary outline of a vim indent file for .hs code. If you'd like to finish this off, then send me diff's please! The .lhs file still has a few minor buglets, so by making this stuff available I'm hoping someone has time to fix them. Cheers, Don
On Mon, Feb 09, 2004 at 12:56:43PM +1100, Donald Bruce Stewart wrote:
Hey all,
------------------------------------------------------------- Vim syntax highlighting for GHC-style .lhs and .hs + cpp -------------------------------------------------------------
Rather than let this just sit on my hd, I'm making them available.
ftp://ftp.cse.unsw.edu.au/pub/users/dons/vim/
These are vim syntax files for the tex-style (not the bird-feet style) literate Haskell used in much of GHC, and for normal Haskell with -cpp preprocessor sprinkles. The directories should go in your ~/.vim/ folder.
I've put mine here: http://urchin.cipe/~ian/vim/ They also use a simple heuristic to guess whether the non-Haskell stuff should be treated as TeX or just text, and cope with the Bird style. We really should send a best solution off to the vim guys to replace what's currently there. Thanks Ian
On Mon, Feb 09, 2004 at 04:20:59PM +0000, Ian Lynagh wrote:
I've put mine here: http://urchin.cipe/~ian/vim/
Or, more usefully, http://urchin.earth.li/~ian/vim/ Ian
igloo:
On Mon, Feb 09, 2004 at 12:56:43PM +1100, Donald Bruce Stewart wrote:
Hey all,
------------------------------------------------------------- Vim syntax highlighting for GHC-style .lhs and .hs + cpp -------------------------------------------------------------
Rather than let this just sit on my hd, I'm making them available.
ftp://ftp.cse.unsw.edu.au/pub/users/dons/vim/
These are vim syntax files for the tex-style (not the bird-feet style) literate Haskell used in much of GHC, and for normal Haskell with -cpp preprocessor sprinkles. The directories should go in your ~/.vim/ folder.
I've put mine here: http://urchin.cipe/~ian/vim/
They also use a simple heuristic to guess whether the non-Haskell stuff should be treated as TeX or just text, and cope with the Bird style. We really should send a best solution off to the vim guys to replace what's currently there.
Yes. I propose we combine them. I'm too busy at the moment, but if someone out there wants to combine the two, to create an uber-haskell.vim syntax highlighting that works for .hs, .lhs (both tex and bird), .hsc and all with -cpp annotations, this should be quite feasible, with Ian's and my code as a start. They should work with anything you find in $fptools. -- Don
participants (2)
-
dons@cse.unsw.edu.au -
Ian Lynagh