From e5231570c3c20127c17553b90d3c6657f57f0cf5 Mon Sep 17 00:00:00 2001 From: Nanda Lopes Date: Sun, 8 Nov 2020 15:44:00 -0300 Subject: [PATCH] Fix #845 Vim suspends in some times --- vim/settings/path.vim | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vim/settings/path.vim b/vim/settings/path.vim index fa23131f..18bba7a0 100644 --- a/vim/settings/path.vim +++ b/vim/settings/path.vim @@ -1,4 +1,11 @@ " Set the shell to bash so we inherit its path, to make sure " we inherit its path. This affects :Rtags finding the right " path to homebrewed ctags rather than the XCode version of ctags -set shell=bash\ -i +" +" Use login Shell instead of interactive shell to avoid +" vimdiff suspended at startup +if has("gui_running") + set shell=bash\ -i +else + set shell=bash\ -l +endif