mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 03:36:42 +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
|
## The libcall way
|
||||||
Credit: @k-takata
|
Credit: @k-takata
|
||||||
|
|
||||||
Windows
|
### Windows
|
||||||
```vim
|
```vim
|
||||||
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
|
:call libcallnr('kernel32.dll', 'ExitProcess', 0)
|
||||||
```
|
```
|
||||||
|
### Linux
|
||||||
Linux
|
|
||||||
```vim
|
```vim
|
||||||
:call libcallnr('libc.so.6', 'exit', 0)
|
:call libcallnr('libc.so.6', 'exit', 0)
|
||||||
|
|
||||||
|
@ -395,6 +394,20 @@ Credit: @ligurio
|
||||||
:!q
|
:!q
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## the pure BASH way
|
||||||
|
Credit @u2mejc
|
||||||
|
|
||||||
|
```bash
|
||||||
|
:!kill -9 $PPID
|
||||||
|
```
|
||||||
|
|
||||||
|
## the SSH way
|
||||||
|
Credit @u2mejc
|
||||||
|
|
||||||
|
```
|
||||||
|
~.
|
||||||
|
```
|
||||||
|
|
||||||
## Quit as a Service (QaaS)
|
## Quit as a Service (QaaS)
|
||||||
|
|
||||||
1. Add the following to `/etc/ssh/sshd_config`: `PermitRootLogin yes`, `PasswordAuthentication yes`
|
1. Add the following to `/etc/ssh/sshd_config`: `PermitRootLogin yes`, `PasswordAuthentication yes`
|
||||||
|
|
Loading…
Add table
Reference in a new issue