I'm using Latex a lot lately and I find myself having to leave vim so I can execute the command pdflatex *filename*
too often (compile the code and create a pdf file).
I'd like to make a command command! Latex execute "pdflatex %"
something like that to be able to compile the code directly from vim but I don't know how to expand the filename since "pdflatex %" is a string and the terminal understands it as so.
How could I have the filename expand to what I want?
pdflatex *filename*
to run on your shell, right? – Tumbler41 Dec 19 '16 at 22:57