# Set master file in vim-latex (TeX-Suite)

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?

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:
``````my_master.tex.latexmain
Now typing `<leader>ll` will compile the master document of whichever .tex file you currently have on screen.