mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-07 05:01:59 +02:00
Merge pull request #4 from Jorengarenar/master
Added "The hardware way"
This commit is contained in:
commit
b7525d0891
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,11 @@ Locally (the cheaty, lazy way, why even bother):
|
||||||
$ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')"
|
$ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The hardware way
|
||||||
|
Credit: @Jorengarenar
|
||||||
|
|
||||||
|
_**Pull the plug out**_
|
||||||
|
|
||||||
## The timeout way
|
## The timeout way
|
||||||
Credit: @aarongorka
|
Credit: @aarongorka
|
||||||
Before running vim, make sure to set a timeout:
|
Before running vim, make sure to set a timeout:
|
||||||
|
@ -67,3 +72,4 @@ In `vi`:
|
||||||
```
|
```
|
||||||
:!sudo reboot
|
:!sudo reboot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue