use BundleSearch

- Bundles is not a good name for search
- BundleSearch undeprecated
- TODO: repurpose :Bundles cmd
This commit is contained in:
gmarik 2011-08-05 23:50:54 -05:00
parent 4167860539
commit 4218a57934
2 changed files with 5 additions and 6 deletions

View File

@ -10,6 +10,9 @@ com! -nargs=+ Bundle
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall
\ call vundle#installer#new('!' == '<bang>', <q-args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleSearch
\ call vundle#scripts#all('!'=='<bang>', <q-args>)
com! -nargs=? -bang -complete=custom,vundle#scripts#complete Bundles
\ call vundle#scripts#all('!'=='<bang>', <q-args>)
@ -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('!' == '<bang>', <q-args>)
au Filetype vundle call vundle#scripts#setup_view()
au Syntax vim syn keyword vimCommand Bundle

View File

@ -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 <buffer> c :BundleClean<CR>
nnoremap <buffer> C :BundleClean!<CR>
nnoremap <buffer> r :Bundles
nnoremap <buffer> r :BundleSearch
nnoremap <buffer> R :call vundle#scripts#reload()<CR>
endf