Jump to function definition in vim

后端 未结 11 2668
独厮守ぢ
独厮守ぢ 2020-11-27 08:53

How can I jump to to a function definition using vim? For example with Visual Assist, I can type Alt+g under a function and it opens a context menu lis

11条回答
  •  忘掉有多难
    2020-11-27 09:37

    Use ctags. Generate a tags file, and tell vim where it is using the :tags command. Then you can just jump to the function definition using Ctrl-]

    There are more tags tricks and tips in this question.

提交回复
热议问题