Re: [NTG-context] syntax highlighting problem with vim module

2008-11-21 Thread Shiv Shankar Dayal
 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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-21 Thread Aditya Mahajan
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-20 Thread Shiv Shankar Dayal
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-20 Thread Aditya Mahajan
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Shiv Shankar Dayal
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Aditya Mahajan
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Shiv Shankar Dayal
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-19 Thread Aditya Mahajan
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
___


[NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Aditya Mahajan
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Shiv Shankar Dayal
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
___


Re: [NTG-context] syntax highlighting problem with vim module

2008-11-18 Thread Aditya Mahajan
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
___