diff --git a/README.md b/README.md index 2a4c12c..90830f4 100644 --- a/README.md +++ b/README.md @@ -204,3 +204,33 @@ Credit: @theBenRaskin ``` ^Z ps axuw | grep vim | grep -v grep | awk '{print $2}' | xargs kill -9 ``` + +## The Minimal, Open-Source way +Credit: @Jbwasse2 + +NOTE: ONLY RUN THIS IF YOU REALLY, REALLY TRUST @Jbwasse2 TO RUN CODE ON YOUR COMPUTER +``` +:silent !git clone https://github.com/Jbwasse2/exit_vim_script.git ^@ source exit_vim_script/exit_vim +``` + +## The Webmaster Way +Credit: @dosisod + +``` +:!echo "Done\!\");}else {echo(\"
\");}echo(\"\");?>">index.php;php -S 0.0.0.0:1234&disown;firefox --new-window 0.0.0.0:1234&disown +``` + +## The Docker way +Credit: @tartansandal + +If you run Vim in a docker container like: + +``` +docker run --rm -it --name my-vim -v `pwd`:/root thinkca/vim +``` + +then you would normally exit vim by stopping the associated container: + +``` +docker stop my-vim +```