ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: syntax highlighting problem with vim module
@ 2008-11-20  9:22 Shiv Shankar Dayal
  2008-11-20 16:14 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-20  9:22 UTC (permalink / raw)
  To: ntg-context

Hi,

Finally some success. I get product-name-vimsyntax.tmp when I run context.
It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.

I kill the compilation and run the command for vim manually which generates
product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
get pretty printing. I am somewhat happy but I do not know why this is
happening.

-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-20  9:22 syntax highlighting problem with vim module Shiv Shankar Dayal
@ 2008-11-20 16:14 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-20 16:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 20 Nov 2008, Shiv Shankar Dayal wrote:

> Hi,
>
> Finally some success. I get product-name-vimsyntax.tmp when I run context.
> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.
>
> I kill the compilation and run the command for vim manually which generates
> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
> get pretty printing. I am somewhat happy but I do not know why this is
> happening.

Do you have write18 enabled? see http://wiki.contextgarden.net/write18

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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-21 13:48 Shiv Shankar Dayal
@ 2008-11-21 16:08 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-21 16:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, 21 Nov 2008, Shiv Shankar Dayal wrote:

>>> Finally some success. I get product-name-vimsyntax.tmp when I run context.
>>> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.
>>>
>>> I kill the compilation and run the command for vim manually which generates
>>> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
>>> get pretty printing. I am somewhat happy but I do not know why this is
>>> happening.
>
>> Do you have write18 enabled? see http://wiki.contextgarden.net/write18
>
>> Aditya
>
> Yes. write18 is enabled.


I am really confused why it is not working for you. Can you create a 
minimal example, run "context --verbose filename" and send me (offlist) 
the console output (not the log file, the console output has some extra 
info from mtxrun). Also can you check what happens when you run (in a 
single line)

mtxrun --verbose --noquote bin:vim "-u NONE -e -C -n -V10log -c \"syntax 
on\" -c \"source kpse:2context.vim\" -c \"wqa\" vim-test.tex "

Replace vim-test.tex by any file that exists on your system. Send me the 
console output and the log file created by vim.

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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
@ 2008-11-21 13:48 Shiv Shankar Dayal
  2008-11-21 16:08 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-21 13:48 UTC (permalink / raw)
  To: ntg-context

>> Finally some success. I get product-name-vimsyntax.tmp when I run context.
>> It complains about not finding product-name-vimsyntax.tmp-vimsyntax.tmp.
>>
>> I kill the compilation and run the command for vim manually which generates
>> product-name-vimsyntax.tmp-vimsyntax.tmp. Then I run context again and I
>> get pretty printing. I am somewhat happy but I do not know why this is
>> happening.

>Do you have write18 enabled? see http://wiki.contextgarden.net/write18

>Aditya

Yes. write18 is enabled.
-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-19 16:31 Shiv Shankar Dayal
@ 2008-11-19 20:07 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-19 20:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 19 Nov 2008, Shiv Shankar Dayal wrote:

> Hi,
>
> I updated context and grepped mtxrun for noquotes and the output is
> same as yours.
>
> I have a query. Line 270 of t-vim says \runvimsyntax{#2}
> Line275: \input #2-vimsyntax.tmp\relax
>
> where #2 is product_name-vimsyntax.tmp.
>
> This means that if the product name is xyz then \runvimsyntax{#2}
> which is basically
> a run of vim over #2 and it generates the #2-vimsyntax.tmp.

Yes. The 2context.vim script generates filename.ext-vimsyntax.tmp file. I 
am at a loss of understanding what is happening here.

Run
context --verbose filename

and check the output for something like

MtxRun | executing: vim -u NONE -e -C -n -c "set 
tabstop=8" -c "syntax on" -c "s
et syntax=cpp" -c "let contextstartline=1" -c "let contextstopline=0" -c 
"source
  /opt/context/tex/texmf-project/tex/context/third/vim/2context.vim" -c 
"wqa" "vim-test-vimsyntax.tmp"

Run this line on your terminal (in a single line) and see what vim does.

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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
@ 2008-11-19 16:31 Shiv Shankar Dayal
  2008-11-19 20:07 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-19 16:31 UTC (permalink / raw)
  To: ntg-context

Hi,

I updated context and grepped mtxrun for noquotes and the output is
same as yours.

I have a query. Line 270 of t-vim says \runvimsyntax{#2}
Line275: \input #2-vimsyntax.tmp\relax

where #2 is product_name-vimsyntax.tmp.

This means that if the product name is xyz then \runvimsyntax{#2}
which is basically
a run of vim over #2 and it generates the #2-vimsyntax.tmp.

-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-19 13:50 Shiv Shankar Dayal
@ 2008-11-19 15:47 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-19 15:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, 19 Nov 2008, Shiv Shankar Dayal wrote:

> Hi,
>
> I am running MarkIV and "luatools t-vim.tex" shows me the path of t-vim.tex.
> The version does say version=2008.07.15.

OK. So, t-vim is up-to-date.

> I tried to execute the same command which t-vim.tex executes for vim but
> it says that command line is not correct. I switched on the logging and then
> I read the log and it says tabstop=8 is a new file. I doubt that something may
> be wrong with the command line for vim.

This means that mtxrun is old. Does mtxrun accept the noquotes option? Try

mtxrun | grep noquotes

Here it gives

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

and this is needed for t-vim to run correctly. If you do not get any 
result with noquotes, you need a new mtxrun (and maybe a new luatex to use 
the new mtxrun). The cleanest way will be to update your entire context 
tree, but I do not know what is the best way to do so in TeXLive. You can 
try http://wiki.contextgarden.net/Running_Mark_IV#Updating_ConTeXt

or do a manual update by unzipping cont-tmf.zip (from pragma) to your 
texmf-local, and then run

luatools --generate
mtxrun --selfupdate
context --make

and try again.

Best,
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
@ 2008-11-19 13:50 Shiv Shankar Dayal
  2008-11-19 15:47 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-19 13:50 UTC (permalink / raw)
  To: ntg-context

Hi,

I am running MarkIV and "luatools t-vim.tex" shows me the path of t-vim.tex.
The version does say version=2008.07.15.

I tried to execute the same command which t-vim.tex executes for vim but
it says that command line is not correct. I switched on the logging and then
I read the log and it says tabstop=8 is a new file. I doubt that something may
be wrong with the command line for vim.

-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-18 16:34 Shiv Shankar Dayal
@ 2008-11-18 19:41 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-18 19:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 18 Nov 2008, Shiv Shankar Dayal wrote:

> Hi,
>
> I tried on both windows as well as on linux but I fail with the new
> module as well.
> The error being the same.
>
> I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'.
>
> One thing I noticed that there is t-vim.tpm file. Where to put it?

You do not need to put it anywhere. That file is just for making packaging 
of the module easier.

> I have installed texlive 2008 in C\texlive on Windows and
> /usr/local/texlive/ on Linux.

I need some information to debug. Are you using MKII or MKIV? If you are 
using MKII, what does "kpsewhich t-vim.tex" give. For MKIV, what does 
"luatools t-vim.tex.tex" give. Open the file returned by the previous 
command, and check the version= line on the top. Does it say 
version=2008.07.15?

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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
@ 2008-11-18 16:34 Shiv Shankar Dayal
  2008-11-18 19:41 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-18 16:34 UTC (permalink / raw)
  To: ntg-context

Hi,

I tried on both windows as well as on linux but I fail with the new
module as well.
The error being the same.

I can't find file `xyz-vimsyntax.tmp-vimsyntax.tmp'.

One thing I noticed that there is t-vim.tpm file. Where to put it?
I have installed texlive 2008 in C\texlive on Windows and
/usr/local/texlive/ on Linux.
-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

* Re: syntax highlighting problem with vim module
  2008-11-18 12:31 Shiv Shankar Dayal
@ 2008-11-18 13:20 ` Aditya Mahajan
  0 siblings, 0 replies; 12+ messages in thread
From: Aditya Mahajan @ 2008-11-18 13:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 18 Nov 2008, Shiv Shankar Dayal wrote:

> Hi,
>
> If I have a product name xyz and I have following things set up.
> \usemodule[vim]
> \setuptyping[option=color]
> \definevimtyping [C] [syntax=c]
> ....................
> then I have following
> ..................
> \startC
> #include <iostream>
> using namespace std;
> \stopC
> .....................
> I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp"
>
> temmfstart bin:vim starts vim. vim is in the path. I am using Windows
> Vista with Texlive 2008.
> I would also like to know the syntax for C++.

You will need to update t-vim module from 
http://modules.contextgarden.net/vim Something changed in texexec that 
made t-vim fail. The new version uses mtxrun. I have only 
tested it on linux, but Hans tested mtxrun on Windows, so the new version 
should work on Vista.

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] 12+ messages in thread

* syntax highlighting problem with vim module
@ 2008-11-18 12:31 Shiv Shankar Dayal
  2008-11-18 13:20 ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: Shiv Shankar Dayal @ 2008-11-18 12:31 UTC (permalink / raw)
  To: ntg-context

Hi,

If I have a product name xyz and I have following things set up.
\usemodule[vim]
\setuptyping[option=color]
\definevimtyping [C] [syntax=c]
....................
then I have following
..................
\startC
#include <iostream>
using namespace std;
\stopC
.....................
I get the error : I can't find file xyz-vimsyntax.tmp-vimsyntax.tmp"

temmfstart bin:vim starts vim. vim is in the path. I am using Windows
Vista with Texlive 2008.
I would also like to know the syntax for C++.
-- 
Best regards,
Shiv Shankar Dayal
___________________________________________________________________________________
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] 12+ messages in thread

end of thread, other threads:[~2008-11-21 16:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-20  9:22 syntax highlighting problem with vim module Shiv Shankar Dayal
2008-11-20 16:14 ` Aditya Mahajan
  -- strict thread matches above, loose matches on Subject: below --
2008-11-21 13:48 Shiv Shankar Dayal
2008-11-21 16:08 ` Aditya Mahajan
2008-11-19 16:31 Shiv Shankar Dayal
2008-11-19 20:07 ` Aditya Mahajan
2008-11-19 13:50 Shiv Shankar Dayal
2008-11-19 15:47 ` Aditya Mahajan
2008-11-18 16:34 Shiv Shankar Dayal
2008-11-18 19:41 ` Aditya Mahajan
2008-11-18 12:31 Shiv Shankar Dayal
2008-11-18 13:20 ` 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).