POV-Ray : Newsgroups : povray.off-topic : Emacs : Re: Emacs Server Time
29 Sep 2024 02:20:37 EDT (-0400)
  Re: Emacs  
From: triple r
Date: 15 Apr 2009 09:15:01
Message: <web.49e5dd80be8f6db963a1b7c30@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.