comparison 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
comparison
equal deleted inserted replaced
31027:723450cea4f9 31028:5acd6f02ea35
1 *builtin.txt* For Vim version 9.0. Last change: 2022 Oct 21 1 *builtin.txt* For Vim version 9.0. Last change: 2022 Nov 09
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1319 see |bufname()| above. If buffer {buf} doesn't exist or 1319 see |bufname()| above. If buffer {buf} doesn't exist or
1320 there is no such window, -1 is returned. Example: > 1320 there is no such window, -1 is returned. Example: >
1321 1321
1322 echo "A window containing buffer 1 is " .. (bufwinid(1)) 1322 echo "A window containing buffer 1 is " .. (bufwinid(1))
1323 < 1323 <
1324 Only deals with the current tab page. 1324 Only deals with the current tab page. See |win_findbuf()| for
1325 finding more.
1325 1326
1326 Can also be used as a |method|: > 1327 Can also be used as a |method|: >
1327 FindBuffer()->bufwinid() 1328 FindBuffer()->bufwinid()
1328 1329
1329 bufwinnr({buf}) *bufwinnr()* 1330 bufwinnr({buf}) *bufwinnr()*
1587 buffer. 1588 buffer.
1588 For the cursor position, when 'virtualedit' is active, the 1589 For the cursor position, when 'virtualedit' is active, the
1589 column is one higher if the cursor is after the end of the 1590 column is one higher if the cursor is after the end of the
1590 line. Also, when using a <Cmd> mapping the cursor isn't 1591 line. Also, when using a <Cmd> mapping the cursor isn't
1591 moved, this can be used to obtain the column in Insert mode: > 1592 moved, this can be used to obtain the column in Insert mode: >
1592 :imap <F2> <Cmd>echo col(".")<CR> 1593 :imap <F2> <Cmd>echowin col(".")<CR>
1593 1594
1594 < Can also be used as a |method|: > 1595 < Can also be used as a |method|: >
1595 GetPos()->col() 1596 GetPos()->col()
1596 < 1597 <
1597 1598
2771 2772
2772 2773
2773 float2nr({expr}) *float2nr()* 2774 float2nr({expr}) *float2nr()*
2774 Convert {expr} to a Number by omitting the part after the 2775 Convert {expr} to a Number by omitting the part after the
2775 decimal point. 2776 decimal point.
2776 {expr} must evaluate to a |Float| or a Number. 2777 {expr} must evaluate to a |Float| or a |Number|.
2777 Returns 0 if {expr} is not a |Float| or a |Number|. 2778 Returns 0 if {expr} is not a |Float| or a |Number|.
2778 When the value of {expr} is out of range for a |Number| the 2779 When the value of {expr} is out of range for a |Number| the
2779 result is truncated to 0x7fffffff or -0x7fffffff (or when 2780 result is truncated to 0x7fffffff or -0x7fffffff (or when
2780 64-bit Number support is enabled, 0x7fffffffffffffff or 2781 64-bit Number support is enabled, 0x7fffffffffffffff or
2781 -0x7fffffffffffffff). NaN results in -0x80000000 (or when 2782 -0x7fffffffffffffff). NaN results in -0x80000000 (or when
10202 specified (e.g., as a consequence of maintaining 10203 specified (e.g., as a consequence of maintaining
10203 'winminwidth'). Returns TRUE if the window can be found and 10204 'winminwidth'). Returns TRUE if the window can be found and
10204 FALSE otherwise. 10205 FALSE otherwise.
10205 This will fail for the rightmost window and a full-width 10206 This will fail for the rightmost window and a full-width
10206 window, since it has no separator on the right. 10207 window, since it has no separator on the right.
10208 Only works for the current tab page. *E1308*
10207 10209
10208 Can also be used as a |method|: > 10210 Can also be used as a |method|: >
10209 GetWinnr()->win_move_separator(offset) 10211 GetWinnr()->win_move_separator(offset)
10210 10212
10211 win_move_statusline({nr}, {offset}) *win_move_statusline()* 10213 win_move_statusline({nr}, {offset}) *win_move_statusline()*
10216 line will change the height of the window and the height of 10218 line will change the height of the window and the height of
10217 other windows adjacent to the status line. The magnitude of 10219 other windows adjacent to the status line. The magnitude of
10218 movement may be smaller than specified (e.g., as a consequence 10220 movement may be smaller than specified (e.g., as a consequence
10219 of maintaining 'winminheight'). Returns TRUE if the window can 10221 of maintaining 'winminheight'). Returns TRUE if the window can
10220 be found and FALSE otherwise. 10222 be found and FALSE otherwise.
10223 Only works for the current tab page.
10221 10224
10222 Can also be used as a |method|: > 10225 Can also be used as a |method|: >
10223 GetWinnr()->win_move_statusline(offset) 10226 GetWinnr()->win_move_statusline(offset)
10224 10227
10225 win_screenpos({nr}) *win_screenpos()* 10228 win_screenpos({nr}) *win_screenpos()*