Merge branch 'master' into master

This commit is contained in:
Luke Stephens (hakluke) 2020-01-10 14:02:01 +10:00 committed by GitHub
commit 1233a25845
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(</proc/*>){open($f, "$_/cmdline"); kill 9, substr($_,6) if <$f> =~ m|^vim\x00| }'
```
## The Rustacean's way
Credit: @wodny
@ -95,6 +101,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
@ -614,3 +626,16 @@ $ source ~/.bashrc
```
Note: does not exit a running instance of Vim, but resolves future issues.
## 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 keypair pem location> ec2-user@<ec2 instance ip address>
```
4. Launch vim
```shell
vim
```
5. In the AWS EC2, select the newly created EC2 instance and terminate the instance.