Allow rtp paths with spaces on Windows

Suggested by @ikurcubic
This commit is contained in:
Vaibhav Sagar 2014-04-25 18:08:44 +10:00
parent 526d390854
commit 4b751224d3

View File

@ -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