From 3a340fa5bc857dd450adca83a0d02d4da70741db Mon Sep 17 00:00:00 2001 From: David Kuo Date: Fri, 27 Sep 2019 12:37:38 +0800 Subject: [PATCH] The Vim way to finish the life of vim --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index dfa20d1..58e6868 100644 --- a/README.md +++ b/README.md @@ -132,3 +132,10 @@ Credit: @dbalatero ``` :let command='emacs --batch --eval=''(shell-command "kill -9 ' . getpid() . '")'' --kill' | execute "!" . command ``` + +## The Vim way +Credit: @david50407 + +``` +:let command='vim ''+\\!kill -9 ' . getpid() . ''' +qall -es' | execute "!" . command +```