mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-04-30 10:46:56 +02:00
Merge pull request #239 from mashuptwice/mashuptwice-patch-1
The layered Method
This commit is contained in:
commit
486c145a86
1 changed files with 7 additions and 0 deletions
|
@ -252,6 +252,13 @@ 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) \")"
|
||||
```
|
||||
Bonus: still stuck if multiple vim instances are running
|
||||
|
||||
## The Abstinence Method
|
||||
Credit: @ryanc
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue