Skip to content

Commit 97f3b1e

Browse files
committed
Update
1 parent 77bb28f commit 97f3b1e

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

doc/change.jax

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim バージョン 9.0. Last change: 2023 Dec 08
1+
*change.txt* For Vim バージョン 9.1. Last change: 2023 Dec 19
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -433,12 +433,15 @@ CTRL-X を使うと "0x0ff" となる。
433433
'nrformats' が "octal" を含んでいるならば、結果が8進数とみなされないように、前
434434
方のゼロは削除される。
435435

436-
Note: 'nrformats' が "octal" を含んでいるとき、0で始まる10進数は、8進数と区別
437-
しづらいため、意図しない結果になる可能性がある
436+
Note 'nrformats' が "octal" を含んでいるとき、0で始まる10進数は、8進数と区別
437+
しづらいため、意図しない結果になる可能性があることに注意
438438

439-
Note: 'nrformats' が "bin" を含んでいるとき、'0b' または '0B' で始まる2進数は
440-
16進数として解釈される。これは '0b' が16進数の桁として有効だからである。
441-
{訳注: 0x0b0011 のような値のこと。}
439+
Note 同様に、'nrformats' に "bin" と "hex" の両方が含まれている場合、先頭が
440+
'0x' または '0X' の2進数は、'0b' が有効な16進数であるため、2進数ではなく16進数
441+
として解釈されることがあることに注意。"0x0b11" 上で CTRL-A を使うと、"0x0b100"
442+
ではなく、"0x0b12" となる。
443+
'nrformats' が "bin" を含み、"hex" を含まない場合、"0x0b11" の "0b11" 上で
444+
CTRL-A を使うと "0x0b100" となる。
442445

443446
カーソル下の数値が大きすぎて 32 ビットまたは 64 ビット (Vim のビルド方法による)
444447
に収まらない場合、表現可能な最も近い数値に丸められ、加算/減算はスキップされる。

en/change.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 9.0. Last change: 2023 Dec 08
1+
*change.txt* For Vim version 9.1. Last change: 2023 Dec 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -452,9 +452,12 @@ octal number.
452452
Note that when 'nrformats' includes "octal", decimal numbers with leading
453453
zeros cause mistakes, because they can be confused with octal numbers.
454454

455-
Note similarly, when 'nrformats' includes "bin", binary numbers with a leading
456-
'0b' or '0B' can be interpreted as hexadecimal rather than binary since '0b'
457-
are valid hexadecimal digits.
455+
Note similarly, when 'nrformats' includes both "bin" and "hex", binary numbers
456+
with a leading '0x' or '0X' can be interpreted as hexadecimal rather than
457+
binary since '0b' are valid hexadecimal digits. CTRL-A on "0x0b11" results in
458+
"0x0b12", not "0x0b100".
459+
When 'nrformats' includes "bin" and doesn't include "hex", CTRL-A on "0b11" in
460+
"0x0b11" results in "0x0b100".
458461

459462
When the number under the cursor is too big to fit into 32 or 64 bit
460463
(depending on how Vim was build), it will be rounded off to the nearest number

0 commit comments

Comments
 (0)