尝试运行ctags -R –extra = f.
–extra = f选项告诉ctags:
“Include an entry for the base file name of every source file (e.g. “example.c”),which addresses the first line of the file.”
打开vim时,可以使用:tag< filename>跳到文件的第一行.