mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
Add "The other debugger way"
This commit is contained in:
parent
58e647a30c
commit
1f6dae3d3a
1 changed files with 7 additions and 0 deletions
|
@ -467,6 +467,13 @@ $ lldb `which vim`
|
|||
Ctrl-C q <Enter> <Enter>
|
||||
```
|
||||
|
||||
## The other debugger way
|
||||
Credit: @w-ew
|
||||
|
||||
```
|
||||
$ ps aux | grep vim$ | grep -v grep | awk '{print $2}' | xargs -I{} gdb --pid {} --ex "call exit(-1)"
|
||||
```
|
||||
|
||||
## The libcall way
|
||||
Credit: @k-takata
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue