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:
parent
03bcbdb2ef
commit
9e58677093
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 %: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 %
|
||||
|
|
Loading…
Reference in a new issue