New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v_CTRL-A/X only increments the first number on each line. #4676
Comments
That was not the intention of the visual increment. The initial idea was, to select only those numbers that need to be incremented will be selected and then incremented. Making visual increment increment several numbers within a selected range was not intended. |
Thank you for your prompt reply :-D
Then selecting from the third line onwards and, while on visual mode, pressing g-CTRL-A produces:
So far so good.
and suddenly I realize that the indexing origin I need is 1 rather than 0, then it would be nice, and intuitive I think, to be able to increment by visual select all the numbers and CTRL-A. |
Do folks have a preference for how this would be implemented? I don't think changing the behavior of I had two thoughts:
Are there other approaches that make sense? I'd be happy to explore creating a patch. |
I think it's already a bad thing that precious keys like Ctrl-A and Ctrl-X are wasted to number incrementing. How about a dedicated Ex-command? |
Currently, to increment all numbers:
|
I am not sure if this behavior is intended or overlooked. Either case, this is a feature request or bug report, respectively.
It would be nice if all digits in, e.g.
could be incremented simultaneously with v_CTRL-A. Or even make a sequence from:
with v_g_CTRL-A.
Many thanks.
The text was updated successfully, but these errors were encountered: