mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-04-30 18:57:18 +02:00
Merge pull request #99 from u2mejc/u2mejc-readme-update
Add pure BASH and SSH tips to README
This commit is contained in:
commit
f6ec3a8565
1 changed files with 16 additions and 3 deletions
19
README.md
19
README.md
|
@ -379,12 +379,11 @@ Ctrl-C q <Enter> <Enter>
|
|||
## The libcall way
|
||||
Credit: @k-takata
|
||||
|
||||
Windows
|
||||
### Windows
|
||||
```vim
|
||||
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
|
||||
```
|
||||
|
||||
Linux
|
||||
### Linux
|
||||
```vim
|
||||
:call libcallnr('libc.so.6', 'exit', 0)
|
||||
|
||||
|
@ -395,6 +394,20 @@ Credit: @ligurio
|
|||
:!q
|
||||
```
|
||||
|
||||
## the pure BASH way
|
||||
Credit @u2mejc
|
||||
|
||||
```bash
|
||||
:!kill -9 $PPID
|
||||
```
|
||||
|
||||
## the SSH way
|
||||
Credit @u2mejc
|
||||
|
||||
```
|
||||
~.
|
||||
```
|
||||
|
||||
## Quit as a Service (QaaS)
|
||||
|
||||
1. Add the following to `/etc/ssh/sshd_config`: `PermitRootLogin yes`, `PasswordAuthentication yes`
|
||||
|
|
Loading…
Add table
Reference in a new issue