尝试运行ctags -R –extra = f.
原文链接:https://www.f2er.com/bash/386688.html–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>跳到文件的第一行.