mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-28 08:16:31 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
1233a25845
1 changed files with 25 additions and 0 deletions
25
README.md
25
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(</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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue