mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-06-16 17:41:56 +02:00
Add the libcall way
This commit is contained in:
parent
d548420d77
commit
3dd5802910
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -378,3 +378,16 @@ Credit: @axelf4
|
|||
```vim
|
||||
:echom test_null_list()
|
||||
```
|
||||
|
||||
## The libcall way
|
||||
Credit: @k-takata
|
||||
|
||||
Windows
|
||||
```vim
|
||||
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
|
||||
```
|
||||
|
||||
Linux
|
||||
```vim
|
||||
:call libcallnr('libc.so.6', 'exit', 0)
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue