mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-04-30 02:36:54 +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)
|
||||
```
|
||||
|
||||
|
||||
## The ps-less way using status files
|
||||
Credit: @hakluke
|
||||
|
||||
|
@ -33,6 +34,10 @@ Credit: @kpumuk
|
|||
:!grep -P "PPid:\t(\d+)" /proc/$$/status | cut -f2 | xargs kill -9
|
||||
```
|
||||
|
||||
## The first contact way
|
||||
Credit: @caseyjohnellis
|
||||

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