From 34eff0f3e4a9724a6983c444bc17bf1baefbcb39 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 13 Jan 2013 12:56:59 -0500 Subject: [PATCH] Allow executing multiple commands --- autoload/pathogen.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/autoload/pathogen.vim b/autoload/pathogen.vim index df3a2c9..c2f6d14 100644 --- a/autoload/pathogen.vim +++ b/autoload/pathogen.vim @@ -218,8 +218,10 @@ endfunction " }}}1 command! -bar Helptags :call pathogen#helptags() " Execute the given command. This is basically a backdoor for --remote-expr. -function! pathogen#execute(command) abort " {{{1 - execute a:command +function! pathogen#execute(...) abort " {{{1 + for command in a:000 + execute command + endfor return '' endfunction " }}}1