使用vim中的ctags跳转到符号

时间:2017-05-16 22:15:08

标签: vim ctags cscope

我正在使用ctagscscope& vim当我在符号上并点击Ctrl+]时,我会看到一个选项,我想要跳转到哪个文件,这只是选择的样子:

  # pri kind tag                                      file
  1 F   f    switch_wan_mpls_infrastructure_cc_event  /home/ron/src/NextGen/trunk/FW/src/rtos_core/jpax_switch/api/src/infrastructure/switch_wan_mpls_infrastructure.c
               switch_wan_mpls_infrastructure_cc_event (int no_companion) {
  2 F   f    switch_wan_mpls_infrastructure_cc_event  /home/ron/src/NextGen/trunk/FW/src/rtos_core/jpax_switch/api/src/infrastructure/switch_wan_mpls_infrastructure.c
               switch_wan_mpls_infrastructure_cc_event (int no_companion) {

两次列出完全相同的文件。为什么这样,我怎么能忽略这个(如果重复)?

1 个答案:

答案 0 :(得分:0)

我已经能够通过以下脚本解决问题:https://coderwall.com/p/khzioa/rebuild-cscope-database它就像一个魅力!