Intellij IDEA 与 ideavim.无法从其他来源复制文本 [英] Intellij IDEA with ideavim. Cannot copy text from another source

查看:38
本文介绍了Intellij IDEA 与 ideavim.无法从其他来源复制文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用默认的 vim 键绑定 (y) 使用 ideavim 插件从 IDEA 复制文本.但是此文本不会复制到全局缓冲区中,我只能将其粘贴到 IDEA 中.
例如,如何在浏览器中使用复制的文本?

I tried to copy text from IDEA with ideavim plugin, using default vim keybindings (y). But this text isn't copied in global buffer and i can paste it only in IDEA.
How can I use copied piece of text in browser, for example?

推荐答案

Vim 的 yank 命令默认不会拉到系统剪贴板;它猛拉到未命名的寄存器.您可以使用 * 或 + register 来访问系统剪贴板;另请参阅此 wiki 文章了解更多信息.或者只是在你的 ~/.ideavimrc:

Vim's yank command doesn't yank to the system clipboard by default; it yanks to the unnamed register. You can use the * or + register to access the system clipboard; also see this wiki article for more information. Or just set this option in your ~/.ideavimrc:

设置剪贴板+=未命名

VIM 起,IdeaVim 就支持此 ~/.ideavimrc 设置-476 在 0.38 版本中实现.如果该文件不存在,请在您的用户/主目录中创建它.

This ~/.ideavimrc setting has been supported in IdeaVim since VIM-476 was implemented in version 0.38. If the file does not exist create it in your user/home directory.

还要注意,这都是标准的 Vim 行为;除了配置文件的名称之外,没有一个是 IdeaVim 特有的.

Note also that this is all standard Vim behavior; none of it is specific to IdeaVim except for the name of the config file.

这篇关于Intellij IDEA 与 ideavim.无法从其他来源复制文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆