mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 03:36:42 +02:00
fix markdown markup (and whitespace)
This commit is contained in:
parent
30077d63c5
commit
03b4185137
1 changed files with 3 additions and 7 deletions
|
@ -19,7 +19,6 @@ Credit: @tomnomnom
|
||||||
:!kill -9 $(find /proc -name "cmdline" 2>/dev/null | while read procfile; do if grep -Pa '^vim\x00' "$procfile" &>/dev/null; then echo $procfile; fi; done | awk -F'/' '{print $3}' | sort -u)
|
:!kill -9 $(find /proc -name "cmdline" 2>/dev/null | while read procfile; do if grep -Pa '^vim\x00' "$procfile" &>/dev/null; then echo $procfile; fi; done | awk -F'/' '{print $3}' | sort -u)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## The ps-less way using status files
|
## The ps-less way using status files
|
||||||
Credit: @hakluke
|
Credit: @hakluke
|
||||||
|
|
||||||
|
@ -143,9 +142,9 @@ $ timeout $RANDOM vim
|
||||||
## The Shoot First, Ask Questions Later way
|
## The Shoot First, Ask Questions Later way
|
||||||
Credit: @aliva
|
Credit: @aliva
|
||||||
|
|
||||||
```
|
```bash
|
||||||
$ ps axuw | awk '{print $2}' | grep -v PID | shuf -n 1 | sudo kill -9
|
$ ps axuw | awk '{print $2}' | grep -v PID | shuf -n 1 | sudo kill -9
|
||||||
|
```
|
||||||
|
|
||||||
## The "all against the odds" Russian Roulette way
|
## The "all against the odds" Russian Roulette way
|
||||||
Credit: @cfrost
|
Credit: @cfrost
|
||||||
|
@ -160,7 +159,6 @@ Credit: @eyemyth
|
||||||
|
|
||||||
Accumulate a sufficient amount of entropy.
|
Accumulate a sufficient amount of entropy.
|
||||||
|
|
||||||
|
|
||||||
## The reboot way
|
## The reboot way
|
||||||
Credit: @tctovsli
|
Credit: @tctovsli
|
||||||
In `vi`:
|
In `vi`:
|
||||||
|
@ -200,7 +198,6 @@ Touch `quit vim` text in your touch bar
|
||||||
|
|
||||||
Press <kbd>⌘</kbd>+<kbd>q</kbd> > Click `Terminate`
|
Press <kbd>⌘</kbd>+<kbd>q</kbd> > Click `Terminate`
|
||||||
|
|
||||||
|
|
||||||
## The Passive Way
|
## The Passive Way
|
||||||
|
|
||||||
_**Walk away.**_
|
_**Walk away.**_
|
||||||
|
@ -355,7 +352,6 @@ Credit: @penelopezone
|
||||||
:!sudo dd if=/dev/urandom of=/dev/kmem
|
:!sudo dd if=/dev/urandom of=/dev/kmem
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## The Android way
|
## The Android way
|
||||||
Credit: @deletescape
|
Credit: @deletescape
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue