Mercurial > vim
comparison runtime/doc/change.txt @ 39:410fa1a31baf v7.0023
updated for version 7.0023
author | vimboss |
---|---|
date | Sun, 19 Dec 2004 22:46:22 +0000 |
parents | 125e80798a85 |
children | f529edb9bab3 |
comparison
equal
deleted
inserted
replaced
38:c524f99c7925 | 39:410fa1a31baf |
---|---|
1 *change.txt* For Vim version 7.0aa. Last change: 2004 Nov 30 | 1 *change.txt* For Vim version 7.0aa. Last change: 2004 Dec 17 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
349 | 349 |
350 The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned | 350 The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned |
351 octal and hexadecimal numbers and alphabetic characters. This depends on the | 351 octal and hexadecimal numbers and alphabetic characters. This depends on the |
352 'nrformats' option. | 352 'nrformats' option. |
353 - When 'nrformats' includes "octal", Vim considers numbers starting with a '0' | 353 - When 'nrformats' includes "octal", Vim considers numbers starting with a '0' |
354 to be octal. Other numbers are decimal and may have a preceding minus sign. | 354 to be octal, unless the number includes a '8' or '9'. Other numbers are |
355 decimal and may have a preceding minus sign. | |
355 If the cursor is on a number, the commands apply to that number; otherwise | 356 If the cursor is on a number, the commands apply to that number; otherwise |
356 Vim uses the number to the right of the cursor. | 357 Vim uses the number to the right of the cursor. |
357 - When 'nrformats' includes "hex", Vim assumes numbers starting with '0x' or | 358 - When 'nrformats' includes "hex", Vim assumes numbers starting with '0x' or |
358 '0X' are hexadecimal. The case of the rightmost letter in the number | 359 '0X' are hexadecimal. The case of the rightmost letter in the number |
359 determines the case of the resulting hexadecimal number. If there is no | 360 determines the case of the resulting hexadecimal number. If there is no |
363 index. | 364 index. |
364 | 365 |
365 For numbers with leading zeros (including all octal and hexadecimal numbers), | 366 For numbers with leading zeros (including all octal and hexadecimal numbers), |
366 Vim preserves the number of characters in the number when possible. CTRL-A on | 367 Vim preserves the number of characters in the number when possible. CTRL-A on |
367 "0077" results in "0100", CTRL-X on "0x100" results in "0x0ff". | 368 "0077" results in "0100", CTRL-X on "0x100" results in "0x0ff". |
369 There is one exception: When a number that starts with a zero is found not to | |
370 be octal (it contains a '8' or '9'), but 'nrformats' does include "octal", | |
371 leading zeros are removed to avoid that the result may be recognized as an | |
372 octal number. | |
368 | 373 |
369 Note that when 'nrformats' includes "octal", decimal numbers with leading | 374 Note that when 'nrformats' includes "octal", decimal numbers with leading |
370 zeros are impossible because they are indistinguishable from octal numbers. | 375 zeros cause mistakes, because they can be confused with octal numbers. |
371 | 376 |
372 The CTRL-A command is very useful in a macro. Example: Use the following | 377 The CTRL-A command is very useful in a macro. Example: Use the following |
373 steps to make a numbered list. | 378 steps to make a numbered list. |
374 | 379 |
375 1. Create the first list entry, make sure it starts with a number. | 380 1. Create the first list entry, make sure it starts with a number. |