brew install ctags cd project root ctags -R . # or if you want to keep the tags file out of site ctags -R -f .git/tags .
then edit a file, put your cursor on an identifier and hit
<Ctrl>-] to see it’s definition. Hit
<Ctrl>-t to return to where you started.
by the always amazing Tim Pope
post-merge you have:
#!/bin/sh .git/hooks/ctags >/dev/null 2>&1 &
make them all executable and Bob’s your uncle, which in England means that your ctags will be updated wheneever you commit, checkout or merge. Actually Tim puts it all in a template dir and
git inits in his repo to install it which is smarter, but you get the idea. Read his post.