Mercurial > vim
diff runtime/doc/builtin.txt @ 31028:5acd6f02ea35
Update runtime files
Commit: https://github.com/vim/vim/commit/76db9e076318cb0ae846f43b7549ad4f2d234c0b
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Nov 9 21:21:04 2022 +0000
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 09 Nov 2022 22:30:09 +0100 |
parents | eb145a4d6bf8 |
children | 1a32f1a4f823 |
line wrap: on
line diff
--- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.0. Last change: 2022 Oct 21 +*builtin.txt* For Vim version 9.0. Last change: 2022 Nov 09 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1321,7 +1321,8 @@ bufwinid({buf}) *bufwinid()* echo "A window containing buffer 1 is " .. (bufwinid(1)) < - Only deals with the current tab page. + Only deals with the current tab page. See |win_findbuf()| for + finding more. Can also be used as a |method|: > FindBuffer()->bufwinid() @@ -1589,7 +1590,7 @@ col({expr}) The result is a Number, whic column is one higher if the cursor is after the end of the line. Also, when using a <Cmd> mapping the cursor isn't moved, this can be used to obtain the column in Insert mode: > - :imap <F2> <Cmd>echo col(".")<CR> + :imap <F2> <Cmd>echowin col(".")<CR> < Can also be used as a |method|: > GetPos()->col() @@ -2773,7 +2774,7 @@ flattennew({list} [, {maxdepth}]) *fla float2nr({expr}) *float2nr()* Convert {expr} to a Number by omitting the part after the decimal point. - {expr} must evaluate to a |Float| or a Number. + {expr} must evaluate to a |Float| or a |Number|. Returns 0 if {expr} is not a |Float| or a |Number|. When the value of {expr} is out of range for a |Number| the result is truncated to 0x7fffffff or -0x7fffffff (or when @@ -10204,6 +10205,7 @@ win_move_separator({nr}, {offset}) *wi FALSE otherwise. This will fail for the rightmost window and a full-width window, since it has no separator on the right. + Only works for the current tab page. *E1308* Can also be used as a |method|: > GetWinnr()->win_move_separator(offset) @@ -10218,6 +10220,7 @@ win_move_statusline({nr}, {offset}) *w movement may be smaller than specified (e.g., as a consequence of maintaining 'winminheight'). Returns TRUE if the window can be found and FALSE otherwise. + Only works for the current tab page. Can also be used as a |method|: > GetWinnr()->win_move_statusline(offset)