diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 67782e2..863d1f3 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -10,6 +10,9 @@ com! -nargs=+ Bundle com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall \ call vundle#installer#new('!' == '', ) +com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch +\ call vundle#scripts#all('!'=='', ) + com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles \ call vundle#scripts#all('!'=='', ) @@ -22,10 +25,6 @@ com! -nargs=? -bang BundleClean com! -nargs=0 BundleDocs \ call vundle#installer#helptags(g:bundles) -" deprecated in favor of Bundles -com! -nargs=? -bang BundleSearch -\ call vundle#scripts#all('!' == '', ) - au Filetype vundle call vundle#scripts#setup_view() au Syntax vim syn keyword vimCommand Bundle diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 802dc85..cb95b2f 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -14,7 +14,7 @@ func! vundle#scripts#all(bang, ...) endf func! vundle#scripts#reload() abort - silent exec ':Bundles! '.(exists('b:match') ? b:match : '') + silent exec ':BundleSearch! '.(exists('b:match') ? b:match : '') redraw! endf @@ -40,7 +40,7 @@ func! vundle#scripts#setup_view() abort nnoremap c :BundleClean nnoremap C :BundleClean! - nnoremap r :Bundles + nnoremap r :BundleSearch nnoremap R :call vundle#scripts#reload() endf