Re: syntax highlighting of rc.conf with vim



Michael Worobcuk wrote:


Am 28.07.2007 um 12:55 schrieb Christian Walther:

Hi Michael,

On 28/07/07, Michael Worobcuk <mail@xxxxxxxxxxxxxxxxxx> 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
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: PSPad: Syntax highlighting for Tcl
    ... PSPad definitely does support Tcl syntax highlighting - though I've used it ... I don't think you need to download a syntax file. ...
    (comp.lang.tcl)
  • Re: syntax highlighting of rc.conf with vim
    ... Everything works fine except the syntax highlighting of rc.conf. ... So I came to the conclusion that the syntax file for .conf would ... I also tried to use vim 6.x and copy the syntax files from a machine ...
    (freebsd-stable)
  • Re: Can user change the highlighting in midnight commander?
    ... I use nano but I've never ... bothered with syntax highlighting. ... I have created the Syntax file by opening it via the Command menu ... It seams that if midnight commander finds my ...
    (comp.os.linux.misc)
  • Re: source code editor
    ... I would like to know which is the best & lightest editor for source ... but it seems like it does not support syntax highlighting. ... VIM is in general to prefer over plain vi. ... is like keeping a tall user tall. ...
    (Debian-User)
  • Re: source code editor
    ... but it seems like it does not support syntax highlighting. ... Print out the Emacs reference card and the Vim reference card. ... When you open Windows, bugs get in! ...
    (Debian-User)