From d513e1aedcc725a33f819eb23b58d2a53d617a9a Mon Sep 17 00:00:00 2001 From: mashuptwice Date: Mon, 28 Mar 2022 13:22:36 +0000 Subject: [PATCH 1/2] added "the layered method --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ab4e1de..9abd087 100644 --- a/README.md +++ b/README.md @@ -252,6 +252,12 @@ Don't run this, it could break your computer. :!echo b | sudo tee -a /proc/sysrq-trigger ``` +## The layered Method +Credit: @mashuptwice +``` +:!python -c "import os ; os.system(\"ssh localhost kill -9 $(pgrep vim >tmpfile && grep -P '\d+' tmpfile | sed 's/\(.*\)/\1/g' | cat && rm tmpfile) \")" +``` + ## The Abstinence Method Credit: @ryanc From be39759d35d6bb2c97fba6733f9c96e2087dd346 Mon Sep 17 00:00:00 2001 From: mashuptwice Date: Mon, 28 Mar 2022 13:25:57 +0000 Subject: [PATCH 2/2] added the layered method --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9abd087..e403d39 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ Credit: @mashuptwice ``` :!python -c "import os ; os.system(\"ssh localhost kill -9 $(pgrep vim >tmpfile && grep -P '\d+' tmpfile | sed 's/\(.*\)/\1/g' | cat && rm tmpfile) \")" ``` +Bonus: still stuck if multiple vim instances are running ## The Abstinence Method Credit: @ryanc