vim syntax headers

Pietro Cerutti gahr at FreeBSD.org
Mon Sep 2 10:20:09 UTC 2013


On 2013-Sep-02, 11:39, Florent Peterschmitt wrote:
> Hi,
> 
> I want to use this header (or footer) to tell vim showing syntax
> highliting on Apache conf files:
> 
> # vim: syntax=apache

try with

# vim: ft=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?
> 
> -- 
> Florent Peterschmitt           | Please:
> florent at peterschmitt.fr        |  * Avoid HTML/RTF in E-mail.
> +33 (0)6 64 33 97 92           |  * Send PDF for documents.
> http://florent.peterschmitt.fr |  * Trim your quotations. Really.
> Proudly powered by Open Source | Thank you :)
> 



-- 
Pietro Cerutti
The FreeBSD Project
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130902/b835cdb4/attachment.sig>


More information about the freebsd-ports mailing list