From 4167860539fb57bc1e905524eaa99f5147148efb Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 6 Aug 2011 00:45:22 -0500 Subject: [PATCH] :BundleList lists installed bundles --- autoload/vundle.vim | 3 +++ autoload/vundle/installer.vim | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index c50ca77..67782e2 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -13,6 +13,9 @@ com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles \ call vundle#scripts#all('!'=='', ) +com! -nargs=0 -bang BundleList +\ call vundle#installer#list('!'=='') + com! -nargs=? -bang BundleClean \ call vundle#installer#clean('!' == '') diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index a4b2655..4ab088b 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -65,6 +65,14 @@ func! vundle#installer#helptags(bundles) abort return help_dirs endf +func! vundle#installer#list(bang) abort + let bundles = (a:bang) ? s:reload_bundles() : g:bundles + call vundle#scripts#view('list', ['" My Bundles'], map(copy(g:bundles), 'v:val.name_spec')) + redraw! + echo len(g:bundles).' bundles configured' +endf + + func! vundle#installer#clean(bang) abort let bundle_dirs = map(copy(g:bundles), 'v:val.path()') let all_dirs = split(globpath(g:bundle_dir, '*'), "\n")