mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 03:36:42 +02:00
Added "automatic garbage collector" way
This commit is contained in:
parent
a938a27524
commit
2c2548100e
1 changed files with 15 additions and 0 deletions
15
README.md
15
README.md
|
@ -295,3 +295,18 @@ Credit: @maxattax97
|
|||
```
|
||||
:while 1 | execute "terminal vim" | call feedkeys("i:terminal vim\<CR>") | endwhile
|
||||
```
|
||||
|
||||
## Let "automatic garbage collector" do it for you
|
||||
Credit: @artem-nefedov
|
||||
|
||||
Much like your favorite programming language, your OS has built-in garbage collector.
|
||||
It will close stuff for you, so you don't have to.
|
||||
|
||||
```
|
||||
^Z
|
||||
$ disown
|
||||
```
|
||||
|
||||
Now it's not your problem anymore.
|
||||
Process will close automatically upon next reboot/shutdown.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue