Search code examples
vimctags

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


Solution

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

    You can put that in your main .vimrc file.