

The trick here is that the remote vim instance will put your content in the clipboard (of the locally running X11.app) when you're using "+y, but you additionally need to press Cmd-C to copy the X11 buffer to your OS X clipboard. All the above checks out fine, and in the dock, the X11.app is active.
MACVIM WHEN SSH INSTALL
If it appears, ask your sysadmin to install the xauth program.ĭebug1: Remote: No xauth program cannot forward with spoofing. Use the -v option as above, and check for the following line. You used SSH with -X and X11 is still not forwarded.

If this is the problem, ask your sysadmin to add the line 'X11Forwarding true' to /etc/ssh/sshd_config.ĭebug1: Requesting X11 forwarding with authentication spoofing. To check whether the system administrator has configured the SSH daemon to deny X11 forwarding, add the -v option, and check whether the following line shows up and the request is not denied. You used SSH with -X and X11 is still not forwarded (i.e.To check: start a simple X program like 'xclock' if it answers "Error: can't open display:" then X is not forwarded. You used SSH to log into a remote machine and X11 is not forwarded.On Debian and derivatives, you'll need the xorg-dev package, on RedHat and derivatives, the xorg-x11-devel package. configure -with-x -with-features=normal -enable-gui & make. Get the latest source, then compile with. To check: 'vim -version | grep xterm', and the output must show '+xterm_clipboard'. Vim is not compiled with the right options.If this program is not present, be sure to install the package 'vim-X11'. On RedHat and CentOS, it's not enough to start 'vim', use 'vimx'. Solution: don't use 'vi' to start, use 'vim'. Solution: don't do that -or- make the other user have access to the magic cookies in your ~/.Xauthority file. You're running vim as a different user, which happens when you start vim with for instance 'sudo'.If this doesn't work, check the following things:
MACVIM WHEN SSH PLUS
The plus buffer contains the so-called X 'clipboard' for which you selected with the mouse, then right-clicked and selected 'copy', or pressed a shortcut like CTRL-C or similar: "+p The star buffer contains the so-called X 'primary' for which you just select something with the mouse: "*p To paste the X clipboards, paste either the + or * clipboard: The two X clipboards are available too, but under a special character. Vim has one default clipboard, but has an extra one under any a-z character. With the right options, it's still aware of the X clipboard, the mouse, et cetera.įirst turn on the mouse with: :set mouse=a
MACVIM WHEN SSH MAC OS
Besides the graphical version (gvim), it's also possible to start vim in a terminal like xterm, konsole, gnome-terminal or Terminal.app on Mac OS X.
