1) go to project dir, type
ctags -R
which creates tags for files recursively (for sub-dirs)
2) still in project dir (important), open any file with vim
3) using Ctrl+] for "go to definition", and Ctrl+o for return.
One key issue is that vim editor must be started in the directory which contains the tags file,
otherwise, vim may indicate no tags file is found when using Ctrl+] option.
有疑问加站长微信联系(非本文作者)