comparison runtime/doc/eval.txt @ 3682:11d40fc82f11

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 12 Jul 2012 22:01:11 +0200
parents 1b584a6f446c
children 536aa8b0c934
comparison
equal deleted inserted replaced
3681:d9573e846b47 3682:11d40fc82f11
1 *eval.txt* For Vim version 7.3. Last change: 2012 May 18 1 *eval.txt* For Vim version 7.3. Last change: 2012 Jul 10
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1878 pathshorten( {expr}) String shorten directory names in a path 1878 pathshorten( {expr}) String shorten directory names in a path
1879 pow( {x}, {y}) Float {x} to the power of {y} 1879 pow( {x}, {y}) Float {x} to the power of {y}
1880 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum} 1880 prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum}
1881 printf( {fmt}, {expr1}...) String format text 1881 printf( {fmt}, {expr1}...) String format text
1882 pumvisible() Number whether popup menu is visible 1882 pumvisible() Number whether popup menu is visible
1883 pyeval( {expr}) any evaluate |Python| expression
1884 py3eval( {expr}) any evaluate |python3| expression
1883 range( {expr} [, {max} [, {stride}]]) 1885 range( {expr} [, {max} [, {stride}]])
1884 List items from {expr} to {max} 1886 List items from {expr} to {max}
1885 readfile( {fname} [, {binary} [, {max}]]) 1887 readfile( {fname} [, {binary} [, {max}]])
1886 List get list of lines from file {fname} 1888 List get list of lines from file {fname}
1887 reltime( [{start} [, {end}]]) List get time value 1889 reltime( [{start} [, {end}]]) List get time value
3563 one of: *hist-names* 3565 one of: *hist-names*
3564 "cmd" or ":" command line history 3566 "cmd" or ":" command line history
3565 "search" or "/" search pattern history 3567 "search" or "/" search pattern history
3566 "expr" or "=" typed expression history 3568 "expr" or "=" typed expression history
3567 "input" or "@" input line history 3569 "input" or "@" input line history
3570 "debug" or ">" debug command history
3571 The {history} string does not need to be the whole name, one
3572 character is sufficient.
3568 If {item} does already exist in the history, it will be 3573 If {item} does already exist in the history, it will be
3569 shifted to become the newest entry. 3574 shifted to become the newest entry.
3570 The result is a Number: 1 if the operation was successful, 3575 The result is a Number: 1 if the operation was successful,
3571 otherwise 0 is returned. 3576 otherwise 0 is returned.
3572 3577
4031 |literal-string| to avoid having to double backslashes. You 4036 |literal-string| to avoid having to double backslashes. You
4032 still have to double ' quotes 4037 still have to double ' quotes
4033 4038
4034 The operation is done in-place. If you want a |List| or 4039 The operation is done in-place. If you want a |List| or
4035 |Dictionary| to remain unmodified make a copy first: > 4040 |Dictionary| to remain unmodified make a copy first: >
4036 :let tlist = map(copy(mylist), ' & . "\t"') 4041 :let tlist = map(copy(mylist), ' v:val . "\t"')
4037 4042
4038 < Returns {expr}, the |List| or |Dictionary| that was filtered. 4043 < Returns {expr}, the |List| or |Dictionary| that was filtered.
4039 When an error is encountered while evaluating {string} no 4044 When an error is encountered while evaluating {string} no
4040 further items in {expr} are processed. 4045 further items in {expr} are processed.
4041 4046
4607 pumvisible() *pumvisible()* 4612 pumvisible() *pumvisible()*
4608 Returns non-zero when the popup menu is visible, zero 4613 Returns non-zero when the popup menu is visible, zero
4609 otherwise. See |ins-completion-menu|. 4614 otherwise. See |ins-completion-menu|.
4610 This can be used to avoid some things that would remove the 4615 This can be used to avoid some things that would remove the
4611 popup menu. 4616 popup menu.
4617
4618 *E860* *E861*
4619 py3eval({expr}) *py3eval()*
4620 Evaluate Python expression {expr} and return its result
4621 converted to Vim data structures.
4622 Numbers and strings are returned as they are (strings are
4623 copied though, unicode strings are additionally converted to
4624 'encoding').
4625 Lists are represented as Vim |List| type.
4626 Dictionaries are represented as Vim |Dictionary| type with
4627 keys converted to strings.
4628 {only available when compiled with the |+python3| feature}
4629
4630 *E858* *E859*
4631 pyeval({expr}) *pyeval()*
4632 Evaluate Python expression {expr} and return its result
4633 converted to Vim data structures.
4634 Numbers and strings are returned as they are (strings are
4635 copied though).
4636 Lists are represented as Vim |List| type.
4637 Dictionaries are represented as Vim |Dictionary| type with
4638 keys converted to strings.
4639 {only available when compiled with the |+python| feature}
4612 4640
4613 *E726* *E727* 4641 *E726* *E727*
4614 range({expr} [, {max} [, {stride}]]) *range()* 4642 range({expr} [, {max} [, {stride}]]) *range()*
4615 Returns a |List| with Numbers: 4643 Returns a |List| with Numbers:
4616 - If only {expr} is specified: [0, 1, ..., {expr} - 1] 4644 - If only {expr} is specified: [0, 1, ..., {expr} - 1]
6217 balloon_eval Compiled with |balloon-eval| support. 6245 balloon_eval Compiled with |balloon-eval| support.
6218 balloon_multiline GUI supports multiline balloons. 6246 balloon_multiline GUI supports multiline balloons.
6219 beos BeOS version of Vim. 6247 beos BeOS version of Vim.
6220 browse Compiled with |:browse| support, and browse() will 6248 browse Compiled with |:browse| support, and browse() will
6221 work. 6249 work.
6250 browsefilter Compiled with support for |browsefilter|.
6222 builtin_terms Compiled with some builtin terminals. 6251 builtin_terms Compiled with some builtin terminals.
6223 byte_offset Compiled with support for 'o' in 'statusline' 6252 byte_offset Compiled with support for 'o' in 'statusline'
6224 cindent Compiled with 'cindent' support. 6253 cindent Compiled with 'cindent' support.
6225 clientserver Compiled with remote invocation support |clientserver|. 6254 clientserver Compiled with remote invocation support |clientserver|.
6226 clipboard Compiled with 'clipboard' support. 6255 clipboard Compiled with 'clipboard' support.