Reputation: 7515
In my .vimrc
I load many tag files like this:
set tags+=~/.vim/tags/boost_filesystem_1_55_0
set tags+=~/.vim/tags/boost_program_options_1_55_0
...
...
set tags+=~/.vim/tags/zlib_1_2_8
If I add a new tag file or update an existing one, I have to remember to change the .vimrc
file. Can I just do something like this:?
set tags+=~/.vim/tags/* "Load all tag files in this directory.
Upvotes: 1
Views: 723
Reputation: 36272
You can try another approach. Rename all files to mytags
and use different paths to get them. like:
~/.vim/tags/boost_filesystem_1_55_0/mytags
~/.vim/tags/boost_program_options_1_55_0/mytags
~/.vim/tags/zlib_1_2_8/mytags
...
And as value of tags
use ~/.vim/tags/**/mytags
Upvotes: 2