You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -261,14 +261,14 @@ Don't run this, it could break your computer.
261
261
262
262
## The layered Method
263
263
Credit: @mashuptwice
264
-
```
264
+
```vim
265
265
:!python -c "import os ; os.system(\"ssh localhost kill -9 $(pgrep vim >tmpfile && grep -P '\d+' tmpfile | sed 's/\(.*\)/\1/g' | cat && rm tmpfile) \")"
266
266
```
267
267
Bonus: still stuck if multiple vim instances are running
268
268
269
269
## The epileptic Method
270
270
Credit: @mashuptwice
271
-
```
271
+
```vim
272
272
:!timeout 10 yes "Preparing to exit vim. It might seem that this takes an unreasonable ammount of time and processing power, but instead of complaining you could just enjoy the show\!" | lolcat ; pgrep vim | xargs kill -9
273
273
```
274
274
May the magnificent colors help you to forget the emotional damage caused by exiting vim!
@@ -351,7 +351,7 @@ Credit: @penelopezone
351
351
352
352
**Warning, this may break your entire computer**
353
353
354
-
```
354
+
```vim
355
355
:!sudo dd if=/dev/urandom of=/dev/kmem
356
356
```
357
357
@@ -513,15 +513,15 @@ Credit: @k-takata
513
513
Credit: @85danf
514
514
515
515
To run vim:
516
-
```
516
+
```bash
517
517
mkdir -p /tmp/vim
518
518
cd /tmp/vim
519
519
vagrant init --minimal hashicorp/bionic64
520
520
vagrant ssh
521
521
vim
522
522
```
523
523
To exit vim, open another shell, then:
524
-
```
524
+
```bash
525
525
cd /tmp/vim
526
526
vagrant halt
527
527
```
@@ -596,7 +596,7 @@ Credit @u2mejc
596
596
```
597
597
598
598
## The Newbie Way
599
-
```
599
+
```bash
600
600
git commit
601
601
```
602
602
@@ -691,15 +691,15 @@ Credit: @ccw630
691
691
Based on https://www.exploit-db.com/exploits/46973. Works with Vim < 8.1.1365.
692
692
693
693
1. Create a file (say `quit.txt`) with the following data:
0 commit comments