From 0e46ede99019023f65389d32976313e57f43d69d Mon Sep 17 00:00:00 2001 From: kevinclev Date: Thu, 9 Jan 2020 14:36:34 -0600 Subject: [PATCH 1/4] Add The AWS Way --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 906ce36..1289d4f 100644 --- a/README.md +++ b/README.md @@ -605,3 +605,17 @@ print('The universe is dead, VIM no longer exists'); 1. Try CTRL+C 2. Ask a senior engineer 3. Have senior engineer direct you to [how-to-exit-vim](https://github.com/hakluke/how-to-exit-vim) + + +## The AWS Way +1. In AWS EC2, select **Launch Instance**. +2. Launch an EC2 instance with a Linux based AMI. +3. ssh into the newly created EC2 instance +```shell +ssh -i ec2-user@ +``` +4. Launch vim +```shell +vim +``` +5. In the AWS EC2, select the newly created EC2 instance and terminate the instance. From ddba5f8d1a0d2b936b9b4533b4d6e546d494546c Mon Sep 17 00:00:00 2001 From: kevinclev Date: Thu, 9 Jan 2020 14:38:41 -0600 Subject: [PATCH 2/4] remove extra whitespace --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 1289d4f..ee2552b 100644 --- a/README.md +++ b/README.md @@ -606,7 +606,6 @@ print('The universe is dead, VIM no longer exists'); 2. Ask a senior engineer 3. Have senior engineer direct you to [how-to-exit-vim](https://github.com/hakluke/how-to-exit-vim) - ## The AWS Way 1. In AWS EC2, select **Launch Instance**. 2. Launch an EC2 instance with a Linux based AMI. From 9eba775de5d78dfc992f4b8d0adbbf0351ad400e Mon Sep 17 00:00:00 2001 From: Casey Kneale <47341278+caseykneale@users.noreply.github.com> Date: Thu, 9 Jan 2020 17:38:39 -0500 Subject: [PATCH 3/4] vimkiller way --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 906ce36..b015354 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,12 @@ Credit: @Jorengarenar _**Pull the plug out**_ + +## The hardware expert way +Use VIMKiller! The most practical physical solution to all your VIM troubles. It only costs 500,000 USD! + +[VIMKiller git](https://github.com/caseykneale/VIMKiller) + ## The timeout way Credit: @aarongorka From c7adf256d8ea64b5338bb35b53116e948a7d7479 Mon Sep 17 00:00:00 2001 From: MadCamel Date: Thu, 9 Jan 2020 18:33:05 -0500 Subject: [PATCH 4/4] Added pure perl method --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 906ce36..fffca3b 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,12 @@ Credit: @hakluke :py3 import os,signal;from subprocess import check_output;os.kill(int(check_output(["pidof","vim"]).decode ('utf-8')),signal.SIGTERM) ``` + +## The pure perl way +```perl +:!perl -e 'while(){open($f, "$_/cmdline"); kill 9, substr($_,6) if <$f> =~ m|^vim\x00| }' +``` + ## The Rustacean's way Credit: @wodny