Mercurial > vim
comparison runtime/doc/various.txt @ 9941:e975914c17e9 v7.4.2244
commit https://github.com/vim/vim/commit/7b668e83d0635d082b7ec90d7d2aa30a9d7d8928
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 23 23:51:21 2016 +0200
patch 7.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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Wed, 24 Aug 2016 00:00:08 +0200 |
parents | 35ce559b8553 |
children | 8061455d9179 |
comparison
equal
deleted
inserted
replaced
9940:b7b5f6a8607e | 9941:e975914c17e9 |
---|---|
1 *various.txt* For Vim version 7.4. Last change: 2016 Jul 29 | 1 *various.txt* For Vim version 7.4. Last change: 2016 Aug 23 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
522 :redi[r] =>> {var} Append messages to an existing variable. Only string | 522 :redi[r] =>> {var} Append messages to an existing variable. Only string |
523 variables can be used. {not in Vi} | 523 variables can be used. {not in Vi} |
524 | 524 |
525 :redi[r] END End redirecting messages. {not in Vi} | 525 :redi[r] END End redirecting messages. {not in Vi} |
526 | 526 |
527 *:filt* *:filter* | |
528 :filt[er] {pat} {command} | |
529 :filt[er] /{pat}/ {command} | |
530 Restrict the output of {command} to matches with {pat}. | |
531 | |
532 {pat} is a Vim search pattern. Instead of enclosing | |
533 it in / any non-ID character (see |'isident'|) can be | |
534 used, so long as it does not appear in {pat}. Without | |
535 the enclosing character the pattern cannot include the | |
536 bar character. | |
537 | |
538 The pattern is matched against the relevant part of | |
539 the output, not necessarily the whole line. Only some | |
540 commands support filtering, try it out to check if it | |
541 works. | |
542 | |
543 Only normal messages are filtered, error messages are | |
544 not. | |
545 | |
527 *:sil* *:silent* *:silent!* | 546 *:sil* *:silent* *:silent!* |
528 :sil[ent][!] {command} Execute {command} silently. Normal messages will not | 547 :sil[ent][!] {command} Execute {command} silently. Normal messages will not |
529 be given or added to the message history. | 548 be given or added to the message history. |
530 When [!] is added, error messages will also be | 549 When [!] is added, error messages will also be |
531 skipped, and commands and mappings will not be aborted | 550 skipped, and commands and mappings will not be aborted |