From owner-freebsd-questions@FreeBSD.ORG Mon Jul 16 19:25:44 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB3F81065674 for ; Mon, 16 Jul 2012 19:25:44 +0000 (UTC) (envelope-from gibblertron@gmail.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9802E8FC08 for ; Mon, 16 Jul 2012 19:25:44 +0000 (UTC) Received: by pbbro2 with SMTP id ro2so11354163pbb.13 for ; Mon, 16 Jul 2012 12:25:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=MNWUJq6ZQpmbDqGjRaOgS6XR0BbGHg+F5YubkYXqbs8=; b=mWyr40pqyHdTPh0sWFRxyy/YEdE6CMKhld6x6em6BceK3zNKj3c4o9IsHmaN9xyLTG pa464gOWu51BY1+Ew28bPWr1XiypLiZv+Ds6xUq38wh0biTq9kFt8GvXlu3BKl7yUzS2 uGVulfHMXxh3PFdXwvZl9gWSY259b1BZgjHF8+wxdIMifoUgzAuYH6+bcaKiNjtJ9rKr 5UayTnMHmf4sjiyPf0bjBxX1YxEalHq+ckewS3i0AHL8tzg9GmMHWOQ9zhPmQCERl6rn SDGq7rtpSc2J8sfWSLxqqMUyDIw/hWVxAjWFNpoTRBDRoPBPjfKCggbRNEMuIFeSH6+t /yZg== Received: by 10.68.231.39 with SMTP id td7mr29611975pbc.3.1342466744188; Mon, 16 Jul 2012 12:25:44 -0700 (PDT) Received: from [10.0.1.78] ([96.53.33.22]) by mx.google.com with ESMTPS id ms9sm9638190pbb.43.2012.07.16.12.25.41 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jul 2012 12:25:42 -0700 (PDT) Date: Mon, 16 Jul 2012 12:25:42 -0700 From: Patrick To: freebsd-questions@freebsd.org Message-ID: <91F2F4DCF7B24892B865B0A42FEFEBFB@gmail.com> In-Reply-To: <20120716163700.GA60274@admin.sibptus.tomsk.ru> References: <20120716100210.GA32860@admin.sibptus.tomsk.ru> <20120716163700.GA60274@admin.sibptus.tomsk.ru> X-Mailer: sparrow 1.6.2 (build 1143.6) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: enable modeline in vim X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2012 19:25:44 -0000 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