From e581118ca162768f3306b1959a831b0f4d17e9be Mon Sep 17 00:00:00 2001 From: Ludovic Fernandez Date: Wed, 18 Nov 2020 12:55:30 +0100 Subject: [PATCH] Add exit code at the end of script execution Exit codes matter. Add a separator and a line showing the exit code after executing the script. --- plugin/script-runner.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/script-runner.vim b/plugin/script-runner.vim index 215fb6b..a817d8f 100644 --- a/plugin/script-runner.vim +++ b/plugin/script-runner.vim @@ -80,7 +80,7 @@ fu! Run(cmd) resize 12 " }}} 0 put - exe '%!' . s:real_cmd + exe '%!' . s:real_cmd . '; echo -e "------------------------------------\nScript exited with code: $?"' 0 read !date append ------------------------------------