enable modeline in vim

Виталий Туровец corebug at corebug.net
Mon Jul 16 11:09:34 UTC 2012


2012/7/16 Victor Sudakov <vas at mpeks.tomsk.su>:
> Colleagues,
>
> Do you know how to enable modelines in vim running from root? Even if
> I put "set modeline" in /root/.vimrc, the output of ":set modeline?"
> still shows "nomodeline". At the same time, "set modeline" in ~/.vimrc
> works for all other accounts except root.
>
> Someone has protected the root account so tightly that I cannot even
> shoot myself in the leg. Do you know how I could override this
> protection?
>
> --
> Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
> sip:sudakov at sibptus.tomsk.ru
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
In my vimrc i have next:
set modeline
set modelines=3

And it works, no matter from root or normal user. Hope this helps.


-- 




~~~
WBR,
Vitaliy Turovets
Systems Administrator
Corebug.Net
+38(093)265-70-55
VITU-RIPE
X-NCC-RegID: ua.tv


More information about the freebsd-questions mailing list