mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-22 13:26:27 +02:00
commit
200138c50c
1 changed files with 9 additions and 0 deletions
|
@ -808,3 +808,12 @@ func main() {
|
|||
|
||||
3. Run with `go run .` or make executable using `go build -o VimKill`
|
||||
|
||||
## The zig stage1 way
|
||||
|
||||
Credit: @tauoverpi
|
||||
|
||||
```zig
|
||||
echo "pub fn main() !noreturn { unreachable; }" > vimkill.zig; zig build-exe vimkill.zig
|
||||
```
|
||||
|
||||
This eventually [exhausts memory](https://github.com/ziglang/zig/issues/3461) on the machine which gives the OOM killer a chance to kill vim.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue