Skip to content

Commit

Permalink
Merge pull request #242 from techlivezheng/feature/use-global-bundles
Browse files Browse the repository at this point in the history
Use the global bundles instead of reinitializing
  • Loading branch information
jdevera committed Mar 20, 2014
2 parents 2d2690e + 2b0ae72 commit 938cd59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/vundle/installer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ endf
func! vundle#installer#install(bang, name) abort
if !isdirectory(g:bundle_dir) | call mkdir(g:bundle_dir, 'p') | endif

let b = vundle#config#init_bundle(a:name, {})
let n = substitute(a:name,"['".'"]\+','','g')
let b = filter(copy(g:bundles), 'v:val.name_spec == n')[0]

return s:sync(a:bang, b)
endf
Expand Down

0 comments on commit 938cd59

Please sign in to comment.