How to search the tags file and load it automatically when vim start up

前端 未结 1 1155
醉话见心
醉话见心 2021-02-08 03:19

Vim is my favorite editor, when I open a php or python file in vim, the first command is:

set tags=../../../tags

or

set tags=../..         


        
1条回答
  •  野性不改
    2021-02-08 04:00

    There are a few comments on this particular subject on this question.

    Basically, this is supposed to work:

    set tags=./tags;/
    

    It starts with a tags file in the current directory and goes up to the root directory.

    Type :help tags-option for more details.

    0 讨论(0)
提交回复
热议问题