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

How do I exclude directories/files? #110

Closed tom-james-watson closed 6 years ago

tom-james-watson commented 9 years ago

I don't seem to be able to provide a list of files/directories to ignore? This is problematic when you have things like multiple node_modules that are many times the size of your actual codebase.

tom-james-watson commented 9 years ago

I also see there's an open pull request to add this functionality:

https://github.com/xolox/vim-easytags/pull/72

jrean commented 9 years ago

@tom-james-watson pretty easy. Inside your project directory (root) create a .ctags file (or you can use/create the default in ~/.ctags).

Then inside add the following:

--exclude=directory/*
--exclude=directory/file.ext
...

Give a try to http://ctags.sourceforge.net/ctags.html and search for the --exclude option.