When I type <leader>ll in Vim with vim-latex installed, I can compile the .tex file in my current buffer.

But the .tex file I'm editing is actually just \input{}ed into a master .tex file.

How can I tell vim-latex to always compile my master document?

1 Answer 1


There are instructions on how to do this here.

For master file called my_master.tex, create a file in either the same directory as your \input{}ed file or a directory anywhere above that one called:


Now typing <leader>ll will compile the master document of whichever .tex file you currently have on screen.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .