From what I understand, gvim is an X-window application, so it's possible to start the application remotely and be connected to the window via SSH. Is it possible to connect to an existing gvim window when you ssh into a machine running the gvim process?
I am trying to connect to my gvim session on an Ubuntu machine from my OSX laptop.
1 Answer
You cannot connect to an existing X11 display with plain ssh. To move the window to a different X11 display, you will have to use xpra. (gVim must be started inside xpra for it to work.)
Ubuntu:
xpra start :100
DISPLAY=:100 gvimMac (if it has xpra installed too):
xpra attach ssh:ubuntubox:100Mac (if it doesn't have xpra):
ssh -Y ubuntubox "xpra attach :100" 4