[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] wierd vi behavior



On Sat, Feb 22, 2003 at 08:03:22AM -0700, Dave Price wrote:
> I am not sure if this is a knoppix issue or not, but I will ask....
> 
> I have an HDD knoppix system.  All works fine, except:
> 
> When I ssh into the box and try to run 'vi' or '/usr/bin/vim' i get:
> 
> X11 connection rejected because of wrong authentication.
> X connection to localhost:10.0 broken (explicit kill or server
> shutdown).

No, this is actually correct. You should unset the DISPLAY variable,
otherwise vim will try to check for mouse support by querying the X
server. If your SSH is set to not tunnel X requests (you can enable it
by saying ssh -X), the connection to your local X-Server will fail.

If you use X forwarding, you can enable mouse support in vim, and use
native cursor movement, cut&paste with the "set mouse*" options.

> This does not seem right.  Also, it only happens when I su to 'root' - I
> can run vi fine as a normal user.

Of course, as root you don't have access to the DISPLAY anymore, if you
don't use a Xauthority-enabled version of su.

Just type
DISPLAY= vim filename
to disable X support in vim for that call.

Regards
-Klaus Knopper
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: