I've been using vim for a little while and I'm doing some LaTeX with it, using Tectonic as the engine.
What I was doing to generate the pdf (without leaving the editor)
:call system("tectonic main.tex")
this works but it's extremely repetitive. After reading a little about it, I've managed to create a simple mapping.
map <C-t> :call system("tectonic main.tex") <CR>
Which is less repetitive, but still has a hard-coded filename. Is there a way to specify that the map should be applied to the current file? Also can one concatenate operations so it saves (
:w) first then applies