Vim and Ctags: Ignoring certain files while generating tags

excray picture excray · Oct 12, 2011 · Viewed 15.7k times · Source

I have a folder llvm2.9 in which i ran this command.

$> ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++

This was indexing methods in *.html files also which were present in llvm2.9/docs. I found this out because when i pressed ctrl-] for some class, it went to the html file.

How do i force ctags to use .cpp/.h files alone or ignore a particular directory.

Thanks

Answer

skeept picture skeept · Oct 12, 2011

You can exclude a filetype using --exclude='*.html'