From d2dd7df050a03b3d208205d9aa340cce024f00f9 Mon Sep 17 00:00:00 2001 From: Julien-zte Date: Thu, 22 Oct 2015 22:07:52 +0800 Subject: [PATCH] Support files which includes spaces in filename --- after/ftplugin/rst/instantRst.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/after/ftplugin/rst/instantRst.vim b/after/ftplugin/rst/instantRst.vim index 12f8deb..acc1f38 100644 --- a/after/ftplugin/rst/instantRst.vim +++ b/after/ftplugin/rst/instantRst.vim @@ -88,7 +88,7 @@ function! s:startDaemon(file) "{{{ let args_template = g:instant_rst_template != '' ? \ ' -t '.g:instant_rst_template : '' let args_file = a:file != '' ? - \ ' -f '.a:file : '' + \ ' -f '.substitute(a:file, ' ', '\\ ', 'g') : '' let args_local = g:instant_rst_localhost_only == 1 ? \ ' -l ' : '' let args_additional_dirs = ''