replaced loops with functional analogues

This commit is contained in:
gmarik
2011-03-10 22:27:50 -06:00
parent de308ff406
commit f99ca2e5ac
2 changed files with 3 additions and 3 deletions

View File

@@ -50,11 +50,11 @@ func! s:parse_name(arg)
endf
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
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
func! s:rtp_rm(dir)