aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/doc/change.txt2
-rw-r--r--runtime/doc/usr_10.txt5
-rw-r--r--runtime/doc/various.txt1
3 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 928b834600..768a449581 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -561,6 +561,8 @@ with ".". Vim does not recognize a comment (starting with '"') after the
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].
diff --git a/runtime/doc/usr_10.txt b/runtime/doc/usr_10.txt
index 3e45fda882..2f55aadef0 100644
--- a/runtime/doc/usr_10.txt
+++ b/runtime/doc/usr_10.txt
@@ -736,6 +736,11 @@ The "!!" command filters the current line through a filter. In Unix the "date"
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
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 52e38a9872..1ded5154a7 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -267,6 +267,7 @@ gx Opens the current filepath or URL (decided by
<
*:!cmd* *:!*
:!{cmd} Execute {cmd} with 'shell'. See also |:terminal|.
+ For the filter command, see |:range!|.
The command runs in a non-interactive shell connected
to a pipe (not a terminal). Use |:terminal| to run an