From ea193e8b5dd8f4031eb3417211c6e2965c71666a Mon Sep 17 00:00:00 2001 From: Yee Cheng Chin Date: Fri, 5 Aug 2022 21:07:33 -0700 Subject: [PATCH] Fix vimtutor menu not working Previously, the "Help.Vim Tutor" menu was using `:!vimtutor -g &`, but a change in Vim (v8.2.3502) broke that behavior, as the whole script will get terminated as soon as `:!` finishes running. Fix that to use `:call system('vimtutor -g &')` instead, since that still works. See https://github.com/vim/vim/issues/8951 for more discussions. --- runtime/menu.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/menu.vim b/runtime/menu.vim index 81872bf554..0e68fc04e7 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -108,8 +108,8 @@ endif if has("gui_macvim") " Run vimtutor in GUI mode. Need to make sure to override the PATH so we use " this app instead of accidentally opening another installed Vim/MacVim. - an 9999.5 &Help.Vim\ Tutor :silent !PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g& - tln 9999.5 &Help.Vim\ Tutor :silent !PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g& + an 9999.5 &Help.Vim\ Tutor :silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&') + tln 9999.5 &Help.Vim\ Tutor :silent call system('PATH="$VIM/../../bin":/usr/bin:/bin:/usr/sbin:/sbin $VIM/../../bin/vimtutor -g&') an 9999.6 &Help.-sep-vim-tutor- endif an 9999.10 &Help.&Overview :help