Suppose I am editing a file.tex. How would I open file.pdf in zathura (or any pdf viewer) from vim?I understand how to reference file.tex using '%' but I'm not sure how to reference file.pdf.
Call PDF viewer on the compiled tex file
command line;external command;filetype tex
% indeed stands for the current file. %:r (see :help filename-modifiers) strips off the file extension. You can then use :! to launch an external command, e.g. the PDF viewer::! zathura %:r.pdf