From owner-freebsd-stable@FreeBSD.ORG Sun Jul 29 08:40:25 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 D709F16A417 for ; Sun, 29 Jul 2007 08:40:25 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [82.208.36.70]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7CF13C461 for ; Sun, 29 Jul 2007 08:40:25 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 3D73E19E053 for ; Sun, 29 Jul 2007 10:40:24 +0200 (CEST) Received: from [192.168.1.2] (grimm.quip.cz [213.220.192.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTP id AA7AA19E027 for ; Sun, 29 Jul 2007 10:40:21 +0200 (CEST) Message-ID: <46AC529B.7060601@quip.cz> Date: Sun, 29 Jul 2007 10:40:59 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de> <14989d6e0707280355j1c808a95o52ab8d4b012660c2@mail.gmail.com> <46AB35F9.7060302@quip.cz> <239431185628362@webmail18.yandex.ru> <20070729020601.GA45042@eos.sc1.parodius.com> In-Reply-To: <20070729020601.GA45042@eos.sc1.parodius.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 08:40:25 -0000 Jeremy Chadwick wrote: > 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. [...] This is the reason why I am using # character and have modelines disabled for root user. Miroslav Lachman