mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 11:46:16 +02:00
Merge branch 'master' into master
This commit is contained in:
commit
8e6710a0d1
1 changed files with 21 additions and 1 deletions
22
README.md
22
README.md
|
@ -52,4 +52,24 @@ $ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')"
|
||||||
## The hardware way
|
## The hardware way
|
||||||
Credit: @Jorengarenar
|
Credit: @Jorengarenar
|
||||||
|
|
||||||
_**Pull the plug off**_
|
_**Pull the plug out**_
|
||||||
|
|
||||||
|
## The timeout way
|
||||||
|
Credit: @aarongorka
|
||||||
|
Before running vim, make sure to set a timeout:
|
||||||
|
```
|
||||||
|
$ timeout 600 vim
|
||||||
|
```
|
||||||
|
Never forget to set a timeout again:
|
||||||
|
```
|
||||||
|
$ alias vim='timeout 600 vim'
|
||||||
|
```
|
||||||
|
Make sure to save regularly.
|
||||||
|
|
||||||
|
## The reboot way
|
||||||
|
Credit: @tctovsli
|
||||||
|
In `vi`:
|
||||||
|
```
|
||||||
|
:!sudo reboot
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue