The Story
I'm using vim on a Ubuntu server to develop a webpage. Most of the time I work from a Windows machine using putty. Whenever I have to copy something from vim to the Windows clipboard I just select it while holding shift (shift is necessary when using set mouse=a in .vimrc).
The Problem
Sometimes I have to use an OSX machine. Well, no problem: Using the OSX terminal I ssh to my Ubuntu server and vim as I do using putty. The problem is: As soon as I set mouse=a it is no longer possible to easily copy content to the OSX clipboard. As long as mousa=a is not set, I can just copy content by selecting it.
The Request
Does anyone know how to easily copy something from vim to the OSX clipboard if the "set mouse=a" line is in .vimrc?
Thank you.
/edit:
The Solution
in .vimrc
set mouse=a
set term=xterm
Then it is possible to copy from vim in iTerm if I press "Alt" while selecting the content I want to copy.