.ideavimrc中有用的自定义 [英] Useful customizations in .ideavimrc
问题描述
我很想听听你们中的一些人如何定制你的.ideavimrc文件,以改善你的Jetbrains IDE中的工作流程。我不确定它的功能,并且很想知道什么是可定制的。可能的自定义列表也会有所帮助。
I'm interested in hearing how some of you have customized your .ideavimrc file to improve your workflows within your Jetbrains IDE. I'm unsure of its capabilities and would love to know what can be customized. A list of possible customizations would also be helpful.
谢谢!
推荐答案
基本上你可以安全地找到你的〜/ .vimrc,但要注意一些棘手的:map
命令可能会破坏IntelliJ快捷方式(这就是为什么IdeaVim切换到它自己的配置文件而不是〜/ .vimrc)。现在支持的唯一非Vim命令(v 0.39)是:action 。您可以为IntelliJ操作定义多键绑定,而不是为3个或更多手指定义疯狂快捷方式。例如:
Basically you can safely source your ~/.vimrc, but be aware that some tricky :map
commands may break IntelliJ shortcuts (that was the reason why IdeaVim switched to its own configuration file instead of ~/.vimrc). The only non-Vim command supported by now (v 0.39) is :action. You can define multi-key bindings for IntelliJ actions instead of crazy shortcuts for 3 or more fingers. For example:
nnoremap ,c :action GotoClass<CR>
这篇关于.ideavimrc中有用的自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!