Open a blank Vim (I'm using 7.4.52), and type this:

3graqqY:s/a/b/g|s/b/c/g<CR>pq@q

(Since there are 3 "a"s, and the 'report' default is 2, both :s commands report 
the number of changes, which triggers a Press ENTER prompt. But the bug applies 
to any Press ENTER prompt.)

When "p" is run straight after the prompt, it runs once (as it should). In the 
"q register however, the "p" is recorded twice. You can confirm this with 
":display q". When you run "@q", "p" runs both times, as it's recorded in the 
macro.

The same problem exists when recording keystrokes to a file with "vim -w".

If you actually hit Enter to dismiss the prompt, that will also be recorded. If 
you put it in a macro, for instance, the extra Enter will run and try to move 
the cursor.

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui