syntax highlighting of rc.conf with vim
    Miroslav Lachman 
    000.fbsd at quip.cz
       
    Sun Jul 29 08:40:25 UTC 2007
    
    
  
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
    
    
More information about the freebsd-stable
mailing list