POV-Ray : Newsgroups : povray.off-topic : Emacs : Re: Emacs Server Time
1 Oct 2024 00:53:05 EDT (-0400)
  Re: Emacs  
From: Nicolas Alvarez
Date: 22 Apr 2009 12:02:17
Message: <49ef3f88@news.povray.org>
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

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