Vim command to increment number digit ONLY at cursor position in a longer number string?

Viewed 1599

I have a few instances where I want to do the following

In file:

1234

With the cursor at the 1st digit, I want to use Ctrl-A to increment the digit so that I get

2234

instead of

1235

Are there intrinsic vim commands to do this?

Otherwise, should I set up a quick script:

  1. Surround digit with leading and trailing space
  2. Ctrl-A to increment
  3. Delete leading and trailing space

Like so, and then map to a key?

2 Answers
Related