From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22690 Path: news.gmane.org!not-for-mail From: Nikolai Weibull Newsgroups: gmane.comp.tex.context Subject: Re: TeX + Metapost syntax highlighting in Vim Date: Sat, 24 Sep 2005 23:41:21 +0200 Message-ID: <20050924214121.GA8992@puritan.pnetwork> References: <42CEA592.8010603@gmail.com> <20050708212844.GA5397@puritan.pnetwork> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1127598174 31169 80.91.229.2 (24 Sep 2005 21:42:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2005 21:42:54 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat Sep 24 23:42:53 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EJHm2-0008GW-On for gctc-ntg-context-518@m.gmane.org; Sat, 24 Sep 2005 23:41:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6713712797; Sat, 24 Sep 2005 23:41:33 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19708-04; Sat, 24 Sep 2005 23:41:28 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D987F1277C; Sat, 24 Sep 2005 23:41:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8720B1277C for ; Sat, 24 Sep 2005 23:41:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19600-07 for ; Sat, 24 Sep 2005 23:41:25 +0200 (CEST) Original-Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by ronja.ntg.nl (Postfix) with ESMTP id 688D112778 for ; Sat, 24 Sep 2005 23:41:25 +0200 (CEST) Original-Received: from puritan.petwork ([213.112.43.228] [213.112.43.228]) by mxfep02.bredband.com with ESMTP id <20050924214121.ZIWT11792.mxfep02.bredband.com@puritan.petwork> for ; Sat, 24 Sep 2005 23:41:21 +0200 Original-Received: by puritan.petwork (Postfix, from userid 1000) id A8327ADFEA; Sat, 24 Sep 2005 23:41:21 +0200 (CEST) Original-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22690 Archived-At: (OK, this is old, but I finally did something about it.) VnPenguin wrote: > Just tested your context.vim under vim 6.3.x; It's better than > tex/latex standard syntax in vim 6.3 IMHO. > > I have only a small remark: The following code is valid in ConTeXt: > > \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/059600270X/qid%3D1024342376/103-8123753-9606263][][Network > Security with OpenSSL] > > but the syntax considers % like a comment mark, so I see another color > for the text after %. It's possible to make the comment pattern > smarter ? :) Actually, yes, there is. Wait for me to get a new version sent upstream to the Vim 7 CVS, add the following to your vimrc, and cheer: let g:context_spacious_comments = 1 This will make it so that comments must be at the beginning of the line or be preceded by a white-space, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}