Hi Michael,<br><br>I can also confirm this occurs on my Vim 7.0 (I&#39;m also running Edgy Eft).<br>Notably it (the red highlight on _ and loss of syntax highlighting) only seems to occur when there is a \section (or sub) command within the .lhs (I am also using lhs2tex). Hadn&#39;t noticed this before as I tend not to place sectioning commands in the .lhs and use a main .tex containing sequences like:
<br><br>\subsection{Module foo}<br>\include{foo}<br><br>Not sure if this is present in the Feisty Fawn binaries, I guess someone should file a bug report? :)<br><br>Dave,<br><br><div><span class="gmail_quote">On 05/06/07, 
<b class="gmail_sendername">Michael T. Richter</b> &lt;<a href="mailto:ttmrichter@gmail.com">ttmrichter@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



  
  

<div>
I&#39;ve given up on getting a decent text editor for editing Haskell (specifically literate Haskell -- plain Haskell works fine in GEDIT).&nbsp; Instead I fire up VIM and get ... a total mess.&nbsp; At first I think maybe I&#39;ve screwed up a whole bunch of settings or something, so I nuke everything in my home directory that begins with .vim and then, for added measure, head over to /usr/share and nuke the entire ./vim directory tree.&nbsp; I then reinstall vim (from the Ubuntu Edgy archives) to get a brand new set of config files unsullied by my hands.
<br>
<br>
I still get a dog&#39;s breakfast.<br>
<br>
A screen shot of what I&#39;m seeing with a representative example of a .lhs file to show what I mean can be found at <a href="http://img357.imageshack.us/img357/5798/gvimexamplezv4.png" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://img357.imageshack.us/img357/5798/gvimexamplezv4.png</a>.&nbsp; (I&#39;ve pared it down to the minimum I could find that shows the behaviour clearly.)&nbsp; The problems I&#39;m seeing are the ugly white-on-red for underlines, the lack of any kind of differentiation for keywords/operators/etc. vs. identifiers (although 
<b>some</b> punctuation is recognized, specifically curly braces), comments not being noted, etc.&nbsp; Basically it looks like the Haskell is simply not being recognized at all (and, if the @saBinds@ thing is what I think it is, it looks like some latex isn&#39;t being recognized fully either).
<br>
<br>
Can anybody vim-centric please take a look at this and give me a few educated guesses as to what is happening here?&nbsp; For good measure, here&#39;s the beginning of the lhaskell.vim file that comes with my vim distribution (
7.0 in the Ubuntu archives).&nbsp; If it&#39;s desired I can attach the whole file.&nbsp; (It isn&#39;t actually all that large.)<br>
<br>
&quot; Vim syntax file<br>
&quot; Language: Haskell with literate comments, Bird style,<br>
&quot; TeX style and plain text surrounding<br>
&quot; \begin{code} \end{code} blocks<br>
&quot; Maintainer: Haskell Cafe mailinglist &lt;<a href="mailto:haskell-cafe@haskell.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">haskell-cafe@haskell.org</a>&gt;<br>
&quot; Original Author: Arthur van Leeuwen &lt;<a href="mailto:arthurvl@cs.uu.nl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">arthurvl@cs.uu.nl</a>&gt;<br>
&quot; Last Change: 2004 Aug 31<br>
&quot; Version: 1.01<br>
&quot;<br>
&quot; Thanks to Ian Lynagh for thoughtful comments on initial versions and<br>
&quot; for the inspiration for writing this in the first place.<br>
&quot;<br>
&quot; This style guesses as to the type of markup used in a literate haskell<br>
&quot; file and will highlight (La)TeX markup if it finds any<br>
&quot; This behaviour can be overridden, both glabally and locally using<br>
&quot; the lhs_markup variable or b:lhs_markup variable respectively.<br>
&quot;<br>
&quot; lhs_markup &nbsp;&nbsp;&nbsp; must be set to either&nbsp; tex or&nbsp; none&nbsp; to indicate that<br>
&quot; &nbsp;&nbsp;&nbsp; you always want (La)TeX highlighting or no highlighting<br>
&quot; &nbsp;&nbsp;&nbsp; must not be set to let the highlighting be guessed<br>
&quot; b:lhs_markup &nbsp;&nbsp;&nbsp; must be set to eiterh&nbsp; tex or&nbsp; none&nbsp; to indicate that<br>
&quot; &nbsp;&nbsp;&nbsp; you want (La)TeX highlighting or no highlighting for<br>
&quot; &nbsp;&nbsp;&nbsp; this particular buffer<br>
&quot; &nbsp;&nbsp;&nbsp; must not be set to let the highlighting be guessed<br>
&quot;<br>
&quot;<br>
&quot; 2004 February 18: New version, based on Ian Lynagh&#39;s TeX guessing<br>
&quot; &nbsp;&nbsp;&nbsp; lhaskell.vim, cweb.vim, tex.vim, sh.vim and fortran.vim<br>
&quot; 2004 February 20: Cleaned up the guessing and overriding a bit<br>
&quot; 2004 February 23: Cleaned up syntax highlighting for \begin{code} and<br>
&quot; &nbsp;&nbsp;&nbsp; \end{code}, added some clarification to the attributions<br>
&quot;<br>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
-- <br>
<b>Michael T. Richter</b> &lt;<a href="mailto:ttmrichter@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ttmrichter@gmail.com</a>&gt; (<b>GoogleTalk:</b> <a href="mailto:ttmrichter@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
ttmrichter@gmail.com</a>)<br>
<i>It&#39;s OK to figure out murder mysteries, but you shouldn&#39;t need to figure out code. You should be able to read it. (Steve McConnell)</i>
</td>
</tr>
</tbody></table>
</div>

<br>_______________________________________________<br>Haskell-Cafe mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">
http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br><br><br clear="all"></blockquote></div><br>