I'm working on a document that is structured as follows:
/Document/ | |--Chapter1/chap1.tex | |--Chapter2/chap2.tex | |--Chapter3/chap3.tex | \--main.tex
where the file
main.tex includes the 3 chapter tex files shown.
Using Vim, I edit each of the files
chap3.tex often. I want to configure a shortcut so that within the Vim editor, I can enter something like
which will cause the following terminal command will be executed:
$ cd .. ; pdflatex 'main.tex'