Hi,

Tim Chase wrote:
> 
>> I can record keystrokes to a register
>> I can playback the register
>> I can playback the register count times
>> Is there a way to playback the register by range?
> 
> Though untested, my first thought would be something like
> 
>    :'<,'>g/^/norm @z
> 
> (assuming your macro was in register "z")

no need to use :global,

  :'<,'>normal @z

works, too.

> Which in theory could be extended to execute a macro on lines 
> matching a regexp:
> 
>    :g/regexp/norm @z
> 
> 
> If it doesn't work, I'm sure others out there have good 
> suggestions (that they've tested ;-)  too.

Just tested. ;.)

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to