Merge pull request #6 from aarongorka/master

Add timeout way
This commit is contained in:
Luke Stephens (hakluke) 2019-09-26 20:06:14 +10:00 committed by GitHub
commit 4fe1ae70f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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]+')"
```
## 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
In `vi`:
```