triple_r wrote:
> Or its vim equivalent for those afraid of the control key ;-)
>
> 2G //line 2
> yy //yank (copy) the line
> 2j //down two lines
> $ //end of line
> qa //start macro 'a'
> p //paste
> j //next line
> q //end macro
> 9@a //run macro 'a' 9 times
>
Or using the block selection:
2G //line 2
y$ //yank to end of line
2j //down two lines
$ //end of line
<C-q> //enter visual mode blockwise
9j //down nine lines
A //visual-block append
<C-r>" //paste from register "
Esc //quit visual mode (this is when the change will affect all lines)
Post a reply to this message
|