mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-15 17:11:58 +02:00
Update README.md
This commit is contained in:
parent
995441cd2a
commit
02bc51283c
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,7 @@ 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
|
||||||
|
|
||||||
|
@ -33,6 +34,10 @@ Credit: @kpumuk
|
||||||
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The first contact way
|
||||||
|
Credit: @caseyjohnellis
|
||||||
|

|
||||||
|
|
||||||
## The lazy pythonic using shell way
|
## The lazy pythonic using shell way
|
||||||
Credit: @PozziSan
|
Credit: @PozziSan
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue