21
votes

I am running Vim 6.3 through putty and putty connection manager. I have the mouse option set (set mouse = a). I am able to paste things from the (windows) clipboard to vim by but selecting text in vim isn't copying anything to the clipboard. Does anyone know how do I do this?

Note: I can't update Vim to a newer version.

5

5 Answers

68
votes

Hold down shift, and then highlight the text you want to copy using the left mouse button. When you release, the highlighted text should be in the Windows clipboard.

6
votes

You can select some text with the mouse and then type:
"*y to yank the selected text to the clipboard, then you should be able to use the clipboard content in another application.

if "*y is to cumbersome to type, you can put the following in host .vimrc
:noremap y "*y

5
votes

Ctrl-Insert to copy, Shift-Insert to paste

3
votes

Do not use mouse=a.
Put the mouse in commandline mode (:set mouse=c).
Then you can just select your text to put it in the system clipboard (as with all other PUTTY/KITTY commands),

-1
votes

set clipboard=unnamed or set mouse=c