292
292
au QuickfixCmdPost make call QfMakeConv()
294
EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
296
:cdo[!] {cmd} Execute {cmd} in each valid entry in the quickfix list.
297
It works like doing this: >
303
< When the current file can't be |abandon|ed and the [!]
304
is not present, the command fails.
305
When an error is detected on one buffer, further
306
buffers will not be visited.
307
The last buffer (or where an error occurred) becomes
309
{cmd} can contain '|' to concatenate several commands.
310
Only valid entries in the quickfix list are used.
311
Note: While this command is executing, the Syntax
312
autocommand event is disabled by adding it to
313
'eventignore'. This considerably speeds up editing
315
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
316
|:ldo|, |:cfdo| and |:lfdo|.
319
:cfdo[!] {cmd} Execute {cmd} in each file in the quickfix list.
320
It works like doing this: >
326
< When the current file can't be |abandon|ed and the [!]
327
is not present, the command fails.
328
When an error is detected on one buffer, further
329
buffers will not be visited.
330
The last buffer (or where an error occurred) becomes
332
{cmd} can contain '|' to concatenate several commands.
333
Only valid entries in the quickfix list are used.
334
Note: While this command is executing, the Syntax
335
autocommand event is disabled by adding it to
336
'eventignore'. This considerably speeds up editing
338
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
339
|:cdo|, |:ldo| and |:lfdo|.
342
:ld[o][!] {cmd} Execute {cmd} in each valid entry in the location list
343
for the current window.
344
It works like doing this: >
350
< When the current file can't be |abandon|ed and the [!]
351
is not present, the command fails.
352
When an error is detected on one buffer, further
353
buffers will not be visited.
354
The last buffer (or where an error occurred) becomes
356
{cmd} can contain '|' to concatenate several commands.
357
Only valid entries in the location list are used.
358
Note: While this command is executing, the Syntax
359
autocommand event is disabled by adding it to
360
'eventignore'. This considerably speeds up editing
362
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
363
|:cdo|, |:cfdo| and |:lfdo|.
366
:lfdo[!] {cmd} Execute {cmd} in each file in the location list for
368
It works like doing this: >
374
< When the current file can't be |abandon|ed and the [!]
375
is not present, the command fails.
376
When an error is detected on one buffer, further
377
buffers will not be visited.
378
The last buffer (or where an error occurred) becomes
380
{cmd} can contain '|' to concatenate several commands.
381
Only valid entries in the location list are used.
382
Note: While this command is executing, the Syntax
383
autocommand event is disabled by adding it to
384
'eventignore'. This considerably speeds up editing
386
Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
387
|:cdo|, |:ldo| and |:cfdo|.
295
389
=============================================================================
296
390
2. The error window *quickfix-window*
493
587
"$*" can be given multiple times, for example: >
494
588
:set makeprg=gcc\ -o\ $*\ $*
496
The 'shellpipe' option defaults to ">" for MS-DOS and Win32. This means that
497
the output of the compiler is saved in a file and not shown on the screen
498
directly. For Unix "| tee" is used. The compiler output is shown on the
499
screen and saved in a file the same time. Depending on the shell used "|&
500
tee" or "2>&1| tee" is the default, so stderr output will be included.
590
The 'shellpipe' option defaults to ">" on Windows. This means that the output
591
of the compiler is saved in a file and not shown on the screen directly. For
592
Unix "| tee" is used. The compiler output is shown on the screen and saved in
593
a file the same time. Depending on the shell used "|& tee" or "2>&1| tee" is
594
the default, so stderr output will be included.
502
596
If 'shellpipe' is empty, the {errorfile} part will be omitted. This is useful
503
597
for compilers that write to an errorfile themselves.