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:
parent
606905268f
commit
f9b5666a57
1 changed files with 2 additions and 2 deletions
|
@ -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 %
|
||||
|
|
Loading…
Reference in a new issue