Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2007 10:40:59 +0200
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        freebsd-stable@freebsd.org
Subject:   Re: syntax highlighting of rc.conf with vim
Message-ID:  <46AC529B.7060601@quip.cz>
In-Reply-To: <20070729020601.GA45042@eos.sc1.parodius.com>
References:  <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de>	<14989d6e0707280355j1c808a95o52ab8d4b012660c2@mail.gmail.com>	<CFB247C4-B151-405C-BF1F-0065A6A5C31A@michaelworobcuk.de>	<46AB35F9.7060302@quip.cz> <239431185628362@webmail18.yandex.ru> <20070729020601.GA45042@eos.sc1.parodius.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46AC529B.7060601>