From 673afc590e92d7812c3bd8d6e1616728c1d9db41 Mon Sep 17 00:00:00 2001 From: Aaron Gorka Date: Thu, 26 Sep 2019 16:41:36 +1000 Subject: [PATCH] Add timeout way --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 5fac18d..a9a5450 100644 --- a/README.md +++ b/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]+')" ``` + +## 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.