|
1 | | -*terminal.txt* For Vim version 9.1. Last change: 2024 Nov 19 |
| 1 | +*terminal.txt* For Vim version 9.1. Last change: 2024 Nov 23 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -197,6 +197,13 @@ Command syntax ~ |
197 | 197 | if [command] is NONE no job is started, the pty of the |
198 | 198 | terminal can be used by a command like gdb. |
199 | 199 |
|
| 200 | + *terminal-nospecial* |
| 201 | + Vim itself only recognizes |cmdline-special| |
| 202 | + characters inside [command]. Everything else will be |
| 203 | + passed untouched. When needed to expand wildcards, |
| 204 | + environment variables or other shell specials consider |
| 205 | + |term++shell| option. |
| 206 | + |
200 | 207 | If [command] is missing the default behavior is to |
201 | 208 | close the terminal when the shell exits. This can be |
202 | 209 | changed with the ++noclose argument. |
@@ -241,10 +248,16 @@ Command syntax ~ |
241 | 248 | no window will be used. |
242 | 249 | ++norestore Do not include this terminal window |
243 | 250 | in a session file. |
| 251 | + |
| 252 | + *term++shell* |
244 | 253 | ++shell Instead of executing {command} |
245 | 254 | directly, use a shell, like with |
246 | 255 | `:!command` *E279* |
247 | 256 | {only works on Unix and MS-Windows} |
| 257 | + The resulting command will look like |
| 258 | + 'shell' 'shellcmdflag' [command] |
| 259 | + Other options related to `:!command` |
| 260 | + have no effect. |
248 | 261 | ++kill={how} When trying to close the terminal |
249 | 262 | window kill the job with {how}. See |
250 | 263 | |term_setkill()| for the values. |
|
0 commit comments