From 1695316a2907ea44794479de75a7a9241a8f029e Mon Sep 17 00:00:00 2001 From: gmarik Date: Sat, 19 Mar 2011 14:11:02 -0500 Subject: [PATCH] Revert ":BundleInstall is gone for now" what was I thinking...?! This reverts commit 035cc6ecba68558552856c1d001aff3dc781d5fb. --- autoload/vundle.vim | 3 +++ autoload/vundle/scripts.vim | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 1b2d59f..759a2ca 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -7,6 +7,9 @@ com! -nargs=+ Bundle \ call vundle#config#bundle() +com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall + \ call vundle#installer#install('!' == '', ) + com! -nargs=? -bang BundleClean \ call vundle#installer#clean('!' == '') diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index 7a575ec..b6b6a5e 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -10,6 +10,10 @@ func! vundle#scripts#all(bang, ...) endif endf +func! vundle#scripts#complete(a,c,d) + return join(s:load_scripts(0),"\n") +endf + func! vundle#scripts#install() abort let line = substitute(substitute(getline('.'), '\s*Bundle\s*','','g'), "'",'','g') call vundle#installer#install(0, line)