vim syntax headers

Michael Schuh michael.schuh at gmail.com
Mon Sep 2 16:30:24 UTC 2013


>
>
> > Try this:
> > # vim: set syntax=apache
>
> Doesn't work anymore. I built vim 7.4 manually (and installed it in
> ~/.local), it doesn't work anymore but it's ok on Debian with vim 7.4.
>
> A bug somewhere?
>
>
should work since vim 6.0;
may be modelines are disabled per default for security concerns?
http://vimdoc.sourceforge.net/htmldoc/options.html#'modeline'

you can figure if modelines are enabled and if the area is big enough, by
checking the settings: [ESC]:set

or try [ESC]:help modelines.
and if approbiate review your .vimrc/.exrc

modeline <boolean>
modelines <no_of_lines to check>

defaults to 5, if your comment before (at the beginning of the file) or
after (at the end of the file) is to
big no modeline gets loaded.


More information about the freebsd-ports mailing list