xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

~/.vimtags file has priority #147

Open simoninkin opened 8 years ago

simoninkin commented 8 years ago

Hi, I've been trying to set up easytags dynamic files option. And it kind of works... however, only until I save some random file in vim. Then the ~/.vimtags file gets created and easytags picks it up in other projects, instead of my project_folder/.tags file. I have set tags=./.tags in my vimrc, but that doesn't help. The ~/.vimtags file has the priority here..

petRUShka commented 7 years ago

Have you seen this:

If you set |g:easytags_dynamic_files| to 2 the easytags plug-in will automatically create a project specific tags file based on the first name in the |'tags'| option. In this mode the global tags file and/or file type specific tags files are only used for directories where you don't have write permissions.

When you set |g:easytags_dynamic_files| to 2 new tags files are created in the same directory as the file you're editing. If you want the tags files to be created in your working directory instead then change Vim's |'cpoptions'| option to include the lowercase letter 'd'.