How to navigate multiple ctags matches in Vim?

前端 未结 4 1136
暖寄归人
暖寄归人 2021-01-30 16:11

I\'m using Ctrl-] in Vim to navigate using Ctags. How do I navigate to alternate file if there are multiple matches?

Ex. something.publish

4条回答
  •  闹比i
    闹比i (楼主)
    2021-01-30 16:31

    Adding the answer I was ultimately looking for in case it helps others:

    g will jump to the tag if there's only one match and will present a list if there are multiple matches.

    I've added this mapping to my .vimrc to make it do what I want by default:

    nnoremap g

提交回复
热议问题