Make :BundleClean work on Windows

This commit is contained in:
Brad Anderson 2011-03-30 00:55:53 -06:00
parent 555703d393
commit 37eba9825c

View File

@ -30,7 +30,11 @@ func! vundle#installer#clean(bang)
if (!empty(x_dirs)) if (!empty(x_dirs))
" TODO: improve message " TODO: improve message
if (a:bang || input('Are you sure you want to remove '.len(x_dirs).' bundles?') =~? 'y') if (a:bang || input('Are you sure you want to remove '.len(x_dirs).' bundles?') =~? 'y')
exec '!rm -rf '.join(map(x_dirs, 'shellescape(v:val)'), ' ') if has('win32') || has('win64')
exec '!rmdir /S /Q '.join(map(x_dirs, 'shellescape(v:val)'), ' ')
else
exec '!rm -rf '.join(map(x_dirs, 'shellescape(v:val)'), ' ')
endif
endif endif
end end
endf endf