HowTo: Use ctags
with source code and deep directory hierarchy
a) Create shell script dirtags.sh
:
b) Create tags
file for each subdirectory:
find * -type d -exec ~/bin/dirtags.sh {} \;
c) Rebuild tag file for each directory, when working create keymap and save into
~/.vimrc
:
d) Build global tag file:
cd ~/<project_dir> ctags --file-scope=no -R
e) Configure vim to read local tag file first, if not found, search global tag file: