Intellij IDEA 与 ideavim。无法从其他来源复制文本

Intellij IDEA with ideavim. Cannot copy text from another source

我尝试使用默认的 vim 键绑定 (y) 使用 ideavim 插件从 IDEA 复制文本。但是这个文本没有复制到全局缓冲区中,我只能将它粘贴到 IDEA 中。
例如,如何在浏览器中使用复制的一段文本?

Vim 的 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 在你的 ~/.ideavimrc:

set clipboard+=unnamed

~/.ideavimrc 设置已在 IdeaVim 中得到支持,因为 VIM-476 在版本 0.38 中实现。如果该文件不存在,请在您的 user/home 目录中创建它。

另请注意,这都是标准的 Vim 行为; none 除了配置文件的名称外,它特定于 IdeaVim。