ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* t-vim problem
@ 2008-10-07  8:44 Zhaopeng Xing
  2008-10-07 17:36 ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Zhaopeng Xing @ 2008-10-07  8:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 760 bytes --]

Hi Aditya,

I am using t-vim 2008.09.15, but the following sample runs problem with the
hightlighting file name.

 \usemodule[vim]

\starttext

\definevimtyping [RUBY] [syntax=ruby]

\startRUBY

#! /usr/bin/ruby

# This is my first ruby program

puts "Hello World"

\stopRUBY

\stoptext


The message is saying:


 ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.

<to be read again>

\relax

\dodotypevimfile ...\input #2-vimsyntax.tmp\relax

\egroup \@@vsafter

l.8 \stopRUBY

 Please type another input file name:


I checked the directory. The file should be named to
untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp.

Can you show me how to figure out such a problem? Thanks.

-- 
Zhaopeng XING

Tinbergen Institute

[-- Attachment #1.2: Type: text/html, Size: 2194 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-vim problem
  2008-10-07  8:44 t-vim problem Zhaopeng Xing
@ 2008-10-07 17:36 ` Aditya Mahajan
  2008-10-07 19:46   ` Zhaopeng Xing
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2008-10-07 17:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 7 Oct 2008, Zhaopeng Xing wrote:

> Hi Aditya,
>
> I am using t-vim 2008.09.15, but the following sample runs problem with the
> hightlighting file name.
>
> \usemodule[vim]
>
> \starttext
>
> \definevimtyping [RUBY] [syntax=ruby]
>
> \startRUBY
>
> #! /usr/bin/ruby
>
> # This is my first ruby program
>
> puts "Hello World"
>
> \stopRUBY
>
> \stoptext
>
>
> The message is saying:
>
>
> ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
>
> <to be read again>
>
> \relax
>
> \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
>
> \egroup \@@vsafter
>
> l.8 \stopRUBY
>
> Please type another input file name:

I thought that I had corrected this. Are you using a recent mtxrun? Type 
in mtxrun --help. Does the third line say

MtxRun | --execute             run a script or program (--noquotes)


> I checked the directory. The file should be named to
> untitled-1-vimsyntax.tmp instead of untitled-1-vimsyntax.tmp-vimsyntax.tmp.

The filenaming is correct. t-vim writes a file called 
\jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with 
<filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called

\jobname-\number-vimsyntax.tmp-vimsyntax.tmp.

This slightly confusing naming scheme is so that --purge does remove all 
the temporary files.

> Can you show me how to figure out such a problem? Thanks.

Which OS are you using?

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-vim problem
  2008-10-07 17:36 ` Aditya Mahajan
@ 2008-10-07 19:46   ` Zhaopeng Xing
  2008-10-07 19:54     ` Zhaopeng Xing
  0 siblings, 1 reply; 6+ messages in thread
From: Zhaopeng Xing @ 2008-10-07 19:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2483 bytes --]

2008/10/7 Aditya Mahajan <adityam@umich.edu>

> On Tue, 7 Oct 2008, Zhaopeng Xing wrote:
>
> > Hi Aditya,
> >
> > I am using t-vim 2008.09.15, but the following sample runs problem with
> the
> > hightlighting file name.
> >
> > \usemodule[vim]
> >
> > \starttext
> >
> > \definevimtyping [RUBY] [syntax=ruby]
> >
> > \startRUBY
> >
> > #! /usr/bin/ruby
> >
> > # This is my first ruby program
> >
> > puts "Hello World"
> >
> > \stopRUBY
> >
> > \stoptext
> >
> >
> > The message is saying:
> >
> >
> > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
> >
> > <to be read again>
> >
> > \relax
> >
> > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
> >
> > \egroup \@@vsafter
> >
> > l.8 \stopRUBY
> >
> > Please type another input file name:
>
> I thought that I had corrected this. Are you using a recent mtxrun? Type
> in mtxrun --help. Does the third line say
>
> MtxRun | --execute             run a script or program (--noquotes)
>

Yes, it is. I am using the latest minimal and t-vim is installed in
texmf-local.


>
> > I checked the directory. The file should be named to
> > untitled-1-vimsyntax.tmp instead of
> untitled-1-vimsyntax.tmp-vimsyntax.tmp.
>
> The filenaming is correct. t-vim writes a file called
> \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with
> <filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called
>
> \jobname-\number-vimsyntax.tmp-vimsyntax.tmp.
>
> This slightly confusing naming scheme is so that --purge does remove all
> the temporary files.
>
I do not know exactly the inside mechanism. When the message asked me about
the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I
think that the file name should be \jobname-\number-vimsyntax.tmp.

>
> > Can you show me how to figure out such a problem? Thanks.
>
> Which OS are you using?
>
I am using Archlinux on a Thinkpad T43. The vi program works fine.


> 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
>
> ___________________________________________________________________________________
>



-- 
Zhaopeng XING

Tinbergen Institute

[-- Attachment #1.2: Type: text/html, Size: 4122 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-vim problem
  2008-10-07 19:46   ` Zhaopeng Xing
@ 2008-10-07 19:54     ` Zhaopeng Xing
  2008-10-07 19:57       ` Zhaopeng Xing
  0 siblings, 1 reply; 6+ messages in thread
From: Zhaopeng Xing @ 2008-10-07 19:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2733 bytes --]

The attachment is my test file and logs. Thanks.

2008/10/7 Zhaopeng Xing <zpxing@gmail.com>

> 2008/10/7 Aditya Mahajan <adityam@umich.edu>
>
>> On Tue, 7 Oct 2008, Zhaopeng Xing wrote:
>>
>> > Hi Aditya,
>> >
>> > I am using t-vim 2008.09.15, but the following sample runs problem with
>> the
>> > hightlighting file name.
>> >
>> > \usemodule[vim]
>> >
>> > \starttext
>> >
>> > \definevimtyping [RUBY] [syntax=ruby]
>> >
>> > \startRUBY
>> >
>> > #! /usr/bin/ruby
>> >
>> > # This is my first ruby program
>> >
>> > puts "Hello World"
>> >
>> > \stopRUBY
>> >
>> > \stoptext
>> >
>> >
>> > The message is saying:
>> >
>> >
>> > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
>> >
>> > <to be read again>
>> >
>> > \relax
>> >
>> > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
>> >
>> > \egroup \@@vsafter
>> >
>> > l.8 \stopRUBY
>> >
>> > Please type another input file name:
>>
>> I thought that I had corrected this. Are you using a recent mtxrun? Type
>> in mtxrun --help. Does the third line say
>>
>> MtxRun | --execute             run a script or program (--noquotes)
>>
>
> Yes, it is. I am using the latest minimal and t-vim is installed in
> texmf-local.
>
>
>>
>> > I checked the directory. The file should be named to
>> > untitled-1-vimsyntax.tmp instead of
>> untitled-1-vimsyntax.tmp-vimsyntax.tmp.
>>
>> The filenaming is correct. t-vim writes a file called
>> \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with
>> <filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called
>>
>> \jobname-\number-vimsyntax.tmp-vimsyntax.tmp.
>>
>> This slightly confusing naming scheme is so that --purge does remove all
>> the temporary files.
>>
> I do not know exactly the inside mechanism. When the message asked me about
> the file name, I input \jobname-\number-vimsyntax.tmp and it works. So I
> think that the file name should be \jobname-\number-vimsyntax.tmp.
>
>>
>> > Can you show me how to figure out such a problem? Thanks.
>>
>> Which OS are you using?
>>
> I am using Archlinux on a Thinkpad T43. The vi program works fine.
>
>
>> 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
>>
>> ___________________________________________________________________________________
>>
>
>
>
> --
> Zhaopeng XING
>
> Tinbergen Institute
>



-- 
Zhaopeng XING

Tinbergen Institute

[-- Attachment #1.2: Type: text/html, Size: 4613 bytes --]

[-- Attachment #2: test.zip --]
[-- Type: application/zip, Size: 2433 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-vim problem
  2008-10-07 19:54     ` Zhaopeng Xing
@ 2008-10-07 19:57       ` Zhaopeng Xing
  2008-10-07 20:12         ` Aditya Mahajan
  0 siblings, 1 reply; 6+ messages in thread
From: Zhaopeng Xing @ 2008-10-07 19:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3090 bytes --]

I am sorry for a hurry reply. The module requires vim but I only install vi
on my laptop. Sorry for my carelessness and Thank you for your attention.

2008/10/7 Zhaopeng Xing <zpxing@gmail.com>

> The attachment is my test file and logs. Thanks.
>
> 2008/10/7 Zhaopeng Xing <zpxing@gmail.com>
>
> 2008/10/7 Aditya Mahajan <adityam@umich.edu>
>>
>>> On Tue, 7 Oct 2008, Zhaopeng Xing wrote:
>>>
>>> > Hi Aditya,
>>> >
>>> > I am using t-vim 2008.09.15, but the following sample runs problem with
>>> the
>>> > hightlighting file name.
>>> >
>>> > \usemodule[vim]
>>> >
>>> > \starttext
>>> >
>>> > \definevimtyping [RUBY] [syntax=ruby]
>>> >
>>> > \startRUBY
>>> >
>>> > #! /usr/bin/ruby
>>> >
>>> > # This is my first ruby program
>>> >
>>> > puts "Hello World"
>>> >
>>> > \stopRUBY
>>> >
>>> > \stoptext
>>> >
>>> >
>>> > The message is saying:
>>> >
>>> >
>>> > ! I can't find file `untitled-1-vimsyntax.tmp-vimsyntax.tmp'.
>>> >
>>> > <to be read again>
>>> >
>>> > \relax
>>> >
>>> > \dodotypevimfile ...\input #2-vimsyntax.tmp\relax
>>> >
>>> > \egroup \@@vsafter
>>> >
>>> > l.8 \stopRUBY
>>> >
>>> > Please type another input file name:
>>>
>>> I thought that I had corrected this. Are you using a recent mtxrun? Type
>>> in mtxrun --help. Does the third line say
>>>
>>> MtxRun | --execute             run a script or program (--noquotes)
>>>
>>
>> Yes, it is. I am using the latest minimal and t-vim is installed in
>> texmf-local.
>>
>>
>>>
>>> > I checked the directory. The file should be named to
>>> > untitled-1-vimsyntax.tmp instead of
>>> untitled-1-vimsyntax.tmp-vimsyntax.tmp.
>>>
>>> The filenaming is correct. t-vim writes a file called
>>> \jobname-\number-vimsyntax.tmp and then 2context.vim writes a file with
>>> <filename>-vimsyntax.tmp, so in effect t-vim is looking for a file called
>>>
>>> \jobname-\number-vimsyntax.tmp-vimsyntax.tmp.
>>>
>>> This slightly confusing naming scheme is so that --purge does remove all
>>> the temporary files.
>>>
>> I do not know exactly the inside mechanism. When the message asked me
>> about the file name, I input \jobname-\number-vimsyntax.tmp and it works. So
>> I think that the file name should be \jobname-\number-vimsyntax.tmp.
>>
>>>
>>> > Can you show me how to figure out such a problem? Thanks.
>>>
>>> Which OS are you using?
>>>
>> I am using Archlinux on a Thinkpad T43. The vi program works fine.
>>
>>
>>> 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
>>>
>>> ___________________________________________________________________________________
>>>
>>
>>
>>
>> --
>> Zhaopeng XING
>>
>> Tinbergen Institute
>>
>
>
>
> --
> Zhaopeng XING
>
> Tinbergen Institute
>



-- 
Zhaopeng XING

Tinbergen Institute

[-- Attachment #1.2: Type: text/html, Size: 5165 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: t-vim problem
  2008-10-07 19:57       ` Zhaopeng Xing
@ 2008-10-07 20:12         ` Aditya Mahajan
  0 siblings, 0 replies; 6+ messages in thread
From: Aditya Mahajan @ 2008-10-07 20:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 7 Oct 2008, Zhaopeng Xing wrote:

> I am sorry for a hurry reply. The module requires vim but I only install vi
> on my laptop. Sorry for my carelessness and Thank you for your attention.

Ah, that was easy :-)

You will also need to add

\setupcolors[state=start]

somewhere in your environment to get colored output.

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-07 20:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07  8:44 t-vim problem Zhaopeng Xing
2008-10-07 17:36 ` Aditya Mahajan
2008-10-07 19:46   ` Zhaopeng Xing
2008-10-07 19:54     ` Zhaopeng Xing
2008-10-07 19:57       ` Zhaopeng Xing
2008-10-07 20:12         ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).