Mercurial > vim
comparison runtime/doc/quickfix.txt @ 446:7472c565592a v7.0117
updated for version 7.0117
author | vimboss |
---|---|
date | Wed, 27 Jul 2005 21:13:01 +0000 |
parents | c773cb978acf |
children | 52e76e2b5b65 |
comparison
equal
deleted
inserted
replaced
445:c773cb978acf | 446:7472c565592a |
---|---|
1 *quickfix.txt* For Vim version 7.0aa. Last change: 2005 Jul 25 | 1 *quickfix.txt* For Vim version 7.0aa. Last change: 2005 Jul 27 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
108 *:cg* *:cgetfile* | 108 *:cg* *:cgetfile* |
109 :cg[etfile][!] [errorfile] | 109 :cg[etfile][!] [errorfile] |
110 Read the error file. Just like ":cfile" but don't | 110 Read the error file. Just like ":cfile" but don't |
111 jump to the first error. | 111 jump to the first error. |
112 | 112 |
113 *:cad* *:caddfile* | |
114 :cad[dfile] [errorfile] Read the error file and add the errors from the | |
115 errorfile to the current quickfix list. If a quickfix | |
116 list is not present, then a new list is created. | |
117 | |
113 *:cb* *:cbuffer* *E681* | 118 *:cb* *:cbuffer* *E681* |
114 :cb[uffer] [bufnr] Read the error list from the current buffer. | 119 :cb[uffer] [bufnr] Read the error list from the current buffer. |
115 When [bufnr] is given it must be the number of a | 120 When [bufnr] is given it must be the number of a |
116 loaded buffer. That buffer will then be used instead | 121 loaded buffer. That buffer will then be used instead |
117 of the current buffer. | 122 of the current buffer. |
118 A range can be specified for the lines to be used. | 123 A range can be specified for the lines to be used. |
119 Otherwise all lines in the buffer are used. | 124 Otherwise all lines in the buffer are used. |
120 | 125 |
126 *:cex* *:cexpr* | |
127 :cex[pr][!] {expr} Create a quickfix list using the result of {expr}. | |
128 If {expr} is a String, then each new-line terminated | |
129 line in the String is processed using 'errorformat' | |
130 and the result is added to the quickfix list. | |
131 If {expr} is a List, then each String item in the list | |
132 is processed and added to the quickfix list. | |
133 Non String items in the List are ignored. See |:cc| | |
134 for [!]. | |
135 Examples: > | |
136 :cexpr system('grep -n xyz *') | |
137 :cexpr getline(1, '$') | |
138 < | |
121 *:cl* *:clist* | 139 *:cl* *:clist* |
122 :cl[ist] [from] [, [to]] | 140 :cl[ist] [from] [, [to]] |
123 List all errors that are valid |quickfix-valid|. | 141 List all errors that are valid |quickfix-valid|. |
124 If numbers [from] and/or [to] are given, the respective | 142 If numbers [from] and/or [to] are given, the respective |
125 range of errors is listed. A negative number counts | 143 range of errors is listed. A negative number counts |