Get ctags in vim to go to definition, not declaration

前端 未结 10 2108
礼貌的吻别
礼貌的吻别 2020-12-07 15:25

I\'m having the problem that ctags in vim/gvim takes me to a forward declaration a lot of times instead of to the actual definition of the function.

Any way to get a

10条回答
  •  情话喂你
    2020-12-07 16:27

    You should be able to use tn and tp to jump to the various matching tags.

    • Press ^] to take you to the first match.
    • If that's not the match you want, type :tn to go to the next.
    • If you typed :tn too many times you can type :tp to return to the previous one.

提交回复
热议问题