Hello,
 
I have tried the example using the vim mode to typeset some c codes. When I run the sample file, context stop with errors. the sample file and log file as
list below. I use the windowsXP with the minimal context from ConTeXt garden and \write18 is enabled.  From the log file, it seems the vim command is not properly quoted as follows:
 
MTXrun | executing: vim "-u NONE -e -C -n -V10log -c set" "tabstop=8 -c syntax"
"on -c set" "syntax=c -c let" "contextstartline=1 -c let" "contextstopline=0 -c
source" "c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp "
I check the t-vim.tex, the definition of the vim command is correct. I don't know why the \shellescapedquote is not properly resolved.
Any help? thanks.
 
Andy
 
---------------------------------------------------------------
Sample file:_________________
 
\setupcolors[state=start]
\usetypescript[modern-base][texnansi]
\setupbodyfont[modern,10pt]
\usemodule[vim]
\starttext
\title{Matlab Code Listing -- Color}
\definevimtyping [C] [syntax=c]
\startC
#include <stdio.h>
#include <stdlib.h>
void main()
{
   printf("Hello World\n") ;
   return;
}
\stopC
\stoptext
--------------------------------------------------------------
 
The Log file ____________________
 
 
C:\Documents\TeX>context --verbose vimdemo.tex
MTXrun | variable SELFAUTOLOC set to c:/context/tex/texmf-mswin/bin
MTXrun | variable SELFAUTODIR set to c:/context/tex/texmf-mswin
MTXrun | variable SELFAUTOPARENT set to c:/context/tex
MTXrun | variable TEXMFCNF set to c:\context\tex\texmf{-local,-context,}/web2c
MTXrun | loading configuration for c:/context/tex/texmf/web2c from c:/context/te
x/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/53ad5f
8b88994bdd02baa17501789699
MTXrun | locating list of c:/context/tex/texmf-project
MTXrun | locating list of c:/context/tex/texmf-fonts
MTXrun | locating list of c:/context/tex/texmf-local
MTXrun | locating list of c:/context/tex/texmf-mswin
MTXrun | locating list of c:/context/tex/texmf-context
MTXrun | locating list of c:/context/tex/texmf-extra
MTXrun | locating list of c:/context/tex/texmf
MTXrun | loading files for c:/context/tex/texmf-mswin from c:/context/tex/texmf-
cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/ad82a2edc94cf3
e384a3b09c57286765
MTXrun | loading files for c:/context/tex/texmf-context from c:/context/tex/texm
f-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/3063f1ad75eb
7de075a8e56a9b4e93ce
MTXrun | loading files for c:/context/tex/texmf from c:/context/tex/texmf-cache/
luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/e4a2bdb91bf5cb68211e
9b73648a473b
MTXrun | using script: c:/context/tex/texmf-context/scripts/context/lua/mtx-cont
ext.lua
MTXrun | run 1: luatex --fmt="c:/context/tex/texmf-cache/luatex-cache/context/2f
ea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en" --lua="c:/context/tex/texmf-cach
e/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/formats/cont-en.luc" "./
vimdemo.tex"
This is LuaTeX, Version snapshot-0.37.0-2009040118 (Web2C 7.5.7)
 \write18 enabled.
(vimdemo.tex
ConTeXt  ver: 2009.04.06 18:43 MKIV  fmt: 2009.4.6  int: english/english
system         : cont-new loaded
(c:/context/tex/texmf-context/tex/context/base/cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
(c:/context/tex/texmf-context/tex/context/base/cont-new.mkiv) (c:/context/tex/te
xmf-context/tex/context/base/cont-mtx.tex))
system         : cont-fil loaded
(c:/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading         : ConTeXt File Synonyms
)
system         : cont-sys loaded
(c:/context/tex/texmf-context/tex/context/user/cont-sys.tex (c:/context/tex/texm
f-context/tex/context/base/type-tmf.tex) (c:/context/tex/texmf-context/tex/conte
xt/base/type-siz.tex (c:/context/tex/texmf-context/tex/context/base/type-siz.mki
v)) (c:/context/tex/texmf-context/tex/context/base/type-otf.tex (c:/context/tex/
texmf-context/tex/context/base/type-otf.mkiv))
system         : module plus loaded
(c:/context/tex/texmf-context/tex/context/base/m-plus.tex))
system         : vimdemo.top loaded
(vimdemo.top)
specials       : pdftex loaded
language       : language en is active
color          : mpcmyk color space is supported
color          : mpspot color space is supported
color          : system rgb is global activated
system         : module vim loaded
(c:/context/tex/texmf-context/tex/context/third/vim/t-vim.tex
loading         : Context Module for ViM Sytax Highlighting
color          : system hex is loaded
(c:/context/tex/texmf-context/tex/context/base/colo-hex.tex))
systems         : begin file vimdemo at line 5
title           : - Matlab Code Listing -- Color
MTXrun | variable SELFAUTOLOC set to c:/context/tex/texmf-mswin/bin
MTXrun | variable SELFAUTODIR set to c:/context/tex/texmf-mswin
MTXrun | variable SELFAUTOPARENT set to c:/context/tex
MTXrun | variable TEXMFCNF set to c:\context\tex\texmf{-local,-context,}/web2c
MTXrun | loading configuration for c:/context/tex/texmf/web2c from c:/context/te
x/texmf-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/53ad5f
8b88994bdd02baa17501789699
MTXrun | locating list of c:/context/tex/texmf-project
MTXrun | locating list of c:/context/tex/texmf-fonts
MTXrun | locating list of c:/context/tex/texmf-local
MTXrun | locating list of c:/context/tex/texmf-mswin
MTXrun | locating list of c:/context/tex/texmf-context
MTXrun | locating list of c:/context/tex/texmf-extra
MTXrun | locating list of c:/context/tex/texmf
MTXrun | loading files for c:/context/tex/texmf-mswin from c:/context/tex/texmf-
cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/ad82a2edc94cf3
e384a3b09c57286765
MTXrun | loading files for c:/context/tex/texmf-context from c:/context/tex/texm
f-cache/luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/3063f1ad75eb
7de075a8e56a9b4e93ce
MTXrun | loading files for c:/context/tex/texmf from c:/context/tex/texmf-cache/
luatex-cache/context/2fea56f92e5267d7cc9662e4d5f52e1e/trees/e4a2bdb91bf5cb68211e
9b73648a473b
MTXrun |
MTXrun | executing: vim "-u NONE -e -C -n -V10log -c set" "tabstop=8 -c syntax"
"on -c set" "syntax=c -c let" "contextstartline=1 -c let" "contextstopline=0 -c
source" "c:/context/tex/texmf-context/tex/context/third/vim/2context.vim -c wqa
vimdemo-vimsyntax.tmp "
MTXrun |
MTXrun |
! I can't find file `vimdemo-vimsyntax.tmp-vimsyntax.tmp'.
<to be read again>
                   \relax
\dodotypevimfile ...\input #2-vimsyntax.tmp\relax
                                                  \egroup \@@vsafter
l.17 \stopC
Please type another input file name: ^Z
! Emergency stop.
<to be read again>
                   \relax
\dodotypevimfile ...\input #2-vimsyntax.tmp\relax
                                                  \egroup \@@vsafter
l.17 \stopC
!  ==> Fatal error occurred, no output PDF file produced!
MTXrun | fatal error, return code: 1
C:\Documents\TeX>
-------------------------------------------------------------------------------------------------------