jkb wrote:
> Thanks for your helpful response.  I've been using vim without
> any .vimrc files--is it possible that the default setting for
> modelines went from "off" to "on" with 7.2?

I don't know what your old version of Vim was, but the answer is
no. If you have no .vimrc file, Vim will default to be in
compatible mode (the command ':set cp?' would show 'compatible').
That means modelines would be off (':set modeline?' would show
'nomodeline').

What's probably happened is that there is now (in the new
release which has been installed) a system vimrc file and that
is setting 'nocompatible' (I guess). You can confirm that with
':version' (what will be looked for), and ':scriptnames' (what
has actually run). Another test would be:

:verbose set compatible?

You definitely want nocompatible mode for the many extra
features provided. If you do not want modelines, you could make
yourself a vimrc file ("user vimrc" shown by :version), with
contents (I suppose the first line is redundant because any user
vimrc causes a 'nocompatible' default):

set nocompatible
set nomodeline

Please reply to the mailing list.

John


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to