Browse Source

Make :BundleClean work on Windows

pull/8/head
Brad Anderson 15 years ago
parent
commit
37eba9825c
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      autoload/vundle/installer.vim

+ 5
- 1
autoload/vundle/installer.vim View File

@ -30,7 +30,11 @@ func! vundle#installer#clean(bang)
if (!empty(x_dirs))
" TODO: improve message
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
end
endf


Loading…
Cancel
Save