문제

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.
도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top