@@ -135,9 +135,9 @@ endif
135135command ! -nargs =? -complete =dir VimShell call vimshell#switch_shell (0 , <q-args> )
136136command ! -nargs =? -complete =dir VimShellCreate call vimshell#create_shell (0 , <q-args> )
137137command ! -nargs =? -complete =dir VimShellPop call vimshell#switch_shell (1 , <q-args> )
138- command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellExecute call vimshell#commands#bg#vimshell_bg (<q-args> )
139- command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellInteractive call vimshell#commands#iexe#vimshell_iexe (<q-args> )
140- command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellTerminal call vimshell#commands#texe#vimshell_texe (<q-args> )
138+ command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellExecute call s: vimshell_execute (<q-args> )
139+ command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellInteractive call s: vimshell_interactive (<q-args> )
140+ command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellTerminal call s: vimshell_terminal (<q-args> )
141141command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellBang call s: bang (<q-args> )
142142command ! -nargs =+ -complete =customlist ,s: execute_completefunc VimShellRead call s: read (<q-args> )
143143
@@ -161,6 +161,18 @@ function! s:execute_completefunc(lead, cmd, pos)"{{{
161161 silent ! let keys = vimshell#complete#vimshell_execute_complete#completefunc (a: lead , a: cmd , a: pos )
162162 return keys
163163endfunction " }}}
164+ function ! s: vimshell_execute (args )" {{{
165+ call vimshell#execute_internal_command (' bg' , vimshell#parser#split_args (a: args ), { ' stdin' : ' ' , ' stdout' : ' ' , ' stderr' : ' ' },
166+ \ { ' is_interactive' : 0 , ' is_split' : 1 })
167+ endfunction " }}}
168+ function ! s: vimshell_interactive (args )" {{{
169+ call vimshell#execute_internal_command (' iexe' , vimshell#parser#split_args (a: args ), { ' stdin' : ' ' , ' stdout' : ' ' , ' stderr' : ' ' },
170+ \ { ' is_interactive' : 0 , ' is_split' : 1 })
171+ endfunction " }}}
172+ function ! s: vimshell_terminal (args )" {{{
173+ call vimshell#execute_internal_command (' texe' , vimshell#parser#split_args (a: args ), { ' stdin' : ' ' , ' stdout' : ' ' , ' stderr' : ' ' },
174+ \ { ' is_interactive' : 0 , ' is_split' : 1 })
175+ endfunction " }}}
164176
165177augroup vimshell
166178 " Detect vimshell rc file.
0 commit comments