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.
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.
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
Ctrl-Insert to copy, Shift-Insert to paste
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),
精彩评论