从 PuTTY 中运行的 Vim 复制内容

发布于 2024-10-05 07:52:36 字数 299 浏览 1 评论 0原文

我通过 PuTTY 和 PuTTY 连接管理器运行 Vim 6.3。我设置了鼠标选项(set mouse = a)。我可以通过将内容从 (Windows) 剪贴板粘贴到 Vim,但是在 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 <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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

べ映画 2024-10-12 07:52:36

按住 Shift,然后使用鼠标左键突出显示要复制的文本。当您释放时,突出显示的文本应该位于 Windows 剪贴板中。

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.

萝莉病 2024-10-12 07:52:36

您可以用鼠标选择一些文本,然后输入:
"*y 将所选文本拖入剪贴板。然后您应该能够在其他应用程序中使用剪贴板内容。

如果 "*y 键入起来很麻烦,您可以将以下内容放入主机 .vimrc 中:

:noremap y "*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.

If "*y is to cumbersome to type, you can put the following in the host .vimrc:

:noremap y "*y

不寐倦长更 2024-10-12 07:52:36

Ctrl + Insert 进行复制,Shift + Insert 进行粘贴。

Ctrl + Insert to copy, and Shift + Insert to paste.

ま柒月 2024-10-12 07:52:36

不要使用mouse=a
将鼠标置于命令行模式 (:set mouse=c)。

然后,您只需选择文本将其放入系统剪贴板(与所有其他 PuTTY/ 一样) KiTTY 命令)。

Do not use mouse=a.
Put the mouse in command line 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文