Allow executing multiple commands

This commit is contained in:
Tim Pope
2013-01-13 12:56:59 -05:00
parent 5c657cbe99
commit 34eff0f3e4
+4 -2
View File
@@ -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