mirror of
https://github.com/hakluke/how-to-exit-vim.git
synced 2025-05-02 11:46:16 +02:00
Merge pull request #42 from artem-nefedov/master
Added "automatic garbage collector" way
This commit is contained in:
commit
929fd07b38
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