Thursday, August 16, 2012

Re: paste works once, register then garbled

On Thursday, August 16, 2012 9:41:24 PM UTC+12, eNG1Ne wrote:

> 1. copy block of text to register a with "ay6

In normal mode that's an incomplete command, unless you're in visual mode, in which case it has an extra 6. In command mode, that is
:"ay6
it's a comment, so a no-op, so it doesn't put anything in register a.

The incomplete command will swallow another keystroke, confusing things, and possibly triggering an error and so not putting anything in register a.

Also, in
"ap;

the ; looks spurious, maybe you wanted n.

It looks like your gibberish is a previously recorded macro into register a, one
where you pressed arrow keys, I think, and then tried to abandon by typing escape twice. If you had recorded into register a it would look like
/\t21^M"ap;

HTH, regards, John Little


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: