From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93953 Path: news.gmane.org!not-for-mail From: Nicola Newsgroups: gmane.comp.tex.context Subject: Re: Custom syntax highlighting Date: Wed, 2 Mar 2016 16:23:01 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2367021592184755207==" X-Trace: ger.gmane.org 1456932267 31801 80.91.229.3 (2 Mar 2016 15:24:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2016 15:24:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 02 16:24:15 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ab8dD-0004fh-PI for gctc-ntg-context-518@m.gmane.org; Wed, 02 Mar 2016 16:24:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6D24478D7; Wed, 2 Mar 2016 16:23:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aLYx-IG-bRYs; Wed, 2 Mar 2016 16:23:34 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8E9E278DC; Wed, 2 Mar 2016 16:23:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DF7097891 for ; Wed, 2 Mar 2016 16:23:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LOJkldMmgw6x for ; Wed, 2 Mar 2016 16:23:32 +0100 (CET) Original-Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3DFFE788C for ; Wed, 2 Mar 2016 16:23:22 +0100 (CET) Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ab8cL-00049T-5Z for ntg-context@ntg.nl; Wed, 02 Mar 2016 16:23:13 +0100 Original-Received: from 158.110.144.157 ([158.110.144.157]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Mar 2016 16:23:13 +0100 Original-Received: from nvitacolonna by 158.110.144.157 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 02 Mar 2016 16:23:13 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 101 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 158.110.144.157 User-Agent: Unison/2.2 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" X-Spam-Report: 5.8 points; * 2.6 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO * 3.2 RCVD_ILLEGAL_IP Received: contains illegal IP address * 0.0 HTML_MESSAGE BODY: HTML included in message Xref: news.gmane.org gmane.comp.tex.context:93953 Archived-At: This is a multi-part message in MIME format. --===============2367021592184755207== Content-Type: multipart/alternative; boundary=--------------5687314401751507306 This is a multi-part message in MIME format. ----------------5687314401751507306 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable On 2016-03-02 14:45:54 +0000, Aditya Mahajan said: > On Wed, 2 Mar 2016, Nicola wrote: >=20 >> On 2016-03-02 02:14:33 +0000, Aditya Mahajan said: >>>=20 >>> I do not load the default vimrc, because that drastically slows down = the >>> module. >>=20 >> That makes sense. So, Vim is run with something like `vim -u NONE`, I=20 >> guess. >=20 > Yes. And if the vimrc option is used, then it is saved on file, and vim= -u=20 > \vimrc_filename is run. Crystal clear, thanks! >> \startvimrc[name=3Dpgsql] >> set nocompatible >> set runtimepath+=3D~/.vim/bundle/pgsql >> let g:sql_type_default=3D'pgsql' >> % ... >> \stopvimrc >=20 > I will add a note to the docs about runtimepath. When I wrote the modul= e,=20 > bundle was not popular, but it is the default now. I use Pathogen, and `bundle` is its default path for plugins. But recentl= y Vim has introduced a feature called `packages` in the core (:h packages),= so one may expect that in the future the default will be `pack`. Nicola ----------------5687314401751507306 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

On 2016-03-02 14:45:54 +0000, Aditya Mahajan said:


On Wed, 2 Mar 2016, Nicola wrote:


On 2016-03-02 02:14:33 +0000, Aditya Mahajan said:


I do not load the default vimrc, because that drastically= slows down the

module.


That makes sense. So, Vim is run with something like `vim= -u NONE`, I=A0

guess.


Yes. And if the vimrc option is used, then it is saved o= n file, and vim -u=A0

\vimrc_filename is run.


Crystal clear, thanks!


\startvimrc[name=3Dpgsql]

set nocompatible

set runtimepath+=3D~/.vim/bundle/pgsql

let g:sql_type_default=3D'pgsql'

% ...

\stopvimrc


I will add a note to the docs about runtimepath. When I = wrote the module,=A0

bundle was not popular, but it is the default now.


I use Pathogen, and `bundle` is its default path for plug= ins. But recently

Vim has introduced a feature called `packages` in the cor= e (:h packages), so

one may expect that in the future the default will be `pa= ck`.


Nicola

----------------5687314401751507306-- --===============2367021592184755207== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2367021592184755207==--