vimctagstaglist

how do I create a ctags file recursively?


I would like to create a tags file using ctags for a complete source tree. Now I generally would run ctags *.c but the problem is in the top directory, there's no source files. Also, I'd like it to pick up *.c,*.h,*.cpp & *.hpp files, how can I do this?


Solution

  • You can use ctags --recurse or ctags -R to recursively descend into a directory tree.