Gmane
From: Bram Moolenaar <Bram <at> moolenaar.net>
Subject: Re: [tbm <at> cyrius.com: Bug#212696: vim: modelines seem to be broken]
Newsgroups: gmane.editors.vim.devel
Date: 2003-09-27 20:08:40 GMT (5 years, 9 weeks, 4 days, 5 hours and 27 minutes ago)

Martin Michlmayr wrote:

> * Bram Moolenaar <Bram <at> moolenaar.net> [2003-09-27 20:24]:
> > What does ":verbose set modeline?" say?
> 
>   modeline
>         Last set from /usr/share/vim/vimrc
> 
> /usr/share/vim/vimrc contains:
> " Prevent modelines in files from being evaluated (avoids a potential
> " security problem wherein a malicious user could write a hazardous
> " modeline into a file) (override default value of 5)
> set modelines=0
> 
> 
> Putting "set modelines=5" in my ~/.vimrc works, so it looks as if
> setting this to 0 by default is a bit too aggressive.

Well, that explains it.

That Debian choses to disable using modelines is their choice.  But they
should be aware that users will get confused, since the documentation
mentions it's on by default.

At least do ":set nomodeline" instead of setting 'modelines' to zero,
that confuses Vim users, as this bug report has confirmed.  You better
leave 'modelines' alone, I don't see a reason to change its value even
if you don't want to use modelines.

-- 
Micro$oft: where do you want to go today?
    Linux: where do you want to go tomorrow?
  FreeBSD: are you guys coming, or what?

 /// Bram Moolenaar -- Bram <at> Moolenaar.net -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///