From de021cb597de18fa446a78dd3c8a94807f4ebe97 Mon Sep 17 00:00:00 2001 From: Kahlil Hodgson Date: Fri, 27 Sep 2019 21:17:25 +1000 Subject: [PATCH] Use another vim instance to exit --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 58e6868..d5e261c 100644 --- a/README.md +++ b/README.md @@ -139,3 +139,12 @@ Credit: @david50407 ``` :let command='vim ''+\\!kill -9 ' . getpid() . ''' +qall -es' | execute "!" . command ``` + +## The Client-Server way +Credit: @tartansandal + +If `+clientserver` is enabled -- typically the case for the GUI -- you can simply + +``` +:!gvim --remote-send ':q\!' +```