mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-18 18:41:57 +02:00
commit
4fe1ae70f3
1 changed files with 13 additions and 1 deletions
14
README.md
14
README.md
|
@ -49,7 +49,19 @@ 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 reboot way (unverified)
|
## 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
|
Credit: @tctovsli
|
||||||
In `vi`:
|
In `vi`:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue