diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-05-20 21:25:31 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-05-20 21:25:31 +0000 |
commit | 35c54e56513137e58a649983fbab6c490820462e (patch) | |
tree | be889f5f102662931bb883f401173a07d8778432 /runtime/doc/eval.txt | |
parent | c1087e64bcfece96de8fa812535154435bbaaba5 (diff) |
updated for version 7.0074
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 84571bbc45..159f17f00a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1582,7 +1582,7 @@ serverlist() String get a list of available servers setbufvar( {expr}, {varname}, {val}) set {varname} in buffer {expr} to {val} setcmdpos( {pos}) Number set cursor position in command-line setline( {lnum}, {line}) Number set line {lnum} to {line} -setqflist( {list} ) Number set list of quickfix items using {list} +setqflist( {list}[, {action}]) Number set list of quickfix items using {list} setreg( {n}, {v}[, {opt}]) Number set register to value and type setwinvar( {nr}, {varname}, {val}) set {varname} in window {nr} to {val} simplify( {filename}) String simplify filename as much as possible @@ -3604,7 +3604,7 @@ setline({lnum}, {line}) *setline()* < Note: The '[ and '] marks are not set. -setqflist({list}) *setqflist()* +setqflist({list} [, {action}]) *setqflist()* Creates a quickfix list using the items in {list}. Each item in {list} is a dictionary. Non-dictionary items in {list} are ignored. Each dictionary item can contain the following @@ -3629,6 +3629,13 @@ setqflist({list}) *setqflist()* If both "pattern" and "lnum" are present then "pattern" will be used. + If {action} is set to 'a', then the items from {list} are + added to the existing quickfix list. If there is no existing + list, then a new list is created. If {action} is set to 'r', + then the items from the current quickfix list are replaced + with the items from {list}. If {action} is not present or is + set to ' ', then a new list is created. + Returns zero for success, -1 for failure. This function can be used to create a quickfix list |