mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-01 19:26:41 +02:00
Merge pull request #90 from Rynaro/rubist-way
Add Rubist using shell way
This commit is contained in:
commit
4a1a0882ac
1 changed files with 14 additions and 0 deletions
14
README.md
14
README.md
|
@ -46,6 +46,20 @@ Credit: @wodny
|
|||
3. Run `rim`.
|
||||
4. Exit `rim` using a borrowed command, ie. `:q!`.
|
||||
|
||||
## The lazy rubist using shell way
|
||||
Credit: @rynaro
|
||||
|
||||
```bash
|
||||
$ ruby -e 'system("killall -9 vim")'
|
||||
```
|
||||
|
||||
## The rubist way
|
||||
Credit: @rynaro
|
||||
|
||||
```bash
|
||||
$ ruby -e 'pid = `pidof vim`; Process.kill(9, pid.to_i)'
|
||||
```
|
||||
|
||||
## The Colon-less way
|
||||
Credit: @w181496
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue