summaryrefslogtreecommitdiff
path: root/runtime/doc/various.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-23 23:51:21 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-23 23:51:21 +0200
commit7b668e83d0635d082b7ec90d7d2aa30a9d7d8928 (patch)
tree5a766b46ad4395652cfe4d2545ee809047384fc9 /runtime/doc/various.txt
parent1b58cdd160c2e0ada0f638679a2aa27e4665fc48 (diff)
downloadvim-git-7b668e83d0635d082b7ec90d7d2aa30a9d7d8928.tar.gz
patch 7.4.2244v7.4.2244
Problem: Adding pattern to ":oldfiles" is not a generic solution. Solution: Add the ":filter /pat/ cmd" command modifier. Only works for some commands right now.
Diffstat (limited to 'runtime/doc/various.txt')
-rw-r--r--runtime/doc/various.txt21
1 files changed, 20 insertions, 1 deletions
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index d9cc94dc5..befc6aceb 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -1,4 +1,4 @@
-*various.txt* For Vim version 7.4. Last change: 2016 Jul 29
+*various.txt* For Vim version 7.4. Last change: 2016 Aug 23
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -524,6 +524,25 @@ N *+X11* Unix only: can restore window title |X11|
:redi[r] END End redirecting messages. {not in Vi}
+ *:filt* *:filter*
+:filt[er] {pat} {command}
+:filt[er] /{pat}/ {command}
+ Restrict the output of {command} to matches with {pat}.
+
+ {pat} is a Vim search pattern. Instead of enclosing
+ it in / any non-ID character (see |'isident'|) can be
+ used, so long as it does not appear in {pat}. Without
+ the enclosing character the pattern cannot include the
+ bar character.
+
+ The pattern is matched against the relevant part of
+ the output, not necessarily the whole line. Only some
+ commands support filtering, try it out to check if it
+ works.
+
+ Only normal messages are filtered, error messages are
+ not.
+
*:sil* *:silent* *:silent!*
:sil[ent][!] {command} Execute {command} silently. Normal messages will not
be given or added to the message history.