From owner-freebsd-stable@FreeBSD.ORG Sun Jul 29 02:06:01 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3ECD16A41F for ; Sun, 29 Jul 2007 02:06:01 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 6B09E13C46A for ; Sun, 29 Jul 2007 02:06:01 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 7CEF31CC02B; Sat, 28 Jul 2007 19:06:01 -0700 (PDT) Date: Sat, 28 Jul 2007 19:06:01 -0700 From: Jeremy Chadwick To: "Andrey V. Elsukov" Message-ID: <20070729020601.GA45042@eos.sc1.parodius.com> Mail-Followup-To: "Andrey V. Elsukov" , mail@michaelworobcuk.de, cptsalek@gmail.com, freebsd-stable@freebsd.org, 000.fbsd@quip.cz References: <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de> <14989d6e0707280355j1c808a95o52ab8d4b012660c2@mail.gmail.com> <46AB35F9.7060302@quip.cz> <239431185628362@webmail18.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <239431185628362@webmail18.yandex.ru> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: cptsalek@gmail.com, mail@michaelworobcuk.de, 000.fbsd@quip.cz, freebsd-stable@freebsd.org Subject: Re: syntax highlighting of rc.conf with vim X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2007 02:06:01 -0000 On Sat, Jul 28, 2007 at 05:12:42PM +0400, Andrey V. Elsukov wrote: > > Am 28.07.2007 um 14:26 schrieb Miroslav Lachman: > > > If your rc.conf file will start with comment character (#) then > > > syntax highlight will be OK. > > WUOUf, that is a pretty trick. Thanks very much. It works. > > Also you can put in the comment highlight type: > # vim: filetype=sh FreeBSD has somewhat of an exception to this. The feature you're talking about is called vim modeline, and there's quite a big warning in the vim port (shown during installation) about modelines causing historic security problems. Regardless of that fact, I do use them myself, but I'm selective about them. I prefer to use .vimrc and set up appropriate AutoCmd entries depending upon fully-qualified paths for config files. Take your pick. I just wanted to point out that FreeBSD does explicitly mention the historic issues with modeline in the port. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |