From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59866 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: vim syntax highlighting in MKIV Date: Sat, 26 Jun 2010 22:38:35 -0400 (EDT) Message-ID: References: <4C251E90.3050808@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277606342 25859 80.91.229.12 (27 Jun 2010 02:39:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 27 Jun 2010 02:39:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jun 27 04:39:01 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OShlq-00052w-Ie for gctc-ntg-context-518@m.gmane.org; Sun, 27 Jun 2010 04:38:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57AEDC9B1A; Sun, 27 Jun 2010 04:38:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XKZp5+FdcZCa; Sun, 27 Jun 2010 04:38:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0A049C9AFD; Sun, 27 Jun 2010 04:38:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0471C9AFD for ; Sun, 27 Jun 2010 04:38:51 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ibByyRkTGUgz for ; Sun, 27 Jun 2010 04:38:39 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by balder.ntg.nl (Postfix) with ESMTP id 3AF79C9AF5 for ; Sun, 27 Jun 2010 04:38:38 +0200 (CEST) Original-Received: FROM [192.168.2.8] (c-76-28-91-31.hsd1.ct.comcast.net [76.28.91.31]) By hellskitchen.mr.itd.umich.edu ID 4C26B9AD.525DF.15918 ; Authuser adityam; 26 Jun 2010 22:38:37 EDT In-Reply-To: <4C251E90.3050808@wxs.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:59866 Archived-At: On Fri, 25 Jun 2010, Hans Hagen wrote: > On 25-6-2010 9:48, Martin 'golodhrim' Scholz wrote: >> Hi Hans, Mojca, Aditya and List, >> >> just tried to use the vim Syntax Highlighting module in ConTeXt MKIV, but >> if running the documents complains it searches a file called >> >> filename-vimsyntax.tmp-vimsyntax.tmp >> >> sure that file not exists but there is a file called >> >> filename-vimsyntax.tmp >> >> is there a way to do a workaround so that the vim Syntaxhighlighting >> module would work in MKIV or does it need to be rewriten completedly? > > probably something that M or A can fix easily Something changed in mtxrun ... Earlier (checked on the 2009.12.31) if I used mtxrun bin:vim kpse:2context.vim the "kpse:2context.vim" was expanded to the full path of 2context.vim. Now (in 2010.06.20), "kpse:2context.vim" expands to "tree://". Of couse, vim does not understand the tree:// prefix and cannot load the file. Is there an option to avoid the tree:// prefix? Almost all the errors in t-vim over the years have due to trying to support kpse: directive. (The errors were not a fault of ConTeXt, but the way quotes are handled by cmd.exe and the various shells in *nix. I still haven't figured out a syntax that works with all shells). This makes me wonder whether it was a good idea to make vim module work out of the box. Perhaps a more robust alternative was to ask the uses to copy 2context.vim to $HOME/.vim/scripts/ and forget about getting mtxrun to locate the file. What do others think? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________