Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2012 23:37:00 +0700
From:      Victor Sudakov <vas@mpeks.tomsk.su>
To:        freebsd-questions@freebsd.org
Subject:   Re: enable modeline in vim
Message-ID:  <20120716163700.GA60274@admin.sibptus.tomsk.ru>
In-Reply-To: <CAKB6gViDcORr7hJT8f3YRjJaF1rh_8XXsMxc4NRPt4inD9q5sg@mail.gmail.com>
References:  <20120716100210.GA32860@admin.sibptus.tomsk.ru> <CAKB6gViDcORr7hJT8f3YRjJaF1rh_8XXsMxc4NRPt4inD9q5sg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Виталий Туровец wrote:
> >
> > 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?
> >
> In my vimrc i have next:
> set modeline
> set modelines=3
> 

As I said, in /root/.vimrc I have:

set modeline
set modelines=5

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

And it does not work for root. vim-7.3.556_1

Surely I am doing something stupid but I cannot figure out what.

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:sudakov@sibptus.tomsk.ru



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120716163700.GA60274>