diff --git a/README.md b/README.md index a9a5450..c4f0e38 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ $ curl "http://localhost:8888/$(ps aux | grep -E -o 'kill-vi-[0-9]+')" ``` ## The timeout way +Credit: @aarongorka Before running vim, make sure to set a timeout: ``` $ timeout 600 vim @@ -59,3 +60,10 @@ Never forget to set a timeout again: $ alias vim='timeout 600 vim' ``` Make sure to save regularly. + +## The reboot way +Credit: @tctovsli +In `vi`: +``` +:!sudo reboot +```