summaryrefslogtreecommitdiff
path: root/runtime/doc/quickfix.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-01-12 23:22:24 +0000
committerBram Moolenaar <Bram@vim.org>2006-01-12 23:22:24 +0000
commit4770d09abd866bb53d95895dc6a5c5fe7cccb619 (patch)
treeb9ca6f4a66c7591a84cfe88fb21edb31db906a4e /runtime/doc/quickfix.txt
parent1cbe5f739d4e75b5e16b85ae79ff0434a641b03d (diff)
downloadvim-git-4770d09abd866bb53d95895dc6a5c5fe7cccb619.tar.gz
updated for version 7.0179v7.0179
Diffstat (limited to 'runtime/doc/quickfix.txt')
-rw-r--r--runtime/doc/quickfix.txt30
1 files changed, 20 insertions, 10 deletions
diff --git a/runtime/doc/quickfix.txt b/runtime/doc/quickfix.txt
index 0049a5464..09eccb52e 100644
--- a/runtime/doc/quickfix.txt
+++ b/runtime/doc/quickfix.txt
@@ -1,4 +1,4 @@
-*quickfix.txt* For Vim version 7.0aa. Last change: 2005 Sep 27
+*quickfix.txt* For Vim version 7.0aa. Last change: 2006 Jan 11
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -110,8 +110,8 @@ The following quickfix commands can be used:
Read the error file. Just like ":cfile" but don't
jump to the first error.
- *:cad* *:caddfile*
-:cad[dfile] [errorfile] Read the error file and add the errors from the
+ *:caddf* *:caddfile*
+:caddf[ile] [errorfile] Read the error file and add the errors from the
errorfile to the current quickfix list. If a quickfix
list is not present, then a new list is created.
@@ -124,18 +124,28 @@ The following quickfix commands can be used:
Otherwise all lines in the buffer are used.
*:cex* *:cexpr*
-:cex[pr][!] {expr} Create a quickfix list using the result of {expr}.
- If {expr} is a String, then each new-line terminated
- line in the String is processed using 'errorformat'
- and the result is added to the quickfix list.
- If {expr} is a List, then each String item in the list
- is processed and added to the quickfix list.
- Non String items in the List are ignored. See |:cc|
+:cex[pr][!] {expr} Create a quickfix list using the result of {expr} and
+ jump to the first error. If {expr} is a String, then
+ each new-line terminated line in the String is
+ processed using 'errorformat' and the result is added
+ to the quickfix list. If {expr} is a List, then each
+ String item in the list is processed and added to the
+ quickfix list. Non String items in the List are
+ ignored. See |:cc|
for [!].
Examples: >
:cexpr system('grep -n xyz *')
:cexpr getline(1, '$')
<
+ *:cad* *:caddexpr*
+:cad[dexpr][!] {expr} Evaluate {expr} and add the resulting lines to the
+ current quickfix list. If a quickfix list is not
+ present, then a new list is created. The current
+ cursor position will not be changed. See |:cexpr| for
+ more information.
+ Example: >
+ :g/mypattern/caddexpr expand("%") . ":" . line(".") . ":" . getline(".")
+<
*:cl* *:clist*
:cl[ist] [from] [, [to]]
List all errors that are valid |quickfix-valid|.