replaced loops with functional analogues
This commit is contained in:
parent
de308ff406
commit
f99ca2e5ac
@ -50,11 +50,11 @@ func! s:parse_name(arg)
|
|||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:rtp_rm_a()
|
func! s:rtp_rm_a()
|
||||||
for b in g:bundles | call s:rtp_rm(b.rtpath()) | endfor
|
call filter(copy(g:bundles), 's:rtp_rm(v:val.rtpath())')
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:rtp_add_a()
|
func! s:rtp_add_a()
|
||||||
for b in reverse(copy(g:bundles)) | call s:rtp_add(b.rtpath()) | endfor
|
call filter(reverse(copy(g:bundles)), 's:rtp_add(v:val.rtpath())')
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:rtp_rm(dir)
|
func! s:rtp_rm(dir)
|
||||||
|
@ -3,7 +3,7 @@ func! vundle#installer#install(bang, ...)
|
|||||||
let bundles = (a:1 == '') ?
|
let bundles = (a:1 == '') ?
|
||||||
\ s:reload_bundles() :
|
\ s:reload_bundles() :
|
||||||
\ map(copy(a:000), 'vundle#config#init_bundle(v:val, {})')
|
\ map(copy(a:000), 'vundle#config#init_bundle(v:val, {})')
|
||||||
for bundle in bundles | call s:install(a:bang, bundle) | endfor
|
call map(copy(bundles), 's:install(a:bang, v:val)')
|
||||||
call vundle#installer#helptags(bundles)
|
call vundle#installer#helptags(bundles)
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user