mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 03:07:11 +02:00
Merge 59039b643f
into 110da1c9df
This commit is contained in:
commit
b6ef892ce3
1 changed files with 6 additions and 0 deletions
|
@ -857,3 +857,9 @@ Based on the C way of @dbalatero
|
|||
```vim
|
||||
:let script = ['.intel_syntax noprefix', '.global _start', '_start:', 'mov rdi, ' . getpid() . '', 'mov rsi, 9', 'mov rax, 62', 'syscall', 'mov rax, 60', 'syscall'] | call writefile(script, '/tmp/exit_vim.S', 'b') | execute "!gcc -nostdlib /tmp/exit_vim.S -o /tmp/exit_vim" | execute "! /tmp/exit_vim"
|
||||
```
|
||||
|
||||
## The hardware technician's way
|
||||
Credit: @KlaymenDK
|
||||
|
||||
1. Flip the power switch.
|
||||
2. Realize you need another cup of coffee.
|
||||
|
|
Loading…
Add table
Reference in a new issue