I select a block of text using Ctrl-V, but when I then type Shift-A or Shift-I, my vim editor goes into insert mode on only the location where I began the visual block mode.
For example,
Here is text
I want
#Her #is #text
but I get:
#Here is text
Make sure you exit visual block with ESC, not Ctrl C.
Also, Vim does not live update in visual block mode, you have to leave visual block mode to show the changes on other lines.
You will only see:
#Here is text
After you enter visual block and insert a #
, but once you leave visual block mode pressing ESC it should look like:
#Here #is #text
Ctrl-V-> select the block -> press I -> type #
then press ESC
more detail:
:h v_b_I
you can see:
Visual-block Insert *v_b_I* With a blockwise selection, I{string}<ESC> will insert {string} at the start of block on every line of the block, provided that the line extends into the block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With