Copying stuff from vim running in putty

谁都会走 提交于 2019-11-27 20:17:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!