Generate ctags incrementally in vim. Juste paste this into your .vimrc.
Mar 2, 2014
I think the magic you use is just the
You can just use the
find command to find all the file modified after the tag file like this:
find . -newer tags #tags is the name of you tag file
However, the option
--append does not work well when you delete some code from your source file. Even though a symbol is deleted from the source file, the
--append option could not let cags to delete the symbol from the tag file.
Jul 10, 2019
Traceback (most recent call last):
File "", line 5, in no
OSError: [Errno 2] No such file or directory: 'tags'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Just paste this into your .vimrc, it will provide you with a new command:
that will use ctags and update the tags only for the files that have a modification time more recent than the
tagsfile modification time.
This snippet uses vim's current working directory to find the files to index and requires Python, Exuberant Ctags and Vim compiled with Python support.