Better passing of filenames to shell scripts (#1161)

Doing things the way it's intended. This also makes it easier to copy the autocmd to a lua based configuration.
This commit is contained in:
snailed 2022-08-15 12:10:32 +00:00 committed by GitHub
parent 606905268f
commit f9b5666a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,10 +85,10 @@ set noshowcmd
nnoremap S :%s//g<Left><Left>
" Compile document, be it groff/LaTeX/markdown/etc.
map <leader>c :w! \| !compiler "<c-r>%"<CR>
map <leader>c :w! \| !compiler %:p<CR>
" Open corresponding .pdf/.html or preview
map <leader>p :!opout <c-r>%<CR><CR>
map <leader>p :!opout %:p<CR>
" Runs a script that cleans out tex build files whenever I close out of a .tex file.
autocmd VimLeave *.tex !texclear %