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?


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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