IdeaVim创建自定义命令

问题描述 投票:3回答:1

是否可以使用IdeaVim创建自定义命令(例如:command中的vim?尝试运行:command ... ...会弹出Not an editor command: command

intellij-idea command ideavim
1个回答
0
投票

您可以通过在〜/ .ideavimrc中添加以下内容来向IdeaVim注册自定义命令。

command! Reformat action ReformatCode

并用:Reformat调用。

© www.soinside.com 2019 - 2024. All rights reserved.