From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49330 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-vim failed under windows Date: Fri, 10 Apr 2009 16:13:48 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239394516 6462 80.91.229.12 (10 Apr 2009 20:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 20:15:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 22:16:35 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LsN9L-0003H3-T2 for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 22:16:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 313571FBBE; Fri, 10 Apr 2009 22:15:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27961-02-3; Fri, 10 Apr 2009 22:14:20 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B8891FB60; Fri, 10 Apr 2009 22:14:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 840171FB60 for ; Fri, 10 Apr 2009 22:14:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29827-02-5 for ; Fri, 10 Apr 2009 22:14:08 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 583101FB5A for ; Fri, 10 Apr 2009 22:14:08 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AKE7Fh019480 for ; Fri, 10 Apr 2009 22:14:07 +0200 Original-Received: FROM dhcp128036151110.central.yale.edu (dhcp128036151110.central.yale.edu [128.36.151.110]) BY tombraider.mr.itd.umich.edu ID 49DFA88E.4608A.27796 ; 10 Apr 2009 16:14:06 -0400 In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207148206 - 4ab8b5b9dbfe - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49330 Archived-At: On Thu, 9 Apr 2009, Andy Wong wrote: > 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: Another attempt. Does the following test file work for you? %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Start file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \unprotect \def\shellescapedquote{\letterdoublequote} \def\runvimsyntax#1 {\executesystemcommand {mtxrun --verbose bin:vim -u NONE % No need to read unnessary configurations -e % run in ex mode -C % Set compatibile -n % No swap -c \shellescapedquote set tabstop=\@@vstab\shellescapedquote\space -c \shellescapedquote syntax on\shellescapedquote\space -c \shellescapedquote set syntax=\@@vssyntax\shellescapedquote\space -c \shellescapedquote let contextstartline=\@@vsstart\shellescapedquote\space -c \shellescapedquote let contextstopline=\@@vsstop\shellescapedquote \space -c \shellescapedquote source kpse:2context.vim\shellescapedquote\space -c \shellescapedquote wqa\shellescapedquote\space \shellescapedquote#1\shellescapedquote}} \protect \setupcolors[state=start] \usemodule[vim] \definevimtyping [C] [syntax=c] \starttext \startC #include #include void main() { printf("Hello World\n") ; return; } \stopC \stoptext %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% End file %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Aditya ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________