Skip to content

Commit f44060d

Browse files
authored
Merge pull request #2461 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents c584c55 + e95c370 commit f44060d

2 files changed

Lines changed: 26 additions & 7 deletions

File tree

doc/builtin.jax

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Dec 21
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2026 Jan 03
22

33

44
VIM リファレンスマニュアル by Bram Moolenaar
@@ -4827,6 +4827,10 @@ getpos({expr}) *getpos()*
48274827
桁番号は行内のバイト位置のリストとして返される。行内の文字での
48284828
位置を取得するなら、|getcharpos()| を使う。
48294829

4830+
ビジュアルマーク |'<| と |'>| は、バッファを基準とした視覚的な
4831+
選択範囲の開始と終了を表す。Note これはカーソル位置を基準とす
4832+
る |setpos()| とは異なることに注意。
4833+
48304834
Note: ビジュアルモードの '< と '> について: ビジュアルモードが
48314835
"V" (行選択モード) のとき、'< の桁番号はゼロ、'> の桁番号は大
48324836
きな値として |v:maxcol| と同値になる。
@@ -9933,8 +9937,13 @@ setpos({expr}, {list}) *setpos()*
99339937
は優先値は設定されない。マークの位置を設定するときに
99349938
"curswant" を指定した場合はその値は使用されない。
99359939

9936-
Note: '< と '> の行番号を変更した場合は '< が '> の手前にくる
9937-
ように位置が交換される。
9940+
Note |'<| と |'>| の場合、行番号を変更するとマークが実質的に入
9941+
れ替わり、|'<| が常に |'>| の前になることに注意。
9942+
9943+
ビジュアルマーク |'<| と |'>| は、カーソル位置を基準とした視覚
9944+
的な選択範囲の開始と終了を参照する。
9945+
Note これは、バッファを基準とする |getpos()| とは異なることに
9946+
注意。
99389947

99399948
位置をセットできたときは 0 を、そうでなければ -1 を返す。
99409949
{expr} が無効なときはエラーメッセージが出る。

en/builtin.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Dec 21
1+
*builtin.txt* For Vim version 9.1. Last change: 2026 Jan 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4879,6 +4879,11 @@ getpos({expr}) *getpos()*
48794879
within the line. To get the character position in the line,
48804880
use |getcharpos()|.
48814881

4882+
The visual marks |'<| and |'>| refer to the beginning and end
4883+
of the visual selection relative to the buffer. Note that
4884+
this differs from |setpos()|, where they are relative to the
4885+
cursor position.
4886+
48824887
Note that for '< and '> Visual mode matters: when it is "V"
48834888
(visual line mode) the column of '< is zero and the column of
48844889
'> is a large number equal to |v:maxcol|.
@@ -10152,9 +10157,14 @@ setpos({expr}, {list}) *setpos()*
1015210157
preferred column is not set. When it is present and setting a
1015310158
mark position it is not used.
1015410159

10155-
Note that for '< and '> changing the line number may result in
10156-
the marks to be effectively be swapped, so that '< is always
10157-
before '>.
10160+
Note that for |'<| and |'>| changing the line number may
10161+
result in the marks to be effectively swapped, so that |'<| is
10162+
always before |'>|.
10163+
10164+
The visual marks |'<| and |'>| refer to the beginning and end
10165+
of the visual selection relative to the cursor position.
10166+
Note that this differs from |getpos()|, where they are
10167+
relative to the buffer.
1015810168

1015910169
Returns 0 when the position could be set, -1 otherwise.
1016010170
An error message is given if {expr} is invalid.

0 commit comments

Comments
 (0)