I have been using VNC for a long time for development and now I decided to move to iterm2 and screen.

But there is a small problem.

I have to ssh into a remote machine and use vim there. And I want to enable set mouse=a option. Also I need to be able to use the remote vim clipboard in the ssh session available in the mac applications.

For this, I used these instructions, but they did not help. I installed x11, selected the needed options in the preferences->pasteboard and ssh'ed to the remote machine with ssh -x akshya@aksh-vm.

For some reason this does not seem to work. Am I missing some portion?

1 Answer 1


It's possible the remote machine's vim doesn't support the X clipboard/selection registers. If you type :ver there, does it say +clipboard or +xterm_clipboard?

If not, you may have to resort to other means to use a clipboard, such as running clipper on your Mac, plus always forwarding port 8377, plus adding necessary key bindings to your Vim config files. The Clipper page is sparse but the demo video should tell you what you need to know to use it.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .