user4386938
user4386938

Reputation:

Vim tags file hidden

When I type ctags -R . it produces a file called tags, and vim uses that file to navigate tags. How do I make the file name to be .tags and make vim use it?

Upvotes: 0

Views: 812

Answers (1)

romainl
romainl

Reputation: 196926

How to specify the name of the tags file is explained very early in $ man ctags:

$ ctags -Rf .tags .

How to tell Vim where to look for tags files is explained in :help 'tags' (and linked sections). A good generic default value is:

set tags=./tags;,tags;

Since you want .tags instead of tags you should add that case to the value above (safe and somewhat universal):

set tags=./tags;,tags;./.tags;,.tags;

or only use a value that fits your usage pattern:

set tags=./.tags;,.tags;

Upvotes: 4

Related Questions