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

Add option to wirte only to project specific tags, or stop easytags in certain directories #44

Closed smackesey closed 11 years ago

smackesey commented 11 years ago

I frequently write little one-off scripts on my Desktop for which I do not want any tags files. In fact, I only really want project-specific tag files in all of my git repo roots. It would be nice if there were a way to have dynamic tag files enabled but to prevent easytags from writing a tags files when in:

smackesey commented 11 years ago

Figured out that you can bar certain directories by using

augroup easytags
  au!
  au BufRead * if expand('<amatch>') =~ DIR_REGEX_HERE | let b:easytags_auto_update = 0 | endif
augroup END

Good enough for me, though it would still be nice to see "project-root-only" mode