Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jul 2007 14:31:20 +0200
From:      Michael Worobcuk <mail@michaelworobcuk.de>
To:        Miroslav Lachman <000.fbsd@quip.cz>
Cc:        freebsd-stable@freebsd.org, Christian Walther <cptsalek@gmail.com>
Subject:   Re: syntax highlighting of rc.conf with vim
Message-ID:  <89151646-4FF3-41EA-98FD-A4DAD89BC93E@michaelworobcuk.de>
In-Reply-To: <46AB35F9.7060302@quip.cz>
References:  <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de>	<14989d6e0707280355j1c808a95o52ab8d4b012660c2@mail.gmail.com> <CFB247C4-B151-405C-BF1F-0065A6A5C31A@michaelworobcuk.de> <46AB35F9.7060302@quip.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

Am 28.07.2007 um 14:26 schrieb Miroslav Lachman:

> Michael Worobcuk wrote:
>
>> Am 28.07.2007 um 12:55 schrieb Christian Walther:
>>> Hi Michael,
>>>
>>> On 28/07/07, Michael Worobcuk <mail@michaelworobcuk.de> wrote:
>>>
>>>> Hi,
>>>> I am using  vim-7.1.18.
>>>> Everything works fine except the syntax highlighting of rc.conf.
>>>> The problem is that vim does no highlighting for the rc.conf but
>>>> other .conf files are highlighted es expected.
>>>> So I came to the conclusion that the syntax file for .conf would
>>>> probably be ok.
>>>> I also tried to use vim 6.x and copy the syntax files from a  
>>>> machine
>>>> were everything works fine. But the problem did not disappear.
>>>> Does anybody have a clou ?
>>>>
>>> Is it possible that it's something related to your rc.conf?
>>> What does the first line read, "#!/bin/sh"?
>> No, the first line of  /etc/rc.conf starts with the hostname.
>
> 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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?89151646-4FF3-41EA-98FD-A4DAD89BC93E>