 <p>what you need is cscope,which can create database with those files specified by you. You need to tell cscope which files you want to build tags with. This link may help: <a href="http://cscope.sourceforge.net/cscope_vim_tutorial.html" rel="nofollow noreferrer">cscope_vim</a></p> <p>But cscope+vim cannot update tags automatically; you need to update yourself or get it done with some shell script.</p>