Hi all,

Has anyone used the vim module recently and

I recently installed the third-party vim module for syntax highlighting in
my minimal install of ConTeXt MKIV/LuaTeX:

./first-setup.sh --extras="t-vim"
context --generate

I tried a minimal example from the manual:

\starttext
\usemodule [vim]
\definevimtyping [C]
[syntax=c,numbering=on]
\startvimcolorscheme [default]
\definevimsyntax [Type] [style=boldmono]
\definevimsyntax [PreProc] [style=slantedmono]
\stopvimcolorscheme
\startC
#include <stdio.h>
#include <stdlib.h>
void main() {
    printf("Hello World\n");
    return;
}
\stopC
\stoptext

You can see the ConTeXt live output (See full
output<http://live.contextgarden.net/output.cgi?id=dO7150>)
The problem is:

! I can't find file `texweb-vimsyntax.tmp-vimsyntax.tmp'.
<to be read again>

Looks like the filename munging has some issues.

Also, when I manually type in the correct file name, I then get further
errors which seem to indicate the source code is not within a literal
environment:

! You can't use `macro parameter character #' in horizontal mode.
l.1 #
     include <stdio.h>

I have vim installed and accessible on the path, and do have the C syntax.

I'm not TeXpert enough to troubleshoot the actual source, does anyone know
what might cause this behavior?

Thanks,

Adam
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to