diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-09-21 19:02:03 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 19:02:03 -0400 |
commit | 78539dda95e058299be9840c412ae333bfe69e5b (patch) | |
tree | 56282565134f3f81ca42da101294fab69ae9762b /runtime/doc/quickfix.txt | |
parent | bd7360b39afce5c7b4e7665ee8e857ad07b050cd (diff) | |
parent | dc4f81b49c6c2662052e6de73c0342dd92b1b2f2 (diff) | |
download | rneovim-78539dda95e058299be9840c412ae333bfe69e5b.tar.gz rneovim-78539dda95e058299be9840c412ae333bfe69e5b.tar.bz2 rneovim-78539dda95e058299be9840c412ae333bfe69e5b.zip |
Merge pull request #12888 from nguymin4/update-cfilter
vim-patch: Update cfilter to 1.1
Diffstat (limited to 'runtime/doc/quickfix.txt')
-rw-r--r-- | runtime/doc/quickfix.txt | 39 |
1 files changed, 23 insertions, 16 deletions
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt index 61e090cc78..188cfc91b6 100644 --- a/runtime/doc/quickfix.txt +++ b/runtime/doc/quickfix.txt @@ -501,6 +501,29 @@ EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST: < Otherwise it works the same as `:ldo`. {not in Vi} +FILTERING A QUICKFIX OR LOCATION LIST: + *cfilter-plugin* *:Cfilter* *:Lfilter* +If you have too many entries in a quickfix list, you can use the cfilter +plugin to reduce the number of entries. Load the plugin with: > + + packadd cfilter + +Then you can use the following commands to filter a quickfix/location list: > + + :Cfilter[!] /{pat}/ + :Lfilter[!] /{pat}/ + +The |:Cfilter| command creates a new quickfix list from the entries matching +{pat} in the current quickfix list. {pat} is a Vim |regular-expression| +pattern. Both the file name and the text of the entries are matched against +{pat}. If the optional ! is supplied, then the entries not matching {pat} are +used. The pattern can be optionally enclosed using one of the following +characters: ', ", /. If the pattern is empty, then the last used search +pattern is used. + +The |:Lfilter| command does the same as |:Cfilter| but operates on the current +location list. + ============================================================================= 2. The error window *quickfix-window* @@ -1563,22 +1586,6 @@ The backslashes before the pipe character are required to avoid it to be recognized as a command separator. The backslash before each space is required for the set command. - *cfilter-plugin* *:Cfilter* *:Lfilter* -If you have too many matching messages, you can use the cfilter plugin to -reduce the number of entries. Load the plugin with: > - packadd cfilter - -Then you can use these command: > - :Cfilter[!] /{pat}/ - :Lfilter[!] /{pat}/ - -:Cfilter creates a new quickfix list from entries matching {pat} in the -current quickfix list. Both the file name and the text of the entries are -matched against {pat}. If ! is supplied, then entries not matching {pat} are -used. - -:Lfilter does the same as :Cfilter but operates on the current location list. - ============================================================================= 8. The directory stack *quickfix-directory-stack* |