From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OejVU-00060J-5D for garchives@archives.gentoo.org; Fri, 30 Jul 2010 06:55:48 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C037FE0903; Fri, 30 Jul 2010 06:54:44 +0000 (UTC) Received: from mail.gmx.net (mailout-de.gmx.net [213.165.64.23]) by pigeon.gentoo.org (Postfix) with SMTP id 4AA8AE0903 for ; Fri, 30 Jul 2010 06:54:43 +0000 (UTC) Received: (qmail invoked by alias); 30 Jul 2010 06:54:42 -0000 Received: from dc109.gfz-potsdam.de (EHLO [139.17.165.209]) [139.17.165.209] by mail.gmx.net (mp053) with SMTP; 30 Jul 2010 08:54:42 +0200 X-Authenticated: #26584939 X-Provags-ID: V01U2FsdGVkX19FHKwhOSZFYDcfpYDdjOabmaEm0wUj0R/tNcT+Kb 3IOJXcTGhVXhts Message-ID: <4C527732.9050701@gmx.net> Date: Fri, 30 Jul 2010 08:54:42 +0200 From: Steffen Loos User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100728 Thunderbird/3.1.1 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Ever since a recent update, vim misbehaves when run as root References: <20100730035838.GB22462@waltdnes.org> In-Reply-To: <20100730035838.GB22462@waltdnes.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Archives-Salt: e8155c87-3ade-412d-9530-d482dc8eb417 X-Archives-Hash: a34a0c1abc6d514a9c1f3984b647383a Am 30.07.2010 05:58, schrieb Walter Dnes: > On Thu, Jul 29, 2010 at 01:35:46PM -0700, Kevin O'Gorman wrote >> I'm not exactly sure when, but starting a month or so ago, vim has been >> acting weird when >> I run it as root. For one thing, there are messages >> Xlib: connection to ":0.0" refused by server > > General rule... by default X apps cannot be run by any user other than > the one who started the X session. This bites you when you launch X as > regular user, and then "su -". Is vim considered an X app? Yes, if > you've emerged vim with the X USE flag enabled. You have two options. > > 1) Get rid of the X-integration by going into /etc/portage/package.use > and adding the line... > > app-editors/vim -X > > You'll have to re-emerge vim after making that change. This gets rid > of X-integration for vim. ... or you start with: ~# vim -X regards, Steffen