Intellij Idea vim插件中的cscope/ctags导航 [英] cscope/ctags navigation in Intellij Idea vim plugin

查看:160
本文介绍了Intellij Idea vim插件中的cscope/ctags导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我习惯于使用cscope/ctags样式Ctrl + [进行功能定义,并按Ctrl + t返回.启用Intellij Idea的vim插件后,我仍然能够做到这一点.但是,其他cscope命令(例如Ctrl + \ s)似乎不起作用.

我可以尝试添加.ideavim来添加自己的映射,但是我正在寻找不需要此步骤的东西.

解决方案

cscope不是仿真插件.您可以使用 IntelliJ IDEA 导航到达那个.

此外,您可以将键映射到标准构想操作.

例如,要获取该方法的所有调用方,可以执行调用层次结构操作.您可以将该操作映射到ctrl-\ s,如下所示:

  • 搜索具有hierarchy模式的操作::actionlist hierarchy
  • map <C-\>s :action CallHierarchy<CR>放入您的.ideavimrc

如果您希望将此行为设为默认行为,则可以创建功能请求.

I am used to navigating code in vim using cscope/ctags style Ctrl + [ for function definition and Ctrl + t to go back. With Intellij Idea's vim plugin enabled, I am still able to do that. However, other cscope commands like Ctrl + \ s don't seem to work.

I could try adding .ideavim to add my own mapping, but I am looking for something that does not require this step.

解决方案

cscope is not one of the emulated plugins. You can use IntelliJ IDEA navigation to reach that.

Also, you can map keys to standard idea actions.

For example, to get all callers of the method you can execute Call Hierarchy action. You can map this action to ctrl-\ s as follows:

  • Search for actions with hierarchy pattern: :actionlist hierarchy
  • Place map <C-\>s :action CallHierarchy<CR> to your .ideavimrc

If you want this behavior to be the default, you can create a feature request.

这篇关于Intellij Idea vim插件中的cscope/ctags导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆