Vim ctags current directory and gemset

I have two Ctags commands that work great.

This first one builds tags for my current gemset of my rails project

ctags -R \`bundle show rails` /../*

and the second one that generates ctags for the actual working directory of my rails project

ctags --extra=+f -R *<CR><CR>

However, when I run each, it overwrites the current tag file, so I can not use ctags for both my gemset and my current directory.

Can someone show me how I can get these two commands to merge and create one tag file with all ctags?

+3
source share
1 answer

In your second ctags command, try using the flag -a. According to the documentation:

 -a, --append
      Append to existing tag file.  (For vi-format tag files,
      see also --update.)
+4
source

Source: https://habr.com/ru/post/1789515/


All Articles