4 ms·
The number increment example doesn't seem to work for me. It says to start with this: 1. a 1. b 1. c The post says to "select in VISUAL mode the l
by lucb1e 6y ago
The number increment example doesn't seem to work for me. It says to start with this:
1. a
1. b
1. c
The post says to "select in VISUAL mode the last two lines and hit `g CTRL+a`". So I guess with shift+v select the bottom two lines, and then I hit g, space, and Ctrl+a. I get:
1. a
2. b
2. c
The post says that the last line should now start with 3 instead of 1, or in my case 2. The behavior is the same as when omitting g+space for me. Am I doing it wrong?
- tux1968 6y agoDon't press space. "g" and then "ctrl-a"
- lucb1e 6y agoThank you!
- mklein994 6y agoThe docs for this is in `:help v_CTRL-A`. It should actually say VISUAL BLOCK mode. This is where you use `CTRL-v` to select a block of text. You can read more in `:help blockwise-visual`. Also see the 'nrformats' option: `:help 'nrformats'`. You can include alphabetic characters to do the same thing with A-Z, for example. https://vimhelp.org/change.txt.html#v_CTRL-A https://vimhelp.org/change.txt.html#v_CTRL-A
- lucb1e 6y agoIt seems to work in both visual block mode and visual line mode for me, for what it's worth. (When not pressing space as mentioned in another reply.)
- thomastjeffery 6y agoDid you try not pressing space?
- lucb1e 6y agoevidently not :)
- thanato0s 6y agommm sorry for that, maybe I should review the way I'm displaying the different keystrokes.