vim syntax headers

Serpent7776 serpent7776 at gmail.com
Mon Sep 2 10:26:46 UTC 2013


Hello,

> Hi,
> 
> I want to use this header (or footer) to tell vim showing syntax
> highliting on Apache conf files:
> 
> # vim: syntax=apache
> 
> If put at head of file, only the comment will be colored, not the
> text. If put at the end of fiel, nothing is colored.
> 
> Then if a :set syntax=apache, syntax goes on.
> 
> Here is vimrc I use:
> http://projet.beastie.eu/?p=desktop-config.git;a=blob_plain;f=vimrc;hb=HEAD
> 
> Any idea?

Try this:
# vim: set syntax=apache

-- 
"
" Serpent
"


More information about the freebsd-ports mailing list