@@ -691,6 +691,8 @@ uniq({list} [, {func} [, {dict}]])
691691values({dict} ) List values in {dict}
692692virtcol({expr} [, {list} ]) Number or List
693693 screen column of cursor or mark
694+ virtcol2col({winid} , {lnum} , {col} )
695+ Number byte index of a character on screen
694696visualmode([expr]) String last visual mode used
695697wildmenumode() Number whether 'wildmenu' mode is active
696698win_execute({id} , {command} [, {silent} ])
@@ -6211,11 +6213,17 @@ nr2char({expr} [, {utf8}]) *nr2char()*
62116213 or({expr} , {expr} ) *or()*
62126214 Bitwise OR on the two arguments. The arguments are converted
62136215 to a number. A List, Dict or Float argument causes an error.
6216+ Also see `and ()` and `xor ()` .
62146217 Example: >
62156218 :let bits = or(bits, 0x80)
62166219< Can also be used as a | method | : >
62176220 :let bits = bits->or(0x80)
62186221
6222+ < Rationale: The reason this is a function and not using the "|"
6223+ character like many languages, is that Vi has always used "|"
6224+ to separate commands. In many places it would not be clear if
6225+ "|" is an operator or a command separator.
6226+
62196227
62206228pathshorten({path} [, {len} ]) *pathshorten()*
62216229 Shorten directory names in the path {path} and return the
@@ -9788,6 +9796,25 @@ virtcol({expr} [, {list}]) *virtcol()*
97889796< Can also be used as a | method | : >
97899797 GetPos()->virtcol()
97909798
9799+ virtcol2col({winid} , {lnum} , {col} ) *virtcol2col()*
9800+ The result is a Number, which is the byte index of the
9801+ character in window {winid} at buffer line {lnum} and virtual
9802+ column {col} .
9803+
9804+ If {col} is greater than the last virtual column in line
9805+ {lnum} , then the byte index of the character at the last
9806+ virtual column is returned.
9807+
9808+ The {winid} argument can be the window number or the
9809+ | window-ID | . If this is zero, then the current window is used.
9810+
9811+ Returns -1 if the window {winid} doesn't exist or the buffer
9812+ line {lnum} or virtual column {col} is invalid.
9813+
9814+ See also | screenpos() | , | virtcol() | and | col() | .
9815+
9816+ Can also be used as a | method | : >
9817+ GetWinid()->virtcol2col(lnum, col)
97919818
97929819 visualmode([{expr} ]) *visualmode()*
97939820 The result is a String, which describes the last Visual mode
@@ -10220,6 +10247,7 @@ writefile({object}, {fname} [, {flags}])
1022010247 xor({expr} , {expr} ) *xor()*
1022110248 Bitwise XOR on the two arguments. The arguments are converted
1022210249 to a number. A List, Dict or Float argument causes an error.
10250+ Also see `and ()` and `or ()` .
1022310251 Example: >
1022410252 :let bits = xor(bits, 0x80)
1022510253<
0 commit comments