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:
parent
d04bc93c9d
commit
490cd76629
1 changed files with 3 additions and 3 deletions
|
|
@ -13,15 +13,15 @@ function! s:aa_run(command)
|
|||
let l:split = '-v'
|
||||
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
|
||||
endif
|
||||
|
||||
if has('nvim')
|
||||
if (&columns > 180)
|
||||
execute 'VTerm ' . a:command . ' && exit'
|
||||
execute 'VTerm ' . a:command
|
||||
else
|
||||
execute 'HTerm ' . a:command . ' && exit'
|
||||
execute 'HTerm ' . a:command
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
|
|
|||
Loading…
Reference in a new issue