From 490cd7662989f871b3655a0b086a7eff49ab9db2 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sat, 3 Dec 2022 16:14:29 +0000 Subject: [PATCH] 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` --- site-modules/core/files/vim/plugin/run.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/site-modules/core/files/vim/plugin/run.vim b/site-modules/core/files/vim/plugin/run.vim index f7f2b3b..95abdc3 100644 --- a/site-modules/core/files/vim/plugin/run.vim +++ b/site-modules/core/files/vim/plugin/run.vim @@ -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