Re: enable modeline in vim

看板FB_questions作者時間13年前 (2012/07/16 19:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/5 (看更多)
2012/7/16 Victor Sudakov <vas@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@sibptus.tomsk.ru > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1G0_kqGK (FB_questions)
文章代碼(AID): #1G0_kqGK (FB_questions)