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 ? Best Regards Michael
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"? Christian
In message <9C496190-E2DE-4015-A340-CA0062B6EF9E@michaelworobcuk.de>, 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. --