3 ms·
Related: https://github.com/hakluke/how-to-exit-vim?fbclid=IwAR0DmwIdFjKZJLNUXSQquS7wBU94zTGQQRrYjFXSpaBIIV1BylkmxcJovLc https://github.com/hakluke/how-to-exit-
by 3001 6y ago
Related: https://github.com/hakluke/how-to-exit-vim?fbclid=IwAR0DmwIdFjKZJLNUXSQquS7wBU94zTGQQRrYjFXSpaBIIV1BylkmxcJovLc https://github.com/hakluke/how-to-exit-vim?fbclid=IwAR0DmwId...
- godelski 6y agoWhat kind of idiot doesn't understand that all you have to type is ``` :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" ```