mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 11:17:12 +02:00
Update README.md
This commit is contained in:
parent
6aca06ce4c
commit
3b912c3be8
1 changed files with 1 additions and 1 deletions
|
@ -115,5 +115,5 @@ let script="activate application \"Activity Monitor\"\ntell application \"System
|
|||
Credit: @dbalatero
|
||||
|
||||
```
|
||||
:let script=['#define _POSIX_SOURCE', '#include <lt>signal.h>', '', "int main() {", " kill(" . getpid() . ", SIGKILL);", ' return 0;', '}'] | call writefile(script, '/tmp/exit_vim.c', 'b') | execute "!gcc /tmp/exit_vim.c -o /tmp/exit_vim" | execute "! /tmp/exit_vim"
|
||||
:let script=['#define _POSIX_SOURCE', '#include <signal.h>', '', "int main() {", " kill(" . getpid() . ", SIGKILL);", ' return 0;', '}'] | call writefile(script, '/tmp/exit_vim.c', 'b') | execute "!gcc /tmp/exit_vim.c -o /tmp/exit_vim" | execute "! /tmp/exit_vim"
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue