comparison runtime/doc/eval.txt @ 216:da182deebec7

updated for version 7.0061
author vimboss
date Fri, 18 Mar 2005 20:25:31 +0000
parents d292c40ca788
children 9281a51ca7a2
comparison
equal deleted inserted replaced
215:a4029d1d83df 216:da182deebec7
1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Mar 15 1 *eval.txt* For Vim version 7.0aa. Last change: 2005 Mar 17
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
2381 2381
2382 getbufvar({expr}, {varname}) *getbufvar()* 2382 getbufvar({expr}, {varname}) *getbufvar()*
2383 The result is the value of option or local buffer variable 2383 The result is the value of option or local buffer variable
2384 {varname} in buffer {expr}. Note that the name without "b:" 2384 {varname} in buffer {expr}. Note that the name without "b:"
2385 must be used. 2385 must be used.
2386 This also works for a global or local window option, but it 2386 This also works for a global or buffer-local option, but it
2387 doesn't work for a global or local window variable. 2387 doesn't work for a global variable, window-local variable or
2388 window-local option.
2388 For the use of {expr}, see |bufname()| above. 2389 For the use of {expr}, see |bufname()| above.
2389 When the buffer or variable doesn't exist an empty string is 2390 When the buffer or variable doesn't exist an empty string is
2390 returned, there is no error message. 2391 returned, there is no error message.
2391 Examples: > 2392 Examples: >
2392 :let bufmodified = getbufvar(1, "&mod") 2393 :let bufmodified = getbufvar(1, "&mod")
2578 information is not available. 2579 information is not available.
2579 2580
2580 getwinvar({nr}, {varname}) *getwinvar()* 2581 getwinvar({nr}, {varname}) *getwinvar()*
2581 The result is the value of option or local window variable 2582 The result is the value of option or local window variable
2582 {varname} in window {nr}. 2583 {varname} in window {nr}.
2583 This also works for a global or local buffer option, but it 2584 This also works for a global option, buffer-local option and
2584 doesn't work for a global or local buffer variable. 2585 window-local option, but it doesn't work for a global variable
2586 or buffer-local variable.
2585 Note that the name without "w:" must be used. 2587 Note that the name without "w:" must be used.
2586 Examples: > 2588 Examples: >
2587 :let list_is_on = getwinvar(2, '&list') 2589 :let list_is_on = getwinvar(2, '&list')
2588 :echo "myvar = " . getwinvar(1, 'myvar') 2590 :echo "myvar = " . getwinvar(1, 'myvar')
2589 < 2591 <
3906 entry depends on the language specific 3908 entry depends on the language specific
3907 kind values generated by the ctags 3909 kind values generated by the ctags
3908 tool. 3910 tool.
3909 static a file specific tag. Refer to 3911 static a file specific tag. Refer to
3910 |static-tag| for more information. 3912 |static-tag| for more information.
3911 More entries may be present, depending on the content of the 3913 The "kind" entry is only available when using Exuberant ctags
3912 tags file: access, implementation, inherits and signature. 3914 generated tags file. More entries may be present, depending
3913 Refer to the ctags documentation for information about these 3915 on the content of the tags file: access, implementation,
3914 fields. For C code the fields "struct", "class" and "enum" 3916 inherits and signature. Refer to the ctags documentation for
3915 may appear, they give the name of the entity the tag is 3917 information about these fields. For C code the fields
3916 contained in. 3918 "struct", "class" and "enum" may appear, they give the name of
3919 the entity the tag is contained in.
3920
3921 The ex-command 'cmd' can be either an ex search pattern, a
3922 line number or a line number followed by a byte number.
3917 3923
3918 If there are no matching tags, then an empty list is returned. 3924 If there are no matching tags, then an empty list is returned.
3919 3925
3920 To get an exact tag match, the anchors '^' and '$' should be 3926 To get an exact tag match, the anchors '^' and '$' should be
3921 used in {expr}. Refer to |tag-regexp| for more information 3927 used in {expr}. Refer to |tag-regexp| for more information