[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:

let g:context_spacious_comments = 1

This will make it so that comments must be at the beginning of the line
or be preceded by a white-space,

Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.

More information about the ntg-context mailing list