0

A simple problem that I do not have the right terminology to google to. I am in visual mode when I delete some lines:

aaa

eee
fff
bbb
ccc    
ddd
ggg
hhh

from first whitespace in 'b' row I press $ to select to end of line and then down to 'd' line but when I put them in the slot after 'aaa' I get this:

aaa
 bbb
 ccc       eee
 ddd       fff



ggg
hhh

I want 'e' and 'f' lines to push down, not out. I can do it by copy/paste using the mouse in insert mode but the mouse is not my friend so I would like to know another way of doing it.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
AWE
  • 4,045
  • 9
  • 33
  • 42
  • 2
    It looks like you are using "visual-block mode" (``, or `` if you source `mswin.vim`, which you shouldn't) instead of the correct "visual-line mode" (`V`). – romainl Oct 09 '14 at 07:38
  • That fixed it. Obvious like so often. – AWE Oct 09 '14 at 07:46

1 Answers1

1

It looks like you are using "visual-block mode" (<C-v>, or <C-q> if you source mswin.vim, which you shouldn't) instead of the correct "visual-line mode" (V).

romainl
  • 186,200
  • 21
  • 280
  • 313