comparison runtime/doc/builtin.txt @ 32590:635de73eeb4c

Update runtime files Commit: https://github.com/vim/vim/commit/10e8ff9b26078994cae57c2422b145d37aaf714e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 10 21:40:39 2023 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sat, 10 Jun 2023 22:45:05 +0200
parents 5d8cff99a027
children a699363f01cd
comparison
equal deleted inserted replaced
32589:47f101f21004 32590:635de73eeb4c
1 *builtin.txt* For Vim version 9.0. Last change: 2023 May 12 1 *builtin.txt* For Vim version 9.0. Last change: 2023 Jun 08
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1592 window ID instead of the current window. 1592 window ID instead of the current window.
1593 1593
1594 Can also be used as a |method|: > 1594 Can also be used as a |method|: >
1595 GetWin()->clearmatches() 1595 GetWin()->clearmatches()
1596 < 1596 <
1597 col({expr} [, {winid}) *col()* 1597 col({expr} [, {winid}]) *col()*
1598 The result is a Number, which is the byte index of the column 1598 The result is a Number, which is the byte index of the column
1599 position given with {expr}. The accepted positions are: 1599 position given with {expr}. The accepted positions are:
1600 . the cursor position 1600 . the cursor position
1601 $ the end of the cursor line (the result is the 1601 $ the end of the cursor line (the result is the
1602 number of bytes in the cursor line plus one) 1602 number of bytes in the cursor line plus one)
1655 Insert mode completion. The popup menu will appear if 1655 Insert mode completion. The popup menu will appear if
1656 specified, see |ins-completion-menu|. 1656 specified, see |ins-completion-menu|.
1657 Example: > 1657 Example: >
1658 inoremap <F5> <C-R>=ListMonths()<CR> 1658 inoremap <F5> <C-R>=ListMonths()<CR>
1659 1659
1660 func! ListMonths() 1660 func ListMonths()
1661 call complete(col('.'), ['January', 'February', 'March', 1661 call complete(col('.'), ['January', 'February', 'March',
1662 \ 'April', 'May', 'June', 'July', 'August', 'September', 1662 \ 'April', 'May', 'June', 'July', 'August', 'September',
1663 \ 'October', 'November', 'December']) 1663 \ 'October', 'November', 'December'])
1664 return '' 1664 return ''
1665 endfunc 1665 endfunc
1920 [{lnum}, {col}, {off}] 1920 [{lnum}, {col}, {off}]
1921 [{lnum}, {col}, {off}, {curswant}] 1921 [{lnum}, {col}, {off}, {curswant}]
1922 This is like the return value of |getpos()| or |getcurpos()|, 1922 This is like the return value of |getpos()| or |getcurpos()|,
1923 but without the first item. 1923 but without the first item.
1924 1924
1925 To position the cursor using the character count, use 1925 To position the cursor using {col} as the character count, use
1926 |setcursorcharpos()|. 1926 |setcursorcharpos()|.
1927 1927
1928 Does not change the jumplist. 1928 Does not change the jumplist.
1929 {lnum} is used like with |getline()|, except that if {lnum} is 1929 {lnum} is used like with |getline()|, except that if {lnum} is
1930 zero, the cursor will stay in the current line. 1930 zero, the cursor will stay in the current line.