comparison runtime/doc/change.txt @ 36:125e80798a85 v7.0021

updated for version 7.0021
author vimboss
date Thu, 09 Dec 2004 21:34:53 +0000
parents 41f9fd58cf13
children 410fa1a31baf
comparison
equal deleted inserted replaced
35:8f3a526c2fe1 36:125e80798a85
1 *change.txt* For Vim version 7.0aa. Last change: 2004 Oct 11 1 *change.txt* For Vim version 7.0aa. Last change: 2004 Nov 30
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
348 character at or after the cursor. {not in Vi} 348 character at or after the cursor. {not in Vi}
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 "alpha", Vim will change the alphabetic character 353 - When 'nrformats' includes "octal", Vim considers numbers starting with a '0'
354 under or after the cursor. This is useful to make lists with an alphabetic 354 to be octal. Other numbers are decimal and may have a preceding minus sign.
355 index. 355 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.
356 - When 'nrformats' includes "hex", Vim assumes numbers starting with '0x' or 357 - When 'nrformats' includes "hex", Vim assumes numbers starting with '0x' or
357 '0X' are hexadecimal. The case of the rightmost letter in the number 358 '0X' are hexadecimal. The case of the rightmost letter in the number
358 determines the case of the resulting hexadecimal number. If there is no 359 determines the case of the resulting hexadecimal number. If there is no
359 letter in the current number, Vim uses the previously detected case. 360 letter in the current number, Vim uses the previously detected case.
360 - When 'nrformats' includes "octal", Vim considers numbers starting with a '0' 361 - When 'nrformats' includes "alpha", Vim will change the alphabetic character
361 to be octal. Other numbers are decimal and may have a preceding minus sign. 362 under or after the cursor. This is useful to make lists with an alphabetic
362 If the cursor is on a number, the commands apply to that number; otherwise 363 index.
363 Vim uses the number to the right of the cursor.
364 364
365 For numbers with leading zeros (including all octal and hexadecimal numbers), 365 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 366 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". Note that 367 "0077" results in "0100", CTRL-X on "0x100" results in "0x0ff".
368 when 'nrformats' includes "octal", decimal numbers with leading zeros are 368
369 impossible because they are indistinguishable from octal numbers. 369 Note that when 'nrformats' includes "octal", decimal numbers with leading
370 zeros are impossible because they are indistinguishable from octal numbers.
370 371
371 The CTRL-A command is very useful in a macro. Example: Use the following 372 The CTRL-A command is very useful in a macro. Example: Use the following
372 steps to make a numbered list. 373 steps to make a numbered list.
373 374
374 1. Create the first list entry, make sure it starts with a number. 375 1. Create the first list entry, make sure it starts with a number.
861 [count] times. {Vi: no count} 862 [count] times. {Vi: no count}
862 863
863 *<MiddleMouse>* 864 *<MiddleMouse>*
864 ["x]<MiddleMouse> Put the text from a register before the cursor [count] 865 ["x]<MiddleMouse> Put the text from a register before the cursor [count]
865 times. Uses the "* register, unless another is 866 times. Uses the "* register, unless another is
866 specified. Using the mouse only works when 'mouse' 867 specified.
867 contains 'n' or 'a'. 868 Leaves the cursor at the end of the new text.
869 Using the mouse only works when 'mouse' contains 'n'
870 or 'a'.
868 {not in Vi} 871 {not in Vi}
869 If you have a scrollwheel and often accidentally paste 872 If you have a scrollwheel and often accidentally paste
870 text, you can use these mappings to disable the 873 text, you can use these mappings to disable the
871 pasting with the middle mouse button: > 874 pasting with the middle mouse button: >
872 :map <MiddleMouse> <Nop> 875 :map <MiddleMouse> <Nop>