Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 18:30:23 +0200
From:      Michael Schuh <michael.schuh@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: vim syntax headers
Message-ID:  <CADwRVEbuyQ4g7ByB3Ugv2e-H4115V1xiUvLStNM0GLgv0U=dWQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
>
>
> > 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADwRVEbuyQ4g7ByB3Ugv2e-H4115V1xiUvLStNM0GLgv0U=dWQ>