From owner-freebsd-questions@FreeBSD.ORG Mon Jul 16 11:09:34 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E699106567F for ; Mon, 16 Jul 2012 11:09:34 +0000 (UTC) (envelope-from corebug@corebug.net) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 15DA38FC22 for ; Mon, 16 Jul 2012 11:09:34 +0000 (UTC) Received: by yenl8 with SMTP id l8so5598099yen.13 for ; Mon, 16 Jul 2012 04:09:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:x-gm-message-state; bh=JyWCvpZcIctgE8j4pPwgnGrckQ+9ZOGPK3AfyjZWfCQ=; b=Y1zbZyu+sCPm7XIjS4H8rcq/mbQx0BJ50FP9su4I+tdnhQDa0SFA4FVhyVV7Ofimhj SElrQ8JEGghJqYK2XzHXHQgV9ijGB5EDUf37bM3UU/5s29RbP5tt61nvWIffFZefMZx9 XTLYORYWOpukH7ZdxhYv4KO1AILlZU9gKm4O1Um7tsLVr85VzWQG4FBaXy9YtugfAjnE z7+dT+d5NIiGTrQRXyxkuer0qLQayVPvGBfLOi5b+nJPCPJtua5Du1rNEOD/xszJofmn oQUz7lhFp1EBcuh5+eVUv6XYW7Mifm2UTL+iWKSpbdtoZFhqfXMd0i8bFY2MNRj4+iIG eJrA== Received: by 10.68.190.40 with SMTP id gn8mr26357234pbc.118.1342436973019; Mon, 16 Jul 2012 04:09:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.255.70 with HTTP; Mon, 16 Jul 2012 04:09:12 -0700 (PDT) X-Originating-IP: [95.158.3.122] In-Reply-To: <20120716100210.GA32860@admin.sibptus.tomsk.ru> References: <20120716100210.GA32860@admin.sibptus.tomsk.ru> From: =?UTF-8?B?0JLQuNGC0LDQu9C40Lkg0KLRg9GA0L7QstC10YY=?= Date: Mon, 16 Jul 2012 14:09:12 +0300 Message-ID: To: Victor Sudakov Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnNBurwz/fIsXWUBP4FLjgJh19H6WbOgx7sOIJg9Nm92ZUJ/bfxXacJ/F0RcI+vNxd6PZCm Cc: freebsd-questions@freebsd.org 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 11:09:34 -0000 2012/7/16 Victor Sudakov : > 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