April 30, 2015

vim ctags tags path

This line in your ~/.vimrc should help:
set tags=./tags,tags;$HOME

It tells Vim to look for a tags file in the directory of the current file, in the current directory and up and up until your $HOME (that's the meaning of the semicolon), stopping on the first hit.

No comments:

Post a Comment