summaryrefslogtreecommitdiffstats
path: root/.config/nvim/init.vim
diff options
context:
space:
mode:
authorsnailed <luca@snaile.de>2022-08-15 13:45:36 +0000
committerGitHub <noreply@github.com>2022-08-15 13:45:36 +0000
commit9e58677093650f9b1c31a4b16f011845c18cd699 (patch)
tree8992915fd5d79131ac03e61691d495dc6d6aa7ad /.config/nvim/init.vim
parent03bcbdb2efa8dbe0a0f7f198d58d3e3896618eb0 (diff)
downloadeibhear-9e58677093650f9b1c31a4b16f011845c18cd699.tar.gz
eibhear-9e58677093650f9b1c31a4b16f011845c18cd699.tar.zst
eibhear-9e58677093650f9b1c31a4b16f011845c18cd699.zip
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
Diffstat (limited to '.config/nvim/init.vim')
-rw-r--r--.config/nvim/init.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index 3945dcc..2bd166e 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -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 %