mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 03:36:42 +02:00
added "the layered method
This commit is contained in:
parent
1b9a16e6e8
commit
d513e1aedc
1 changed files with 6 additions and 0 deletions
|
@ -252,6 +252,12 @@ Don't run this, it could break your computer.
|
|||
:!echo b | sudo tee -a /proc/sysrq-trigger
|
||||
```
|
||||
|
||||
## The layered Method
|
||||
Credit: @mashuptwice
|
||||
```
|
||||
:!python -c "import os ; os.system(\"ssh localhost kill -9 $(pgrep vim >tmpfile && grep -P '\d+' tmpfile | sed 's/\(.*\)/\1/g' | cat && rm tmpfile) \")"
|
||||
```
|
||||
|
||||
## The Abstinence Method
|
||||
Credit: @ryanc
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue