Re: enable modeline in vim
Assuming you've installed vim from the ports tree, /usr/local/share/vim/v=
imrc is the shared vimrc file amongst all users. Have you tried setting i=
t in there=3F =20
On Monday, 16 July, 2012 at 09:37 , Victor Sudakov wrote:
> =D0=92=D0=B8=D1=82=D0=B0=D0=BB=D0=B8=D0=B9 =D0=A2=D1=83=D1=80=D0=BE=D0=B2=
=D0=B5=D1=86 wrote:
> > > =20
> > > Do you know how to enable modelines in vim running from root=3F Eve=
n if
> > > I put =22set modeline=22 in /root/.vimrc, the output of =22:set mod=
eline=3F=22
> > > still shows =22nomodeline=22. At the same time, =22set modeline=22 =
in =7E/.vimrc
> > > works for all other accounts except root.
> > > =20
> > > Someone has protected the root account so tightly that I cannot eve=
n
> > > shoot myself in the leg. Do you know how I could override this
> > > protection=3F
> > > =20
> > =20
> > In my vimrc i have next:
> > set modeline
> > set modelines=3D3
> > =20
> =20
> =20
> As I said, in /root/.vimrc I have:
> =20
> set modeline
> set modelines=3D5
> =20
> > And it works, no matter from root or normal user. Hope this helps.
> =20
> And it does not work for root. vim-7.3.556=5F1
> =20
> Surely I am doing something stupid but I cannot figure out what.
> =20
> -- =20
> Victor Sudakov, VAS4-RIPE, VAS47-RIPN
> sip:sudakov=40sibptus.tomsk.ru (mailto:sudakov=40sibptus.tomsk.ru)
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> freebsd-questions=40freebsd.org (mailto:freebsd-questions=40freebsd.org=
) mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =22freebsd-questions-unsubscribe=40fre=
ebsd.org (mailto:freebsd-questions-unsubscribe=40freebsd.org)=22
> =20
> =20
_______________________________________________
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"
討論串 (同標題文章)
完整討論串 (本文為第 4 之 5 篇):