-*change.txt* For Vim version 9.1. Last change: 2024 Oct 07
+*change.txt* For Vim version 9.1. Last change: 2024 Nov 12
VIM REFERENCE MANUAL by Bram Moolenaar
program {filter} (for {Visual} see |Visual-mode|).
:{range}![!]{filter} [!][arg] *:range!*
+ For executing external commands see |:!|
+
Filter {range} lines through the external program
{filter}. Vim replaces the optional bangs with the
latest given command and appends the optional [arg].
-*usr_10.txt* For Vim version 9.1. Last change: 2019 Nov 22
+*usr_10.txt* For Vim version 9.1. Last change: 2024 Nov 12
VIM USER MANUAL - by Bram Moolenaar
command prints the current time and date. "!!date<Enter>" replaces the current
line with the output of "date". This is useful to add a timestamp to a file.
+Note: There is a difference between "!cmd" (e.g. using it without any file
+range) and "{range}!cmd". While the former will simply execute the external
+command and Vim will show the output, the latter will filter {range}lines
+through the filter and replace that range by the result of the filter command.
+See |:!| and |:range!| for details.
WHEN IT DOESN'T WORK
-*various.txt* For Vim version 9.1. Last change: 2024 Oct 05
+*various.txt* For Vim version 9.1. Last change: 2024 Nov 12
VIM REFERENCE MANUAL by Bram Moolenaar
*:!cmd* *:!*
:!{cmd} Execute {cmd} with the shell. See also the 'shell'
- and 'shelltype' option.
+ and 'shelltype' option. For the filter command, see
+ |:range!|.
*E34*
Any '!' in {cmd} is replaced with the previous
external command (see also 'cpoptions'). But not when