File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
- *change.txt* For Vim バージョン 9.0 . Last change: 2023 Dec 08
1
+ *change.txt* For Vim バージョン 9.1 . Last change: 2023 Dec 19
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -433,12 +433,15 @@ CTRL-X を使うと "0x0ff" となる。
433
433
'nrformats' が "octal" を含んでいるならば、結果が8進数とみなされないように、前
434
434
方のゼロは削除される。
435
435
436
- Note: 'nrformats' が "octal" を含んでいるとき、0で始まる10進数は、8進数と区別
437
- しづらいため、意図しない結果になる可能性がある 。
436
+ Note 'nrformats' が "octal" を含んでいるとき、0で始まる10進数は、8進数と区別
437
+ しづらいため、意図しない結果になる可能性があることに注意 。
438
438
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" となる。
442
445
443
446
カーソル下の数値が大きすぎて 32 ビットまたは 64 ビット (Vim のビルド方法による)
444
447
に収まらない場合、表現可能な最も近い数値に丸められ、加算/減算はスキップされる。
Original file line number Diff line number Diff line change 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
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -452,9 +452,12 @@ octal number.
452
452
Note that when 'nrformats' includes "octal", decimal numbers with leading
453
453
zeros cause mistakes, because they can be confused with octal numbers.
454
454
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".
458
461
459
462
When the number under the cursor is too big to fit into 32 or 64 bit
460
463
(depending on how Vim was build), it will be rounded off to the nearest number
You can’t perform that action at this time.
0 commit comments