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

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

问题描述

我尝试使用ideavim插件从IDEA复制文本,使用默认的vim键绑定( y )。但是这个文本没有复制到全局缓冲区中,我只能在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 命令默认不会拉到系统剪贴板;它猛烈抨击未命名的登记册。您可以使用*或+ 注册来访问系统剪贴板;有关详细信息,请参阅此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:

设置剪贴板+ =未命名

IdeaVIM支持此〜/ .ideavimrc设置自 VIM-476 在0.38版本中实施以来。如果该文件不存在,请在您的user / home目录中创建它。

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天全站免登陆