1- *eval.txt* For Vim version 8.0. Last change: 2017 Aug 13
1+ *eval.txt* For Vim version 8.0. Last change: 2017 Sep 11
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1449,7 +1449,7 @@ v:beval_text The text under or after the mouse pointer. Usually a word as
14491449 but a dot and "->" before the position is included. When on a
14501450 ']' the text before it is used, including the matching '[' and
14511451 word before it. When on a Visual area within one line the
1452- highlighted text is used.
1452+ highlighted text is used. Also see | <cexpr> | .
14531453 Only valid while evaluating the 'balloonexpr' option.
14541454
14551455 *v:beval_winnr* *beval_winnr-variable*
@@ -3301,7 +3301,7 @@ count({comp}, {expr} [, {ic} [, {start}]]) *count()*
33013301 When {ic} is given and it's | TRUE | then case is ignored.
33023302
33033303 When {comp} is a string then the number of not overlapping
3304- occurences of {expr} is returned.
3304+ occurrences of {expr} is returned.
33053305
33063306
33073307 *cscope_connection()*
@@ -3467,7 +3467,7 @@ escape({string}, {chars}) *escape()*
34673467 :echo escape('c:\program files\vim', ' \')
34683468< results in: >
34693469 c:\\program\ files\\vim
3470- < Also see | shellescape() | .
3470+ < Also see | shellescape() | and | fnameescape() | .
34713471
34723472 *eval()*
34733473eval({string} ) Evaluate {string} and return the result. Especially useful to
@@ -3887,7 +3887,7 @@ float2nr({expr}) *float2nr()*
38873887 When the value of {expr} is out of range for a | Number | the
38883888 result is truncated to 0x7fffffff or -0x7fffffff (or when
38893889 64-bit Number support is enabled, 0x7fffffffffffffff or
3890- -0x7fffffffffffffff. NaN results in -0x80000000 (or when
3890+ -0x7fffffffffffffff) . NaN results in -0x80000000 (or when
38913891 64-bit Number support is enabled, -0x8000000000000000).
38923892 Examples: >
38933893 echo float2nr(3.95)
@@ -4657,12 +4657,12 @@ getqflist([{what}]) *getqflist()*
46574657 If "nr" is not present then the current quickfix list is used.
46584658 If both "nr" and a non-zero "id" are specified, then the list
46594659 specified by "id" is used.
4660- To get the number of lists in the quickfix stack, set 'nr' to
4661- '$' in {what} . The 'nr' value in the returned dictionary
4660+ To get the number of lists in the quickfix stack, set "nr" to
4661+ "$" in {what} . The "nr" value in the returned dictionary
46624662 contains the quickfix stack size.
4663- When 'text' is specified, all the other items are ignored. The
4664- returned dictionary contains the entry 'items' with the list
4665- of entries.
4663+ When "lines" is specified, all the other items except "efm"
4664+ are ignored. The returned dictionary contains the entry
4665+ "items" with the list of entries.
46664666 In case of error processing {what} , an empty dictionary is
46674667 returned.
46684668
@@ -6967,6 +6967,7 @@ setline({lnum}, {text}) *setline()*
69676967 :for [n, l] in [[5, 'aaa'], [6, 'bbb'], [7, 'ccc']]
69686968 : call setline(n, l)
69696969 :endfor
6970+
69706971< Note: The '[ and '] marks are not set.
69716972
69726973setloclist({nr} , {list} [, {action} [, {what} ]]) *setloclist()*
@@ -7164,16 +7165,17 @@ setreg({regname}, {value} [, {options}])
71647165 :call setreg('a', "1\n2\n3", 'b5')
71657166
71667167< This example shows using the functions to save and restore a
7167- register (note: you may not reliably restore register value
7168- without using the third argument to | getreg() | as without it
7169- newlines are represented as newlines AND Nul bytes are
7170- represented as newlines as well, see | NL-used-for-Nul | ). >
7168+ register: >
71717169 :let var_a = getreg('a', 1, 1)
71727170 :let var_amode = getregtype('a')
71737171 ....
71747172 :call setreg('a', var_a, var_amode)
7173+ < Note: you may not reliably restore register value
7174+ without using the third argument to | getreg() | as without it
7175+ newlines are represented as newlines AND Nul bytes are
7176+ represented as newlines as well, see | NL-used-for-Nul | .
71757177
7176- < You can also change the type of a register by appending
7178+ You can also change the type of a register by appending
71777179 nothing: >
71787180 :call setreg('a', '', 'al')
71797181
@@ -8145,7 +8147,7 @@ term_start({cmd}, {options}) *term_start()*
81458147 are supported:
81468148 all timeout options
81478149 "stoponexit"
8148- "out_cb", "err_cb"
8150+ "callback", " out_cb", "err_cb"
81498151 "exit_cb", "close_cb"
81508152 "in_io", "in_top", "in_bot", "in_name", "in_buf"
81518153 "out_io", "out_name", "out_buf", "out_modifiable", "out_msg"
@@ -8165,6 +8167,7 @@ term_start({cmd}, {options}) *term_start()*
81658167 "curwin" use the current window, do not split the
81668168 window; fails if the current buffer
81678169 cannot be | abandon | ed
8170+ "hidden" do not open a window
81688171 "term_finish" What to do when the job is finished:
81698172 "close": close any windows
81708173 "open": open window if needed
@@ -8562,7 +8565,7 @@ win_getid([{win} [, {tab}]]) *win_getid()*
85628565 Get the | window-ID | for the specified window.
85638566 When {win} is missing use the current window.
85648567 With {win} this is the window number. The top window has
8565- number 1.
8568+ number 1. Use ` win_getid ( winnr ())` for the current window.
85668569 Without {tab} use the current tab, otherwise the tab with
85678570 number {tab} . The first tab has number one.
85688571 Return zero if the window cannot be found.
0 commit comments