# [NTG-context] TeX + Metapost syntax highlighting in Vim

Nikolai Weibull mailing-lists.context-users at rawuncut.elitemail.org
Sat Sep 24 23:41:21 CEST 2005

```(OK, this is old, but I finally did something about it.)

VnPenguin wrote:

> Just tested your context.vim under vim 6.3.x; It's better than
> tex/latex standard syntax in vim 6.3 IMHO.
>
> I have only a small remark: The following code is valid in ConTeXt:
>
> \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/059600270X/qid%3D1024342376/103-8123753-9606263][][Network
> Security with OpenSSL]
>
> but the syntax considers % like a comment mark, so I see another color
> for the text after %.  It's possible to make the comment pattern
> smarter ? :)

Actually, yes, there is.  Wait for me to get a new version sent upstream
to the Vim 7 CVS, add the following to your vimrc, and cheer: