comparison runtime/doc/eval.txt @ 16267:b471858040bc

Update runtime files. commit https://github.com/vim/vim/commit/62e1bb4a111e7ce570c30965f40a68a07a9da5b0 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 8 16:25:07 2019 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Mon, 08 Apr 2019 16:30:06 +0200
parents 219c58b3879c
children 243cdc183ec9
comparison
equal deleted inserted replaced
16266:a904f7ffa001 16267:b471858040bc
1 *eval.txt* For Vim version 8.1. Last change: 2019 Apr 04 1 *eval.txt* For Vim version 8.1. Last change: 2019 Apr 06
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1042 1042
1043 expr7 * expr7 Number multiplication *expr-star* 1043 expr7 * expr7 Number multiplication *expr-star*
1044 expr7 / expr7 Number division *expr-/* 1044 expr7 / expr7 Number division *expr-/*
1045 expr7 % expr7 Number modulo *expr-%* 1045 expr7 % expr7 Number modulo *expr-%*
1046 1046
1047 For all, except ".", Strings are converted to Numbers. 1047 For all, except "." and "..", Strings are converted to Numbers.
1048 For bitwise operators see |and()|, |or()| and |xor()|. 1048 For bitwise operators see |and()|, |or()| and |xor()|.
1049 1049
1050 Note the difference between "+" and ".": 1050 Note the difference between "+" and ".":
1051 "123" + "456" = 579 1051 "123" + "456" = 579
1052 "123" . "456" = "123456" 1052 "123" . "456" = "123456"
2506 pyeval({expr}) any evaluate |Python| expression 2506 pyeval({expr}) any evaluate |Python| expression
2507 py3eval({expr}) any evaluate |python3| expression 2507 py3eval({expr}) any evaluate |python3| expression
2508 pyxeval({expr}) any evaluate |python_x| expression 2508 pyxeval({expr}) any evaluate |python_x| expression
2509 range({expr} [, {max} [, {stride}]]) 2509 range({expr} [, {max} [, {stride}]])
2510 List items from {expr} to {max} 2510 List items from {expr} to {max}
2511 readdir({directory} [, {expr}]) 2511 readdir({dir} [, {expr}]) List file names in {dir} selected by {expr}
2512 List file names on {dir} with evalating
2513 {expr}
2514 readfile({fname} [, {type} [, {max}]]) 2512 readfile({fname} [, {type} [, {max}]])
2515 List get list of lines from file {fname} 2513 List get list of lines from file {fname}
2516 reg_executing() String get the executing register name 2514 reg_executing() String get the executing register name
2517 reg_recording() String get the recording register name 2515 reg_recording() String get the recording register name
2518 reltime([{start} [, {end}]]) List get time value 2516 reltime([{start} [, {end}]]) List get time value
5396 Otherwise the result is a String and when there are several 5394 Otherwise the result is a String and when there are several
5397 matches, they are separated by <NL> characters. 5395 matches, they are separated by <NL> characters.
5398 5396
5399 If the expansion fails, the result is an empty String or List. 5397 If the expansion fails, the result is an empty String or List.
5400 5398
5399 You can also use |readdir()| if you need to do complicated
5400 things, such as limiting the number of matches.
5401
5401 A name for a non-existing file is not included. A symbolic 5402 A name for a non-existing file is not included. A symbolic
5402 link is only included if it points to an existing file. 5403 link is only included if it points to an existing file.
5403 However, when the {alllinks} argument is present and it is 5404 However, when the {alllinks} argument is present and it is
5404 |TRUE| then all symbolic links are included. 5405 |TRUE| then all symbolic links are included.
5405 5406
7277 range(2, 0) " error! 7278 range(2, 0) " error!
7278 < 7279 <
7279 *readdir()* 7280 *readdir()*
7280 readdir({directory} [, {expr}]) 7281 readdir({directory} [, {expr}])
7281 Return a list with file and directory names in {directory}. 7282 Return a list with file and directory names in {directory}.
7283 You can also use |glob()| if you don't need to do complicated
7284 things, such as limiting the number of matches.
7282 7285
7283 When {expr} is omitted all entries are included. 7286 When {expr} is omitted all entries are included.
7284 When {expr} is given, it is evaluated to check what to do: 7287 When {expr} is given, it is evaluated to check what to do:
7285 If {expr} results in -1 then no further entries will 7288 If {expr} results in -1 then no further entries will
7286 be handled. 7289 be handled.
7342 Returns an empty string when no register is being executed. 7345 Returns an empty string when no register is being executed.
7343 See |@|. 7346 See |@|.
7344 7347
7345 reg_recording() *reg_recording()* 7348 reg_recording() *reg_recording()*
7346 Returns the single letter name of the register being recorded. 7349 Returns the single letter name of the register being recorded.
7347 Returns an empty string string when not recording. See |q|. 7350 Returns an empty string when not recording. See |q|.
7348 7351
7349 reltime([{start} [, {end}]]) *reltime()* 7352 reltime([{start} [, {end}]]) *reltime()*
7350 Return an item that represents a time value. The format of 7353 Return an item that represents a time value. The format of
7351 the item depends on the system. It can be passed to 7354 the item depends on the system. It can be passed to
7352 |reltimestr()| to convert it to a string or |reltimefloat()| 7355 |reltimestr()| to convert it to a string or |reltimefloat()|