aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/various.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/various.txt')
-rw-r--r--runtime/doc/various.txt15
1 files changed, 11 insertions, 4 deletions
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 8ddfdf272f..05770587a5 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -223,11 +223,18 @@ g8 Print the hex values of the bytes used in the
:sh[ell] Removed. |vim-differences| {Nvim}
*:term* *:terminal*
-:term[inal][!] {cmd} Spawns {command} using the current value of 'shell'
- in a new terminal buffer. This is equivalent to: >
-
- :enew | call termopen('{cmd}') | startinsert
+:term[inal][!] {cmd} Spawns {cmd} using the current value of 'shell' and
+ 'shellcmdflag' in a new terminal buffer. This is
+ equivalent to: >
+
+ :enew
+ :call termopen([&sh, &shcf, '{cmd}'],
+ \{'name':'{cmd}'})
+ :startinsert
<
+ If no {cmd} is given, 'shellcmdflag' will not be sent
+ to |termopen()|.
+
Like |:enew|, it will fail if the current buffer is
modified, but can be forced with "!". See |termopen()|
and |nvim-terminal-emulator| for more information.