Date: Mon, 16 Jul 2012 14:09:12 +0300 From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= <corebug@corebug.net> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-questions@freebsd.org Subject: Re: enable modeline in vim Message-ID: <CAKB6gViDcORr7hJT8f3YRjJaF1rh_8XXsMxc4NRPt4inD9q5sg@mail.gmail.com> In-Reply-To: <20120716100210.GA32860@admin.sibptus.tomsk.ru> References: <20120716100210.GA32860@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKB6gViDcORr7hJT8f3YRjJaF1rh_8XXsMxc4NRPt4inD9q5sg>