How to use multiple tabs when tagging to a function in Vim

前端 未结 3 1004
天命终不由人
天命终不由人 2020-12-29 09:48

I use ctags with my Vim and I rely heavily on C-] and C-T to tag back and froth between various functions in my project.

But if the function is in a different file,

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-29 10:18

    So, this is a feature I would like to see as well.

    I'm not sure if it's possible.

    What I usually do is

    :tabnew :tag somepartsoffunction*

    and press tab to use globbing to easily find tag.

    Sure, it's not an ideal solution, but it works most of the time.

    Unfortunately, with VIM tabbing isn't totally integrated since it's a new feature since 7.0. Most people I know that use VIM weren't even aware of tabs until I told them, so with that, I have a feeling there is no way to do it right now.

    (I would love to be proven wrong)

提交回复
热议问题