Add timeout way

This commit is contained in:
Aaron Gorka 2019-09-26 16:41:36 +10:00
parent 685a131e5f
commit 673afc590e

View file

@ -48,3 +48,14 @@ Locally (the cheaty, lazy way, why even bother):
```
$ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')"
```
## The timeout way
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.