Merge pull request #454 from vaibhavsagar/patch-1

Allow rtp paths with spaces on Windows

Fixes #451
Fixes #453
This commit is contained in:
Jacobo de Vera 2014-04-25 10:13:54 +02:00
commit 879529ce39

View File

@ -167,6 +167,7 @@ func! s:rtp_add_defaults()
let default = &rtp let default = &rtp
let &rtp = current let &rtp = current
for item in reverse(split(default, ',')) for item in reverse(split(default, ','))
let item = fnameescape(item)
exec 'set rtp-=' . item exec 'set rtp-=' . item
if fnamemodify(item, ":t") == 'after' if fnamemodify(item, ":t") == 'after'
exec 'set rtp+=' . item exec 'set rtp+=' . item