mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-23 05:46:29 +02:00
Merge branch 'master' into ansible_way
This commit is contained in:
commit
ad10ae186e
1 changed files with 9 additions and 7 deletions
16
README.md
16
README.md
|
@ -534,9 +534,10 @@ exit him
|
||||||
how exit vim
|
how exit vim
|
||||||
```
|
```
|
||||||
|
|
||||||
### Linux
|
## Linux
|
||||||
```vim
|
```vim
|
||||||
:call libcallnr('libc.so.6', 'exit', 0)
|
:call libcallnr('libc.so.6', 'exit', 0)
|
||||||
|
```
|
||||||
|
|
||||||
## The canonical way
|
## The canonical way
|
||||||
Credit: @ligurio
|
Credit: @ligurio
|
||||||
|
@ -667,7 +668,7 @@ echo "set modeline" >> .vimrc
|
||||||
## The Circuit Breaker Way
|
## The Circuit Breaker Way
|
||||||
Credit:@Tomcat-42
|
Credit:@Tomcat-42
|
||||||
|
|
||||||
1. Smoothly leave your computer
|
1. Leave your computer
|
||||||
2. Find the nearest electrical circuit breaker panel
|
2. Find the nearest electrical circuit breaker panel
|
||||||
3. Switch off and on the main breaker
|
3. Switch off and on the main breaker
|
||||||
4. Return to your computer
|
4. Return to your computer
|
||||||
|
@ -675,11 +676,6 @@ Credit:@Tomcat-42
|
||||||
|
|
||||||
**Note:** This approach prove itself ineffective against notebooks, desktops on a UPS or remote servers.
|
**Note:** This approach prove itself ineffective against notebooks, desktops on a UPS or remote servers.
|
||||||
|
|
||||||
## The Permanent Way
|
|
||||||
Credit: @jofftiquez
|
|
||||||
|
|
||||||
***Quit software engineering for good.***
|
|
||||||
|
|
||||||
## The Ansible Way
|
## The Ansible Way
|
||||||
Credit: @lpmi-13
|
Credit: @lpmi-13
|
||||||
|
|
||||||
|
@ -714,3 +710,9 @@ run vim.yml playbook with the following contents:
|
||||||
- name: Quit Vim.
|
- name: Quit Vim.
|
||||||
shell: "(pkill vim)"
|
shell: "(pkill vim)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The Stack Overflow Way
|
||||||
|
Credit: @cobaltblu27
|
||||||
|
|
||||||
|
*Yeah exiting vim is really frustrating sometimes. You should definately try using Neovim. It's fast, has terminal emulator, and also supports plugin that will help you exit vim.*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue