<p>The CSS syntax highlighting in vim is not entirely optimal. For example: </p>

<pre><code>div.special_class
</code></pre>

<p>stops the highlighting at the <code>_</code>. </p>

<p>Is there an improved highlighter that doesn't bite on an underscore?</p>

<p>Update:
I'm using VIM - Vi IMproved 7.1 (2007 May 12, compiled Jun 17 2008 15:22:40)</p>

<p>and the header of my css.vim is:</p>

<pre><code>" Vim syntax file
" Language:     Cascading Style Sheets
" Maintainer:   Claudio Fleiner &lt;claudio@fleiner.com&gt;
" URL:          http://www.fleiner.com/vim/syntax/css.vim
" Last Change:  2006 Jun 19
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
</code></pre>

What version of vim are you using?
My css.vim is
```
```
" Vim syntax file
" Language: Cascading Style Sheets
" Maintainer:   Claudio Fleiner <claudio@fleiner.com>
" URL:      http://www.fleiner.com/vim/syntax/css.vim
" Last Change:  2005 Nov 23
" CSS2 by Nikolai Weibull
" Full CSS2, HTML4 support by Yeti
```
```
as shipped with vim 7.0, and it does not expose the behaviour you described.