From 4b751224d3e85ac8ac2ce5e6076b276a1f1730e8 Mon Sep 17 00:00:00 2001 From: Vaibhav Sagar Date: Fri, 25 Apr 2014 18:08:44 +1000 Subject: [PATCH] Allow rtp paths with spaces on Windows Suggested by @ikurcubic --- autoload/vundle/config.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 561f468..46d694e 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -167,6 +167,7 @@ func! s:rtp_add_defaults() let default = &rtp let &rtp = current for item in reverse(split(default, ',')) + let item = fnameescape(item) exec 'set rtp-=' . item if fnamemodify(item, ":t") == 'after' exec 'set rtp+=' . item