From 7681eb5611d610fd632ebc33aeae5bf2b2b37a9e Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Thu, 13 Oct 2011 16:40:15 -0700 Subject: [PATCH] initial attempt at BundleCommand --- autoload/vundle.vim | 3 +++ autoload/vundle/installer.vim | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 632a5b2..b4f195a 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -7,6 +7,9 @@ com! -nargs=+ Bundle \ call vundle#config#bundle() +com! -nargs=1 BundleCommand +\ call vundle#installer#command() + com! -nargs=? -bang -complete=custom,vundle#scripts#complete BundleInstall \ call vundle#installer#new('!' == '', ) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index ce9db38..a629f87 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -11,6 +11,10 @@ func! vundle#installer#new(bang, ...) abort call vundle#config#require(bundles) endf +func! vundle#installer#command(cmd) + silent execute '!cd ~/.vim/bundle && ' . a:cmd + redraw! +endf func! s:process(bang, cmd) let msg = ''