Vim - ctags: tag not found

后端 未结 2 1838
無奈伤痛
無奈伤痛 2020-12-23 13:27

I want to use Ctags for a Zend framework project. I executed this command : ctags -R ./* ../ZendFramework/*to create a list of tags, but the problem is when I p

相关标签:
2条回答
  • 2020-12-23 13:41

    Yes, you should tell Vim where to find your tags file with something like:

    :set tags=/path/to/tags
    

    This is not very optimal, though. 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.

    0 讨论(0)
  • 2020-12-23 13:43

    The 'tags' variable must point to your tags file. See :help 'tags'. An example to add the path to your tags file:

    :set tags+=$HOME/yourpath/tags
    
    0 讨论(0)
提交回复
热议问题