0
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.
Take a look at http://stackoverflow.com/questions/4608161/copy-text-out-of-vim-with-set-mouse-a-enabled/4608387#4608387
– kirbuchi – 2011-10-05T07:02:57.093Maybe I'm doing it wrong, but that does not work in my case. I've also tried that before. – None – 2011-10-05T07:20:14.633