diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 73e09fc..3945dcc 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 %