1

I have two functions tex#PDFOpen() and tex#PDFClose() to automatically open and close the pdf file created by a TeX document.
The way I assign them to autocommands is via the following autogroup in ~/.config/nvim/ftplugin/tex.vim
augroup TeXGroup
autocmd BufEnter <buffer> call tex#PDFOpen()
a...