mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
Merge branch 'master' into patch-1
This commit is contained in:
commit
8902665c1d
1 changed files with 10 additions and 0 deletions
10
README.md
10
README.md
|
@ -129,6 +129,10 @@ Credit: @dbalatero
|
||||||
let script="activate application \"Activity Monitor\"\ntell application \"System Events\"\n\tkeystroke \"f\" using {option down, command down}\n\tkeystroke \"vim\"\n\n\ttell process \"Activity Monitor\"\n\t\ttell outline 1 of scroll area 1 of window 1\n\t\t\tselect row 1\n\n\t\t\tkeystroke \"q\" using {option down, command down}\n\t\t\tkey code 36\n\t\tend tell\n\tend tell\nend tell\n" | call writefile(split(script, "\n", 1), '/tmp/exit-vim.scpt', 'b') | !osascript /tmp/exit-vim.scpt
|
let script="activate application \"Activity Monitor\"\ntell application \"System Events\"\n\tkeystroke \"f\" using {option down, command down}\n\tkeystroke \"vim\"\n\n\ttell process \"Activity Monitor\"\n\t\ttell outline 1 of scroll area 1 of window 1\n\t\t\tselect row 1\n\n\t\t\tkeystroke \"q\" using {option down, command down}\n\t\t\tkey code 36\n\t\tend tell\n\tend tell\nend tell\n" | call writefile(split(script, "\n", 1), '/tmp/exit-vim.scpt', 'b') | !osascript /tmp/exit-vim.scpt
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The Mac Terminal way
|
||||||
|
|
||||||
|
Press <kbd>⌘</kbd>+<kbd>q</kbd> > Click `Terminate`
|
||||||
|
|
||||||
## The Passive Way
|
## The Passive Way
|
||||||
|
|
||||||
_**Walk away.**_
|
_**Walk away.**_
|
||||||
|
@ -390,4 +394,10 @@ Windows
|
||||||
Linux
|
Linux
|
||||||
```vim
|
```vim
|
||||||
:call libcallnr('libc.so.6', 'exit', 0)
|
:call libcallnr('libc.so.6', 'exit', 0)
|
||||||
|
|
||||||
|
## The canonical way
|
||||||
|
Credit: @ligurio
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:!q
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue