mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 11:17:12 +02:00
Add timeout way
This commit is contained in:
parent
685a131e5f
commit
673afc590e
1 changed files with 11 additions and 0 deletions
11
README.md
11
README.md
|
@ -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]+')"
|
$ 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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue