remove reload_bundles at all
This commit is contained in:
parent
5077f37d9d
commit
1874255efd
@ -131,7 +131,6 @@ see [wiki](/gmarik/vundle/wiki)
|
|||||||
* allow specify revision/version?
|
* allow specify revision/version?
|
||||||
* search by description as well
|
* search by description as well
|
||||||
* show description in search results
|
* show description in search results
|
||||||
* [REMOVE] instead sourcing .vimrc before installation come up with another solution
|
|
||||||
* make it rock!
|
* make it rock!
|
||||||
|
|
||||||
[Vundle]:http://github.com/gmarik/vundle
|
[Vundle]:http://github.com/gmarik/vundle
|
||||||
|
@ -90,7 +90,6 @@ func! vundle#installer#helptags(bundles) abort
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! vundle#installer#list(bang) abort
|
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'))
|
call vundle#scripts#view('list', ['" My Bundles'], map(copy(g:bundles), 'v:val.name_spec'))
|
||||||
redraw!
|
redraw!
|
||||||
echo len(g:bundles).' bundles configured'
|
echo len(g:bundles).' bundles configured'
|
||||||
@ -142,13 +141,6 @@ func! vundle#installer#delete(bang, dir_name) abort
|
|||||||
endif
|
endif
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:reload_bundles()
|
|
||||||
" TODO: obtain Bundles without sourcing .vimrc
|
|
||||||
if filereadable($MYVIMRC)| silent source $MYVIMRC | endif
|
|
||||||
if filereadable($MYGVIMRC)| silent source $MYGVIMRC | endif
|
|
||||||
return g:bundles
|
|
||||||
endf
|
|
||||||
|
|
||||||
func! s:has_doc(rtp) abort
|
func! s:has_doc(rtp) abort
|
||||||
return isdirectory(a:rtp.'/doc')
|
return isdirectory(a:rtp.'/doc')
|
||||||
\ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))
|
\ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags'))
|
||||||
|
Loading…
Reference in New Issue
Block a user