Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

vim - Create tags for files using ctags

I'm using ctags to create a tags file for use in Vim in a latex project. I have a main.tex file and several files in the chapters directory such as chapters/chapter1.tex. I have the following code in the main.tex file:

include{chapters/chapter1}

I want to be able to jump to chapter1.tex by pressing ^] on the chapter1 above. Currently by running the command

ctags -R extras=+f

It only creates a tag for 'chapter1.tex' and I can only jump if the text is exactly 'chapter1.tex'. How can change ctags configuration to create a tag for 'chapter1' instead of 'chapter1.tex'?

question from:https://stackoverflow.com/questions/65867522/create-tags-for-files-using-ctags

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...