:BundleClean now lists Bundles before removal

This commit is contained in:
gmarik 2011-08-06 00:36:09 -05:00
parent f95998e5f1
commit 23d047b76f

View File

@ -75,6 +75,9 @@ func! vundle#installer#clean(bang) abort
return return
end end
call vundle#scripts#view('clean', ['"Remove those bundles?'], map(copy(x_dirs), 'fnamemodify(v:val, ":t")'))
redraw!
if (a:bang || input('Are you sure you want to remove '.len(x_dirs).' bundles? [ y/n ]:') =~? 'y') if (a:bang || input('Are you sure you want to remove '.len(x_dirs).' bundles? [ y/n ]:') =~? 'y')
let cmd = (has('win32') || has('win64')) ? let cmd = (has('win32') || has('win64')) ?
\ 'rmdir /S /Q' : \ 'rmdir /S /Q' :