TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a long document so I am making use of sub-documents and inserting them with \include.

The problem I am facing is that as the \bibliography{} line is on the main .tex file the sub-documents are not able to 'see' what is in the bibtex file, hence when I run the auto-completion function while editing the sub-document I cannot see the options for citing.

If I try the auto-completion function while editing the main.tex file I am able to see all the different options for citing.

How can I tell the sub-document to see that bibtex file too?

share|improve this question
up vote 1 down vote accepted

After some time I found the trick:

You just need to add the line


as a comment and vim will know where to look for the auto-completion options

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.