3

I'm running Ubuntu 14.04 and visual block insertion isn't working for me.

I do Ctrl-V then I select my block using arrow keys, then Shift-I but it only inserts a character at the top most like:

*
*
*
*

to

asdf*
*
*
*

I have read prepend to visual block not working in vim and

:echo has('visualextra')

returns 1.

sudo apt-get install vim

points out that vim is the newest version installed.

Any ideas about what's wrong?

Community
  • 1
  • 1
  • What you have done is correct. can you print the output of vim --version here? Also, give a multiple lines of text as example. – SibiCoder May 28 '16 at 03:14
  • // only inserts a character at the top most // You can insert/delete only at the start/end of the topmost line. It will be applied same way for following lines. You want some thing different? – SibiCoder May 28 '16 at 03:20
  • 3
    Do you press `` after `asdf`? – romainl May 28 '16 at 07:59
  • does this solve your problem? http://stackoverflow.com/questions/14925932/visual-block-insert-append-doesnt-work/14925977#14925977 – Kent May 28 '16 at 11:55

1 Answers1

3

As romanl pointed, you need to press <Esc> after inserting the text. Otherwise, you are pretty much correct.

dlmeetei
  • 9,905
  • 3
  • 31
  • 38