Fix bug with spaces in directory names (#1166)

Sorry for making another merge request here, but I realized that the command would fail if the filepath contained spaces. Adding quotation marks fixes this issue
This commit is contained in:
snailed 2022-08-15 13:45:36 +00:00 committed by GitHub
parent 03bcbdb2ef
commit 9e58677093
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 %:p<CR>
map <leader>c :w! \| !compiler "%:p"<CR>
" Open corresponding .pdf/.html or preview
map <leader>p :!opout %:p<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 %