Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I used /=, Enter, then l to get the cursor to the right location; then several l's to do it the second time. I was having the problem that <C-a> was selecting all text instead of incrementing. I recalled having that problem before - I had forgotten what I had done before, but I did a bit of searching and recalled that I had followed some instructions on another board and set the + sign to be increment with nnoremap <kPlus> <C-a> and set the - sign to be decrement with nnoremap <kMinus> <C-x>), so I used + instead of <C-a>. Anyway, it worked! Thank you. Commented May 16, 2017 at 12:00
  • 1
    You are most welcome + alternative solution in the edit to my answer. Commented May 16, 2017 at 12:24
  • Your alternate solution - the one-line command that I was looking for - works as well. Great work! Thanks again. Commented May 17, 2017 at 4:38