syntax highlighting of rc.conf with vim
Miroslav Lachman
000.fbsd at quip.cz
Sat Jul 28 12:43:56 UTC 2007
Michael Worobcuk wrote:
>
> Am 28.07.2007 um 12:55 schrieb Christian Walther:
>
>> Hi Michael,
>>
>> On 28/07/07, Michael Worobcuk <mail at 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.
Miroslav Lachman
More information about the freebsd-stable
mailing list