On 03/11/08 22:54, Linda W wrote:
> I'm running a SuSE system 10.3 and am wondering if they
> corrupted vim or if there is some other logical reason why
> root can't read modelines.

'modeline' (singular), a Boolean option, defaults to off for root, see 
":help 'modeline'".

Some people pretend that letting root use modelines is a security hole. 
In the course of my use of Vim, I've seen many such supposed "holes" 
plugged by disabling some options in modelines, and sandboxing others. I 
don't think such a security hole, if there still is any, would remain 
open any significant length of time after being discovered -- but maybe 
I'm too optimistic there. Of course, no modelines also mean no help 
syntax highlighting and no help hotlinking -- among other things.

Here's what I have in my vimrc about the use of modelines:

if exists("+modelines")
     " the following is required because of SuSE's paranoid /etc/vimrc
     " and to force 'modeline' on even for root in Vim 7.0.237 and later
     set modeline modelines=5
     " the following disables a dangerous modeline in one helpfile
     if has ('autocmd')
         au BufReadPost ada.txt setl nomodeline ft=help
     endif
endif


Best regards,
Tony.
-- 
Hain't we got all the fools in town on our side?  And hain't that a big
enough majority in any town?
                -- Mark Twain, "Huckleberry Finn"

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

Reply via email to