~ubuntu-branches/debian/sid/neovim/sid

« back to all changes in this revision

Viewing changes to runtime/doc/quickfix.txt

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2016-02-20 22:41:32 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: package-import@ubuntu.com-20160220224132-e24n8lh3yo5ylt23
Tags: upstream-0.1.2
ImportĀ upstreamĀ versionĀ 0.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
291
291
 
292
292
        au QuickfixCmdPost make call QfMakeConv()
293
293
 
 
294
EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST:
 
295
                                                        *:cdo*
 
296
:cdo[!] {cmd}           Execute {cmd} in each valid entry in the quickfix list.
 
297
                        It works like doing this: >
 
298
                                :cfirst
 
299
                                :{cmd}
 
300
                                :cnext
 
301
                                :{cmd}
 
302
                                etc.
 
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
 
308
                        the current buffer.
 
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
 
314
                        each buffer.
 
315
                        Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
 
316
                        |:ldo|, |:cfdo| and |:lfdo|.
 
317
 
 
318
                                                        *:cfdo*
 
319
:cfdo[!] {cmd}          Execute {cmd} in each file in the quickfix list.
 
320
                        It works like doing this: >
 
321
                                :cfirst
 
322
                                :{cmd}
 
323
                                :cnfile
 
324
                                :{cmd}
 
325
                                etc.
 
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
 
331
                        the current buffer.
 
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
 
337
                        each buffer.
 
338
                        Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
 
339
                        |:cdo|, |:ldo| and |:lfdo|.
 
340
 
 
341
                                                        *:ldo*
 
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: >
 
345
                                :lfirst
 
346
                                :{cmd}
 
347
                                :lnext
 
348
                                :{cmd}
 
349
                                etc.
 
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
 
355
                        the current buffer.
 
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
 
361
                        each buffer.
 
362
                        Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
 
363
                        |:cdo|, |:cfdo| and |:lfdo|.
 
364
 
 
365
                                                        *:lfdo*
 
366
:lfdo[!] {cmd}          Execute {cmd} in each file in the location list for
 
367
                        the current window.
 
368
                        It works like doing this: >
 
369
                                :lfirst
 
370
                                :{cmd}
 
371
                                :lnfile
 
372
                                :{cmd}
 
373
                                etc.
 
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
 
379
                        the current buffer.
 
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
 
385
                        each buffer.
 
386
                        Also see |:bufdo|, |:tabdo|, |:argdo|, |:windo|,
 
387
                        |:cdo|, |:ldo| and |:cfdo|.
294
388
 
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\ $*\ $*
495
589
 
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.
501
595
 
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.
905
999
following the rest of the line is matched.  If "%f" is followed by a '%' or a
906
1000
backslash, it will look for a sequence of 'isfname' characters.
907
1001
 
908
 
On MS-DOS and MS-Windows a leading "C:" will be included in "%f", even when
909
 
using "%f:".  This means that a file name which is a single alphabetical
910
 
letter will not be detected.
 
1002
On Windows a leading "C:" will be included in "%f", even when using "%f:".
 
1003
This means that a file name which is a single alphabetical letter will not be
 
1004
detected.
911
1005
 
912
1006
The "%p" conversion is normally followed by a "^".  It's used for compilers
913
1007
that output a line like: >