Tor Olav Kristensen <tor### [at] TOBEREMOVEDgmailcom> wrote:
> If you do the following keystrokes:
>
> C-home // beginning-of-buffer
> down // next-line
> C-k // kill-line
> C-y // yank
> down // next-line
> C-x ( // start-kbd-macro
> down // next-line
> C-e // move-end-of-line
> C-y // yank
> C-x ) // kmacro-end-macro
> C-u // universal-argument
> 9 // 9
> C-x e // kmacro-end-and-call-macro
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
- Ricky
Post a reply to this message
|