comparison runtime/doc/eval.txt @ 648:9032e4668296 v7.0189

updated for version 7.0189
author vimboss
date Mon, 30 Jan 2006 00:14:18 +0000
parents 19106f131c87
children 662e40bd2be1
comparison
equal deleted inserted replaced
647:19106f131c87 648:9032e4668296
1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Jan 24 1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Jan 29
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2372 The operation is done in-place. If you want a List or 2372 The operation is done in-place. If you want a List or
2373 Dictionary to remain unmodified make a copy first: > 2373 Dictionary to remain unmodified make a copy first: >
2374 :let l = filter(copy(mylist), '& =~ "KEEP"') 2374 :let l = filter(copy(mylist), '& =~ "KEEP"')
2375 2375
2376 < Returns {expr}, the List or Dictionary that was filtered. 2376 < Returns {expr}, the List or Dictionary that was filtered.
2377 When an error is encountered while evaluating {string} no
2378 further items in {expr} are processed.
2377 2379
2378 2380
2379 finddir({name}[, {path}[, {count}]]) *finddir()* 2381 finddir({name}[, {path}[, {count}]]) *finddir()*
2380 Find directory {name} in {path}. 2382 Find directory {name} in {path}.
2381 If {path} is omitted or empty then 'path' is used. 2383 If {path} is omitted or empty then 'path' is used.
2698 2700
2699 getloclist({nr}) *getloclist()* 2701 getloclist({nr}) *getloclist()*
2700 Returns a list with all the entries in the location list for 2702 Returns a list with all the entries in the location list for
2701 window {nr}. When {nr} is zero the current window is used. 2703 window {nr}. When {nr} is zero the current window is used.
2702 For a location list window, the displayed location list is 2704 For a location list window, the displayed location list is
2703 returned. Otherwise, same as getqflist(). 2705 returned. For an invalid window number {nr}, an empty list is
2706 returned. Otherwise, same as getqflist().
2704 2707
2705 getqflist() *getqflist()* 2708 getqflist() *getqflist()*
2706 Returns a list with all the current quickfix errors. Each 2709 Returns a list with all the current quickfix errors. Each
2707 list item is a dictionary with these entries: 2710 list item is a dictionary with these entries:
2708 bufnr number of buffer that has the file name, use 2711 bufnr number of buffer that has the file name, use
3261 The operation is done in-place. If you want a List or 3264 The operation is done in-place. If you want a List or
3262 Dictionary to remain unmodified make a copy first: > 3265 Dictionary to remain unmodified make a copy first: >
3263 :let tlist = map(copy(mylist), ' & . "\t"') 3266 :let tlist = map(copy(mylist), ' & . "\t"')
3264 3267
3265 < Returns {expr}, the List or Dictionary that was filtered. 3268 < Returns {expr}, the List or Dictionary that was filtered.
3269 When an error is encountered while evaluating {string} no
3270 further items in {expr} are processed.
3266 3271
3267 3272
3268 maparg({name}[, {mode}]) *maparg()* 3273 maparg({name}[, {mode}]) *maparg()*
3269 Return the rhs of mapping {name} in mode {mode}. When there 3274 Return the rhs of mapping {name} in mode {mode}. When there
3270 is no mapping for {name}, an empty String is returned. 3275 is no mapping for {name}, an empty String is returned.
3980 < Note: The '[ and '] marks are not set. 3985 < Note: The '[ and '] marks are not set.
3981 3986
3982 setloclist({nr}, {list} [, {action}]) *setloclist()* 3987 setloclist({nr}, {list} [, {action}]) *setloclist()*
3983 Create or replace or add to the location list for window {nr}. 3988 Create or replace or add to the location list for window {nr}.
3984 When {nr} is zero the current window is used. For a location 3989 When {nr} is zero the current window is used. For a location
3985 list window, the displayed location list is modified. 3990 list window, the displayed location list is modified. For an
3991 invalid window number {nr}, -1 is returned.
3986 Otherwise, same as setqflist(). 3992 Otherwise, same as setqflist().
3987 3993
3988 setqflist({list} [, {action}]) *setqflist()* 3994 setqflist({list} [, {action}]) *setqflist()*
3989 Create or replace or add to the quickfix list using the items 3995 Create or replace or add to the quickfix list using the items
3990 in {list}. Each item in {list} is a dictionary. 3996 in {list}. Each item in {list} is a dictionary.
4409 4415
4410 taglist({expr}) *taglist()* 4416 taglist({expr}) *taglist()*
4411 Returns a list of tags matching the regular expression {expr}. 4417 Returns a list of tags matching the regular expression {expr}.
4412 Each list item is a dictionary with at least the following 4418 Each list item is a dictionary with at least the following
4413 entries: 4419 entries:
4414 name name of the tag. 4420 name Name of the tag.
4415 filename name of the file where the tag is 4421 filename Name of the file where the tag is
4416 defined. 4422 defined.
4417 cmd Ex command used to locate the tag in 4423 cmd Ex command used to locate the tag in
4418 the file. 4424 the file.
4419 kind type of the tag. The value for this 4425 kind Type of the tag. The value for this
4420 entry depends on the language specific 4426 entry depends on the language specific
4421 kind values generated by the ctags 4427 kind values generated by the ctags
4422 tool. 4428 tool.
4423 static a file specific tag. Refer to 4429 static A file specific tag. Refer to
4424 |static-tag| for more information. 4430 |static-tag| for more information.
4425 The "kind" entry is only available when using Exuberant ctags 4431 The "kind" entry is only available when using Exuberant ctags
4426 generated tags file. More entries may be present, depending 4432 generated tags file. More entries may be present, depending
4427 on the content of the tags file: access, implementation, 4433 on the content of the tags file: access, implementation,
4428 inherits and signature. Refer to the ctags documentation for 4434 inherits and signature. Refer to the ctags documentation for