ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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
* 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-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-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-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-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

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-18 12:31 syntax highlighting problem with vim module Shiv Shankar Dayal
2008-11-18 13:20 ` Aditya Mahajan
2008-11-18 16:34 Shiv Shankar Dayal
2008-11-18 19:41 ` Aditya Mahajan
2008-11-19 13:50 Shiv Shankar Dayal
2008-11-19 15:47 ` Aditya Mahajan
2008-11-19 16:31 Shiv Shankar Dayal
2008-11-19 20:07 ` Aditya Mahajan
2008-11-20  9:22 Shiv Shankar Dayal
2008-11-20 16:14 ` Aditya Mahajan
2008-11-21 13:48 Shiv Shankar Dayal
2008-11-21 16:08 ` 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).