Execute (Setup): ================================================================================= call system('touch fig_1.tex') call system('touch fig_2.tex') call system('touch fig_1.pdf') call system('touch fig_2.pdf') call system('touch fig_3.pdf') call system('touch fig_a.png') call system('touch fig_b.png') call system('touch fig_c.png') call system('touch preamble.tex') call system('touch chapter.tex') call system('touch section.tex') Given tex (Completion: \includegraphics): ================================================================================= \includegraphics{ \includegraphics[scale=0.5]{ \includegraphics[100,100][300,300]{ Do (Complete): A\\\}\ jA\\\\}\ jA\\\\\} Expect tex (Verify): \includegraphics{fig_b.png} \includegraphics[scale=0.5]{fig_c.png} \includegraphics[100,100][300,300]{fig_1.pdf} Given tex (Completion: \include and \input): ================================================================================= \input { \includeonly{ \include{ Do (Complete): A\\\\\}\ jA\\,\\\\\\}\ jA\\\\} Expect tex (Verify): \input {preamble.tex} \includeonly{chapter.tex,section.tex} \include{section.tex} Given tex (Completion: \includepdf): ================================================================================= \includepdf{ Do (Complete): A\\\\} Expect tex (Verify): \includepdf{fig_3.pdf} Given tex (Completion: \includestandalone): ================================================================================= \includestandalone{ Do (Complete): A\\\} Expect tex (Verify): \includestandalone{fig_1} Given tex (Completion: \gls): ================================================================================= \gls{} \newglossaryentry{foo}{test} \newglossaryentry{bar}{test} \newglossaryentry{baz}{test} Before: set buftype= silent w! After: set buftype=nofile silent call delete('[Vader-workbench]') Do (Complete): $i\\ Expect tex (Verify): \gls{foo} \newglossaryentry{foo}{test} \newglossaryentry{bar}{test} \newglossaryentry{baz}{test} Do (Complete): $i\\\ Expect tex (Verify): \gls{bar} \newglossaryentry{foo}{test} \newglossaryentry{bar}{test} \newglossaryentry{baz}{test} Before: After: Given: Execute (Cleanup): ================================================================================= call system('rm -f *.tex') call system('rm -f fig*pdf') call system('rm -f fig*png') call system('rm -f fig*png')