diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-03-16 22:54:53 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-03-16 22:54:53 +0100 |
commit | 1dd98334d6daee8abefcd640291d4b777d9f0f96 (patch) | |
tree | 7f0bfcf8f06d587200c0f5d8df496712cea50671 /runtime/doc/terminal.txt | |
parent | af23bad0fd05b1f6495287089387a1f97efa5b49 (diff) | |
download | vim-git-1dd98334d6daee8abefcd640291d4b777d9f0f96.tar.gz |
patch 8.0.1612: need to close terminal after shell stoppedv8.0.1612
Problem: Need to close terminal after shell stopped.
Solution: Make :terminal without argument close the window by default.
Diffstat (limited to 'runtime/doc/terminal.txt')
-rw-r--r-- | runtime/doc/terminal.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/terminal.txt b/runtime/doc/terminal.txt index d6c3d199f..f3f6a91bc 100644 --- a/runtime/doc/terminal.txt +++ b/runtime/doc/terminal.txt @@ -140,6 +140,13 @@ Syntax ~ if [command] is NONE no job is started, the pty of the terminal can be used by a command like gdb. + If [command] is missing the default behavior is to + close the terminal when the shell exits. This can be + changed with the ++noclose argument. + If [command] is present the default behavior is to + keep the terminal open in Terminal-Normal mode. This + can be changed with the ++close argument. + A new buffer will be created, using [command] or 'shell' as the name, prefixed with a "!". If a buffer by this name already exists a number is added in @@ -155,9 +162,14 @@ Syntax ~ Supported [options] are: ++close The terminal window will close automatically when the job terminates. + ++noclose The terminal window will NOT close + automatically when the job terminates. ++open When the job terminates and no window shows it, a window will be opened. Note that this can be interruptive. + The last of ++close, ++noclose and ++open + matters and rules out earlier arguments. + ++curwin Open the terminal in the current window, do not split the current window. Fails if the current buffer |