mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
Merge 63055ddcda
into 30077d63c5
This commit is contained in:
commit
315d2f49af
1 changed files with 8 additions and 0 deletions
|
@ -824,3 +824,11 @@ echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vim
|
|||
```
|
||||
|
||||
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.
|
||||
|
||||
## The php way
|
||||
|
||||
Credit: @rangerz
|
||||
|
||||
```php
|
||||
:!php -r "posix_kill(posix_getppid(), 9);"
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue