在vim中使用CTAG跳转到符号
我正在使用在vim中使用CTAG跳转到符号,vim,ctags,cscope,Vim,Ctags,Cscope,我正在使用ctags,cscope和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/sr
ctags
,cscope
和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) {
完全相同的文件会列出两次。这是为什么?如果重复,我怎么能忽略它呢?我已经从中解决了脚本的问题:它像一个符咒一样工作 不确定是否相关: