refactor(vim): remove exit after run command

I am finding my self wanting to view the output of command nowadays,
rather then wanting to run a quick command and see if its passed or not.
By removing the exit at the end of the command the terminal dose not
close now. If I want the terminal to close I can still append the
command with `&& exit` when using `Run`
This commit is contained in:
Ade Attwood 2022-12-03 16:14:29 +00:00
parent d04bc93c9d
commit 490cd76629

View file

@ -13,15 +13,15 @@ function! s:aa_run(command)
let l:split = '-v' let l:split = '-v'
endif endif
execute 'silent !tmux split-window -p 50 ' . l:split . ' && tmux send-keys "' . a:command . ' && exit" C-m' execute 'silent !tmux split-window -p 50 ' . l:split . ' && tmux send-keys "' . a:command . '" C-m'
return return
endif endif
if has('nvim') if has('nvim')
if (&columns > 180) if (&columns > 180)
execute 'VTerm ' . a:command . ' && exit' execute 'VTerm ' . a:command
else else
execute 'HTerm ' . a:command . ' && exit' execute 'HTerm ' . a:command
endif endif
endif endif
endfunction endfunction