Mercurial > vim
comparison runtime/doc/quickfix.txt @ 13051:a6d3e2081544
Update runtime files
commit https://github.com/vim/vim/commit/f0b03c4e98f8a7184d8b4a5d702cbcd602426923
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 17 17:17:07 2017 +0100
Update runtime files
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Dec 2017 17:30:05 +0100 |
parents | e47e70300f30 |
children | 6479dadcf214 |
comparison
equal
deleted
inserted
replaced
13050:2615e7a87cb2 | 13051:a6d3e2081544 |
---|---|
1 *quickfix.txt* For Vim version 8.0. Last change: 2017 Sep 13 | 1 *quickfix.txt* For Vim version 8.0. Last change: 2017 Dec 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
361 *quickfix-context* | 361 *quickfix-context* |
362 Any Vim type can be associated as a context with a quickfix or location list. | 362 Any Vim type can be associated as a context with a quickfix or location list. |
363 The |setqflist()| and the |setloclist()| functions can be used to associate a | 363 The |setqflist()| and the |setloclist()| functions can be used to associate a |
364 context with a quickfix and a location list respectively. The |getqflist()| | 364 context with a quickfix and a location list respectively. The |getqflist()| |
365 and the |getloclist()| functions can be used to retrieve the context of a | 365 and the |getloclist()| functions can be used to retrieve the context of a |
366 quickifx and a location list respectively. This is useful for a Vim plugin | 366 quickfix and a location list respectively. This is useful for a Vim plugin |
367 dealing with multiple quickfix/location lists. | 367 dealing with multiple quickfix/location lists. |
368 Examples: > | 368 Examples: > |
369 | 369 |
370 let somectx = {'name' : 'Vim', 'type' : 'Editor'} | 370 let somectx = {'name' : 'Vim', 'type' : 'Editor'} |
371 call setqflist([], 'a', {'context' : somectx}) | 371 call setqflist([], 'a', {'context' : somectx}) |
374 let newctx = ['red', 'green', 'blue'] | 374 let newctx = ['red', 'green', 'blue'] |
375 call setloclist(2, [], 'a', {'id' : qfid, 'context' : newctx}) | 375 call setloclist(2, [], 'a', {'id' : qfid, 'context' : newctx}) |
376 echo getloclist(2, {'id' : qfid, 'context' : 1}) | 376 echo getloclist(2, {'id' : qfid, 'context' : 1}) |
377 < | 377 < |
378 *quickfix-parse* | 378 *quickfix-parse* |
379 You can parse a list of lines using 'erroformat' without creating or modifying | 379 You can parse a list of lines using 'errorformat' without creating or |
380 a quickfix list using the |getqflist()| function. Examples: > | 380 modifying a quickfix list using the |getqflist()| function. Examples: > |
381 echo getqflist({'lines' : ["F1:10:Line10", "F2:20:Line20"]}) | 381 echo getqflist({'lines' : ["F1:10:Line10", "F2:20:Line20"]}) |
382 echo getqflist({'lines' : systemlist('grep -Hn quickfix *')}) | 382 echo getqflist({'lines' : systemlist('grep -Hn quickfix *')}) |
383 This returns a dictionary where the 'items' key contains the list of quickfix | 383 This returns a dictionary where the 'items' key contains the list of quickfix |
384 entries parsed from lines. The following shows how to use a custom | 384 entries parsed from lines. The following shows how to use a custom |
385 'errorformat' to parse the lines without modifying the 'erroformat' option: > | 385 'errorformat' to parse the lines without modifying the 'errorformat' option: > |
386 echo getqflist({'efm' : '%f#%l#%m', 'lines' : ['F1#10#Line']}) | 386 echo getqflist({'efm' : '%f#%l#%m', 'lines' : ['F1#10#Line']}) |
387 < | 387 < |
388 | 388 |
389 EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST: | 389 EXECUTE A COMMAND IN ALL THE BUFFERS IN QUICKFIX OR LOCATION LIST: |
390 *:cdo* | 390 *:cdo* |