vimmouseclipboardcopy-pasteputty

Copying stuff from Vim running in PuTTY


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 <Shift + right clicking>, but selecting text in Vim <left click followed by right click> isn't copying anything to the clipboard. How do I do this?

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


Solution

  • 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 the host .vimrc:

    :noremap y "*y