Last Updated: November 19, 2020
·
17.27K
· karthiks

Vim: Increment/Decrement a number under cursor

Ctrl-a

will increment the number under the cursor

Ctrl-x

will decrement the number under the cursor

Related protips:

Basic Vim commands - For getting started

2 Responses
Add your response

Not only under the cursor, it works on first occurence of the number in the current line from the cursor.

over 1 year ago ·

Ctrl-a selects all in Vim for Windows :(

over 1 year ago ·