366
366
CTRL-A Add [count] to the number or alphabetic character at
367
367
or after the cursor.
370
{Visual}CTRL-A Add [count] to the number or alphabetic character in
371
the highlighted text. {not in Vi}
374
{Visual}g CTRL-A Add [count] to the number or alphabetic character in
375
the highlighted text. If several lines are
376
highlighted, each one will be incremented by an
377
additional [count] (so effectively creating a
378
[count] incrementing sequence). {not in Vi}
379
For Example, if you have this list of numbers:
384
Move to the second "1." and Visually select three
385
lines, pressing g CTRL-A results in:
370
392
CTRL-X Subtract [count] from the number or alphabetic
371
393
character at or after the cursor.
373
The CTRL-A and CTRL-X commands can work for:
374
- signed and unsigned decimal numbers
375
- unsigned binary, octal and hexadecimal numbers
376
- alphabetic characters
396
{Visual}CTRL-X Subtract [count] from the number or alphabetic
397
character in the highlighted text. {not in Vi}
400
{Visual}g CTRL-X Subtract [count] from the number or alphabetic
401
character in the highlighted text. If several lines
402
are highlighted, each value will be decremented by an
403
additional [count] (so effectively creating a [count]
404
decrementing sequence). {not in Vi}
406
The CTRL-A and CTRL-X commands work for (signed) decimal numbers, unsigned
407
binary/octal/hexadecimal numbers and alphabetic characters.
378
409
This depends on the 'nrformats' option:
379
410
- When 'nrformats' includes "bin", Vim assumes numbers starting with '0b' or