KevM wrote:
> I enter the following:
> q12dd4jq
> 
> So I'm recording "2 line deletes followed by 4 downward cursor
> movements" into register "1"
> 
> Later I do:
> @1
> 
> And this works as expected.  But if I try it again (@1 or just @@) it
> does something screwy, either deleting the rest of the file or
> hundreds of lines or who knows what kind of seemingly random stuff.
> 
> Two questions,
> 1. Is there a way to see what commands are currently in a register for
> execution by "@".

you can use

   :reg

to show the contents of various registers or

   :echo @1

if they're cropped, or

   "1p

to put the contents of the register in a document for your tweaking

> 2. What's going on with my recording?  It's like someting's happened
> to register "1" between the first "@1" and the second "@1" or "@@".

Likely the deletion in your macro execution deleted something 
which triggered a trickle-down of the numbered delete-history 
registers[1].  Try recording your macro into a alphabetically 
named register such as register "a"

   qa2dd4jq
   @a
   @@

Hope this helps,

-tim

[1]  :help quote_number
particularly the bit about the shifting







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

Reply via email to