diff --git a/autoload/vundle.vim b/autoload/vundle.vim index c737ffb..fcbcb62 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -5,11 +5,11 @@ " Version: 0.5 com! -nargs=+ Bundle call vundle#config#bundle() -com! -nargs=? -bang BundleInstall call vundle#installer#install('') -com! -nargs=? -bang BundleClean call vundle#installer#clean('') +com! -nargs=? -bang BundleInstall call vundle#installer#install('!' == '') +com! -nargs=? -bang BundleClean call vundle#installer#clean('!' == '') com! -nargs=0 BundleDocs call vundle#installer#helptags() -com! -nargs=+ -bang BundleSearch silent call vundle#scripts#search('', ) +com! -nargs=+ -bang BundleSearch silent call vundle#scripts#search('!' == '', ) com! -nargs=0 VundleLog silent pedit `=g:vundle_log` diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 1b43dde..3330e29 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -1,7 +1,7 @@ func! vundle#installer#install(bang) call s:reload_bundles() if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif - for bundle in g:bundles | call s:install('!' == a:bang, bundle) | endfor + for bundle in g:bundles | call s:install(a:bang, bundle) | endfor call vundle#installer#helptags() endf @@ -18,7 +18,7 @@ func! vundle#installer#clean(bang) let all_dirs = split(globpath(g:bundle_dir, '*'), "\n") let x_dirs = filter(all_dirs, '0 > index(bundle_dirs, v:val)') if (!empty(x_dirs)) - 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)'), ' ') endif end