diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 913c478..c6258b3 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -85,10 +85,10 @@ set noshowcmd nnoremap S :%s//g " Compile document, be it groff/LaTeX/markdown/etc. - map c :w! \| !compiler "%" + map c :w! \| !compiler %:p " Open corresponding .pdf/.html or preview - map p :!opout % + map p :!opout %:p " Runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear %