mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 11:17:12 +02:00
commit
a5536610b5
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -383,6 +383,18 @@ Credit: @axelf4
|
||||||
:echom test_null_list()
|
: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)
|
||||||
|
|
||||||
## The canonical way
|
## The canonical way
|
||||||
Credit: @ligurio
|
Credit: @ligurio
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue