|
1 |
| -*various.txt* For Vim version 9.1. Last change: 2024 Nov 12 |
| 1 | +*various.txt* For Vim version 9.1. Last change: 2024 Nov 23 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -256,6 +256,17 @@ g8 Print the hex values of the bytes used in the
|
256 | 256 | :!{cmd} Execute {cmd} with the shell. See also the 'shell'
|
257 | 257 | and 'shelltype' option. For the filter command, see
|
258 | 258 | |:range!|.
|
| 259 | + |
| 260 | + Vim builds command line using options 'shell', 'shcf', |
| 261 | + 'sxq' and 'shq' in the following order: |
| 262 | + `&sh &shcf &sxq &shq {cmd} &shq &sxq` |
| 263 | + So setting both 'sxq' and 'shq' is possible but rarely |
| 264 | + useful. Additional escaping inside `{cmd}` may also |
| 265 | + be due to 'sxe' option. |
| 266 | + |
| 267 | + Also, all |cmdline-special| characters in {cmd} are |
| 268 | + replaced by Vim before passing them to shell. |
| 269 | + |
259 | 270 | *E34*
|
260 | 271 | Any '!' in {cmd} is replaced with the previous
|
261 | 272 | external command (see also 'cpoptions'). But not when
|
@@ -306,7 +317,10 @@ g8 Print the hex values of the bytes used in the
|
306 | 317 | CTRL-L or ":redraw!" if the command did display
|
307 | 318 | something. However, this depends on what the |t_ti|
|
308 | 319 | and |t_te| termcap entries are set to.
|
309 |
| - Also see |shell-window|. |
| 320 | + |
| 321 | + Hint: use |:terminal| command if you want to run {cmd} |
| 322 | + in Vim window. `:term ++shell ++close {cmd}` could |
| 323 | + serve as close approximation to what `:!{cmd}` does. |
310 | 324 |
|
311 | 325 | *:!!*
|
312 | 326 | :!! Repeat last ":!{cmd}".
|
|
0 commit comments