On 09/01/09 04:53, John Beckett wrote:
> 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?
[...]

No, but:

- Some Linux distributions (including SuSE) always set 'nomodeline' by 
means of a "system vimrc" (see its location near the middle of the 
output of ":version"). Some frequently used locations are /etc/vimrc for 
a Vim version distributed together with Linux, or $VIM/vimrc (by default 
/usr/local/share/vim/vimrc or C:\þrogram Files\vim\vimrc) if you compile 
your own Vim. Note that the filename of this system vimrc has no initial 
dot or underscore. These distributions say that setting 'nomodeline' 
blocks a "security hole". (Personally I don't see which hole, 
considering that "dangerous" options cannot be set from a modeline anyway.)
- Starting at patchlevel 7.0.237, modelines are off by default for the 
superuser.
- If you had no vimrc, then Vim started in 'compatible' mode (unless you 
explicitly used the -N command-line switch). The 'compatible' default is 
'nomodeline'.


Best regards,
Tony.
-- 
The Killer Ducks are coming!!!

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

Reply via email to