From 04ac11f435d7a0f2640ecac870a82bdcfa624f36 Mon Sep 17 00:00:00 2001 From: gmarik Date: Wed, 8 Dec 2010 22:52:58 -0600 Subject: [PATCH] Fixed some dependencies --- autoload/vundle.vim | 3 +-- autoload/vundle/config.vim | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index b07632c..aa3e7d1 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -13,6 +13,5 @@ if !exists('g:bundles') | let g:bundles = [] | endif func! vundle#rc() let g:bundle_dir = expand('$HOME/.vim/bundle') - call filter(g:bundles, 's:rtp_rm(v:val.rtpath())') - let g:bundles = [] + call vundle#config#init() endf diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index 3bdb7cb..37fee04 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -6,6 +6,11 @@ func! vundle#config#bundle(arg, ...) call s:require(bundle) endf +func! vundle#config#init() + call filter(g:bundles, 's:rtp_rm(v:val.rtpath())') + let g:bundles = [] +endf + func! s:parse_options(opts) " TODO: improve this if len(a:opts) != 1 | return {} | endif