user16948
user16948

Reputation: 4951

How can I use ctags with vim?

I have created a tags file using ctags in my source code directory. Now, how can I use it with vim? If I open a file and press ctrl-] on a variable or function name, vim says: E426: tag not found: variable1

Upvotes: 1

Views: 3000

Answers (1)

Paul Tomblin
Paul Tomblin

Reputation: 182878

:set tags=/home/ptomblin/ctags,/usr/local/src/ctags

You can put that in your main .vimrc file.

Upvotes: 2

Related Questions