Increment a number
Ctrl-a
Example
Normal 0 / 1Normal 1 / 1item 12Cursor on line 1, column 6item 13Cursor on line 1, column 7Add one to the number at or after the cursor on the current line.
Add one to the number at or after the cursor on the current line
Before & after
item 12Cursor on line 1, column 6item 13Cursor on line 1, column 7Start in Normal mode. Cursor starts on the 1 of the decimal number. Press Ctrl-a.
Details & Vim help
Example replayed in Vim
Add one to the number at or after the cursor on the current line.
Vim searches at or to the right on the current line for a supported number. A count such as 5Ctrl-a adds five. Number bases and alphabetic handling depend on nrformats.