Useful customizations in .ideavimrc

随声附和 提交于 2019-12-03 06:11:58

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>

You can check out this or this configuration.
Also, bear in mind, that you can record a macro (Edit > Macros > Start Macro Recording), and reference it later in your .ideavimrc file like so:
nmap csw' :action Macro.surround_with_single_quote<CR> To find out action commands, use :actionlist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!