Thanks, this has been driving me screwy for a while now. I just use "qq" now and thus record to a letter register. Everything works perfectly now.
On Apr 3, 5:34 pm, Gary Johnson <[email protected]> wrote: > On 2009-04-03, 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 "@". > > a) :registers > > b) :echo @1 > > c) :new > :put 1 > > > 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 "@@". > > Since the 1 register "contains the text deleted by the most recent > delete or change command," it was overwritten by the "2 line > deletes" of your command. See > > :help quote_number > > It would be better to record into a register whose name is a letter > rather than a number so that it won't be overwritten unless you do > so explicitly. See > > :help registers > > Regards, > Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
