Ctags in VIM Editor

Hi,

I want to use ctags for multiple folders containing .c and .h files. Can anyone help me with it? I have been using ctags for 1 folder at a time but I would like to link multiple folders and access all .c files at a time using ctags.

Thanks,

shahsm

Usually the best way would be to stay at the source root directory, issue a ctags -R * and then vim the files as vim foo/bar.c.

Or create the ctags files in all the folders, open vim and then set them as set tags=tags,../tags,../foo/tags. I think you can also set these in your .vimrc file (not sure though).