From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49332 Path: news.gmane.org!not-for-mail From: Andy Wong Newsgroups: gmane.comp.tex.context Subject: Re: t-vim failed under windows Date: Fri, 10 Apr 2009 15:23:17 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1267668820==" X-Trace: ger.gmane.org 1239395149 8046 80.91.229.12 (10 Apr 2009 20:25:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 20:25:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 22:27:08 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 1LsNHy-0006SL-VL for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 22:25:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B19D61FBC5; Fri, 10 Apr 2009 22:23:57 +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 27959-04-4; Fri, 10 Apr 2009 22:23:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6F5091FB39; Fri, 10 Apr 2009 22:23:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 42CE71FB39 for ; Fri, 10 Apr 2009 22:23:26 +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 27959-04-3 for ; Fri, 10 Apr 2009 22:23:19 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 962661FB1D for ; Fri, 10 Apr 2009 22:23:19 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.150]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AKNIwX007358 for ; Fri, 10 Apr 2009 22:23:18 +0200 Original-Received: by qw-out-1920.google.com with SMTP id 9so860480qwj.38 for ; Fri, 10 Apr 2009 13:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=JWQgS/kgrLvUGKPLjfOpTpDFdkRrKeHKxZzIUNVNBeo=; b=SGN82A8Ri3K8WsCPR8E9KejJKBJ4arJGb9PxFZ5W33cJD0W/iMBVKwG3PPqSaeiSKJ 9rH7gf99qPLq7a9vh/pzKJHPia3Eh3U/apjcdE3qDrnxJaQl+HaMNBpbkXALK8Rgu5Pm TbwsRJi3nyDz8gM35xS2l//HlpwA5HM6aeEug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=kM9/oU71CdjM9u8uKMI4x/JKk0Kpczq5iAcXyLODcRk+TEJYJ9waaxrtb6vvMKQ9r8 Q2rh0JH1zv9Xn4Q8tb3rnug07zxSjKyLudwS9TqJyvVXUedgrQnCzCsYi3meggDKwIho Bq5QJfZ8/PXXEp6T/Wxqc/KESHB76PXUwFvic= Original-Received: by 10.229.81.144 with SMTP id x16mr1152942qck.69.1239394997648; Fri, 10 Apr 2009 13:23:17 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.150; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207149805 - 8ba69fb74011 - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:49332 Archived-At: --===============1267668820== Content-Type: multipart/alternative; boundary=0016364ee01c923f2504673922d5 --0016364ee01c923f2504673922d5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit It did not work, either. Same problem. Andy On Fri, Apr 10, 2009 at 3:13 PM, Aditya Mahajan wrote: > 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 > > ___________________________________________________________________________________ > --0016364ee01c923f2504673922d5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
It did not work, either. Same problem.
=A0

Andy
On Fri, Apr 10, 2009 at 3:13 PM, Aditya Mahajan = <adityam@umich.ed= u> wrote:
On Thu, 9 Apr 2009, Andy Wong wrote:

Hello,

I have tried the e= xample 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. =A0From the log file, it seems the vim = command is not
properly quoted as follows:

Ano= ther attempt. Does the following test file work for you?

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Start file
= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\unprotect
\def= \shellescapedquote{\letterdoublequote}

\def\runvimsyntax#1
=A0 {\= executesystemcommand
=A0 =A0 =A0{mtxrun --verbose bin:vim
=A0 =A0 =A0 -u NONE =A0% No need to= read unnessary configurations
=A0 =A0 =A0 -e =A0 =A0 =A0 % run in ex mo= de
=A0 =A0 =A0 -C =A0 =A0 =A0 % Set compatibile
=A0 =A0 =A0 -n =A0 = =A0 =A0 % No swap
=A0 =A0 =A0 -c \shellescapedquote set tabstop=3D\@@vst= ab\shellescapedquote\space=20

=A0 =A0 =A0 -c \shellescapedquote syntax on\shellesca= pedquote\space
=A0 =A0 =A0 -c \shellescapedquote set syntax=3D\@@v= ssyntax\shellescapedquote\space
=A0 =A0 =A0 -c \shellescapedquote let co= ntextstartline=3D\@@vsstart\shellescapedquote\space
=A0 =A0 =A0 -c \shellescapedquote let contextstopline=3D\@@vsstop\shellesca= pedquote =A0\space
=A0 =A0 =A0 -c \shellescapedquote source kpse:2contex= t.vim\shellescapedquote\space
=A0 =A0 =A0 -c \shellescapedquote wqa\shel= lescapedquote\space
=A0 =A0 =A0 =A0\shellescapedquote#1\shellescapedquote}}
\protect

= \setupcolors[state=3Dstart]
\usemodule[vim]
\definevimtyping [C] [syn= tax=3Dc]
\starttext=20

\startC
#include <stdio.h>
#include <s= tdlib.h>
void main()
{
=A0printf("Hello World\n") ;=A0return;
}
\stopC
\stoptext

%%%%%%%%%%%%%%%%%%%%%= %%%%%%%%%%%%%%%%
%%% End file
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%=20


Aditya
_______________________________________= ____________________________________________
If your question is of inte= rest to others as well, please add an entry to the Wiki!

maillist : = ntg-context@ntg.nl<= /a> / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http:/= /www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: https://foundry.supelec.fr/= projects/contextrev/
wiki =A0 =A0 : http= ://contextgarden.net
_______________________________________________= ____________________________________

--0016364ee01c923f2504673922d5-- --===============1267668820== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1267668820==--