Mercurial > vim
comparison runtime/doc/terminal.txt @ 18402:527b7084c556 v8.1.2195
patch 8.1.2195: Vim does not exit when the terminal window is last window
Commit: https://github.com/vim/vim/commit/4d14bac8e7441368977e81266166f728105a60d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 20 21:15:15 2019 +0200
patch 8.1.2195: Vim does not exit when the terminal window is last window
Problem: Vim does not exit when closing a terminal window and it is the
last window.
Solution: Exit Vim if the closed terminal window is the last one.
(closes #4539)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 20 Oct 2019 21:30:03 +0200 |
parents | 375a7ecdb351 |
children | 6d11fc4aa683 |
comparison
equal
deleted
inserted
replaced
18401:d1bb50cdb9ad | 18402:527b7084c556 |
---|---|
191 | 191 |
192 *term++close* *term++open* | 192 *term++close* *term++open* |
193 Supported [options] are: | 193 Supported [options] are: |
194 ++close The terminal window will close | 194 ++close The terminal window will close |
195 automatically when the job terminates. | 195 automatically when the job terminates. |
196 |terminal-close| | |
196 ++noclose The terminal window will NOT close | 197 ++noclose The terminal window will NOT close |
197 automatically when the job terminates. | 198 automatically when the job terminates. |
198 ++open When the job terminates and no window | 199 ++open When the job terminates and no window |
199 shows it, a window will be opened. | 200 shows it, a window will be opened. |
200 Note that this can be interruptive. | 201 Note that this can be interruptive. |
264 | 265 |
265 You can use `CTRL-W :hide` to close the terminal window and make the buffer | 266 You can use `CTRL-W :hide` to close the terminal window and make the buffer |
266 hidden, the job keeps running. The `:buffer` command can be used to turn the | 267 hidden, the job keeps running. The `:buffer` command can be used to turn the |
267 current window into a terminal window. If there are unsaved changes this | 268 current window into a terminal window. If there are unsaved changes this |
268 fails, use ! to force, as usual. | 269 fails, use ! to force, as usual. |
270 | |
271 *terminal-close* | |
272 When the terminal window is closed, e.g. when the shell exits and "++close" | |
273 argument was used, and this is the last normal Vim window, then Vim will exit. | |
274 This is like using |:quit| in a normal window. Help and preview windows are | |
275 not counted. | |
269 | 276 |
270 To have a background job run without a window, and open the window when it's | 277 To have a background job run without a window, and open the window when it's |
271 done, use options like this: > | 278 done, use options like this: > |
272 :term ++hidden ++open make | 279 :term ++hidden ++open make |
273 Note that the window will open at an unexpected moment, this will interrupt | 280 Note that the window will open at an unexpected moment, this will interrupt |