From 9e58677093650f9b1c31a4b16f011845c18cd699 Mon Sep 17 00:00:00 2001 From: snailed Date: Mon, 15 Aug 2022 13:45:36 +0000 Subject: [PATCH] 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 --- .config/nvim/init.vim | 4 ++-- 1 file 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 " Compile document, be it groff/LaTeX/markdown/etc. - map c :w! \| !compiler %:p + map c :w! \| !compiler "%:p" " Open corresponding .pdf/.html or preview - map p :!opout %:p + map p :!opout "%:p" " Runs a script that cleans out tex build files whenever I close out of a .tex file. autocmd VimLeave *.tex !texclear %