[Wylug-help] gvim syntax highlighting on FC9

Smylers Smylers at stripey.com
Fri Nov 28 00:13:54 UTC 2008


Gary Stainburn writes:

> In my php files I have either at the top or the bottom of the file the
> following:
> 
> <? // vim: ft=php nowrap ai et 
> 
> which has always forced php syntax highlighting instead of html when
> editing the files.

That's Vim's modelines feature.

> I have just upgraded one of my servers to FC9 with vim 7.1 and this
> has stopped working

I'm guessing that upgrade has added some config which disables modelines
(or removed some config that enabled it).

> Anyone know what I need to do to get this working properly again.

  :set modeline=on

Smylers



More information about the Wylug-help mailing list