问题
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.
回答1:
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
回答2:
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.
回答3:
Ctrl-Insert to copy, Shift-Insert to paste
回答4:
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),
来源:https://stackoverflow.com/questions/4313262/copying-stuff-from-vim-running-in-putty