从在 putty 中运行的 vim 复制东西 [英] Copying stuff from vim running in putty
问题描述
我通过 putty 和 putty 连接管理器运行 Vim 6.3.我设置了鼠标选项(设置鼠标 = a).我可以将(windows)剪贴板中的内容粘贴到vim,但在vim中选择文本不会将任何内容复制到剪贴板.有谁知道我该怎么做?
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?
注意:我无法将 Vim 更新到较新的版本.
Note: I can't update Vim to a newer version.
推荐答案
您可以用鼠标选择一些文本,然后输入:"*y
将选中的文本拖到剪贴板,然后您应该可以在另一个应用程序中使用剪贴板内容.
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.
如果"*y
打起来比较麻烦,可以把下面的内容放到host .vimrc:noremap y "*y
if "*y
is to cumbersome to type, you can put the following in host .vimrc
:noremap y "*y
这篇关于从在 putty 中运行的 vim 复制东西的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!