Merge branch 'master' into ansible_way

This commit is contained in:
Luke Stephens (hakluke) 2020-02-05 01:24:44 +10:00 committed by GitHub
commit ad10ae186e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.*