Mercurial > vim
comparison runtime/doc/quickfix.txt @ 625:81fe2ccc1207 v7.0179
updated for version 7.0179
author | vimboss |
---|---|
date | Thu, 12 Jan 2006 23:22:24 +0000 |
parents | c6296b0ad9ea |
children | 732c7ae5743e |
comparison
equal
deleted
inserted
replaced
624:91e7d4a7b3b0 | 625:81fe2ccc1207 |
---|---|
1 *quickfix.txt* For Vim version 7.0aa. Last change: 2005 Sep 27 | 1 *quickfix.txt* For Vim version 7.0aa. Last change: 2006 Jan 11 |
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* | 113 *:caddf* *:caddfile* |
114 :cad[dfile] [errorfile] Read the error file and add the errors from the | 114 :caddf[ile] [errorfile] Read the error file and add the errors from the |
115 errorfile to the current quickfix list. If a quickfix | 115 errorfile to the current quickfix list. If a quickfix |
116 list is not present, then a new list is created. | 116 list is not present, then a new list is created. |
117 | 117 |
118 *:cb* *:cbuffer* *E681* | 118 *:cb* *:cbuffer* *E681* |
119 :cb[uffer] [bufnr] Read the error list from the current buffer. | 119 :cb[uffer] [bufnr] Read the error list from the current buffer. |
122 of the current buffer. | 122 of the current buffer. |
123 A range can be specified for the lines to be used. | 123 A range can be specified for the lines to be used. |
124 Otherwise all lines in the buffer are used. | 124 Otherwise all lines in the buffer are used. |
125 | 125 |
126 *:cex* *:cexpr* | 126 *:cex* *:cexpr* |
127 :cex[pr][!] {expr} Create a quickfix list using the result of {expr}. | 127 :cex[pr][!] {expr} Create a quickfix list using the result of {expr} and |
128 If {expr} is a String, then each new-line terminated | 128 jump to the first error. If {expr} is a String, then |
129 line in the String is processed using 'errorformat' | 129 each new-line terminated line in the String is |
130 and the result is added to the quickfix list. | 130 processed using 'errorformat' and the result is added |
131 If {expr} is a List, then each String item in the list | 131 to the quickfix list. If {expr} is a List, then each |
132 is processed and added to the quickfix list. | 132 String item in the list is processed and added to the |
133 Non String items in the List are ignored. See |:cc| | 133 quickfix list. Non String items in the List are |
134 ignored. See |:cc| | |
134 for [!]. | 135 for [!]. |
135 Examples: > | 136 Examples: > |
136 :cexpr system('grep -n xyz *') | 137 :cexpr system('grep -n xyz *') |
137 :cexpr getline(1, '$') | 138 :cexpr getline(1, '$') |
139 < | |
140 *:cad* *:caddexpr* | |
141 :cad[dexpr][!] {expr} Evaluate {expr} and add the resulting lines to the | |
142 current quickfix list. If a quickfix list is not | |
143 present, then a new list is created. The current | |
144 cursor position will not be changed. See |:cexpr| for | |
145 more information. | |
146 Example: > | |
147 :g/mypattern/caddexpr expand("%") . ":" . line(".") . ":" . getline(".") | |
138 < | 148 < |
139 *:cl* *:clist* | 149 *:cl* *:clist* |
140 :cl[ist] [from] [, [to]] | 150 :cl[ist] [from] [, [to]] |
141 List all errors that are valid |quickfix-valid|. | 151 List all errors that are valid |quickfix-valid|. |
142 If numbers [from] and/or [to] are given, the respective | 152 If numbers [from] and/or [to] are given, the respective |