Re: syntax highlighting of rc.conf with vim



In message <9C496190-E2DE-4015-A340-CA0062B6EF9E@xxxxxxxxxxxxxxxxxx>, Michael Worobcuk wrote:

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 ?

You can do this by setting the filetype explicitly for rc.conf in your
~/.vim/filetypes file, e.g.

if exists("did_load_filetypes")
finish
endif
augroup filetypedetect
au! BufRead rc.conf setfiletype sh
augroup END


Cheers,
Nick.
--

_______________________________________________
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: 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)
  • syntax highlighting of rc.conf with vim
    ... 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. ...
    (freebsd-stable)
  • 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)
  • IDEs, syntactic vs. semantic highlighting, etc. (was Re: What is your favourite IDE? Eclipse DLTK!)
    ... ability to move from basic syntax highlighting of code to something more like ... While syntax highlighting is nice, ... I think we're starting to get into language design and language processor implementation issues here, and I'm all in favor of debating that. ... And how many programmers *really* program on a "team of one?" ...
    (comp.lang.ruby)
  • Re: (G)Vim Oddity
    ... The syntax highlighting ... but I do not know much about gvim highlighting so I ... > " Use Vim settings, rather then Vi settings. ... > " Also load indent files, ...
    (Debian-User)