Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 212 by [email protected]: feedkeys(".", "n") inside a macro
inserts @. register instead of repeating last operation
http://code.google.com/p/vim/issues/detail?id=212
If . is mapped to feedkeys(".", "n"), then dot-repeat inside a macro
inserts the @. register (last inserted text) instead of repeating the
previous operation. This means that dot-repeat can't be used with macros if
Tim Pope's repeat.vim[1] plugin is used.
What steps will reproduce the problem?
1. Launch vim as follows:
vim -u NONE -N -c ':nnoremap . :call feedkeys(".", "n")<cr>'
2. Insert this text in the buffer:
a b c
a b c
3. On the first line, record a macro that performs a dot-repeat:
qqdw.ifoo<esc>
4. On the 2nd line, replay the macro:
@q
What is the expected output?
fooc
fooc
What do you see instead?
fooc
fofooob c
I have confirmed this issue on at least 4 systems:
Vim 7.4.183, msys2
7.4.103, MacVim
vim.org 7.4.0 build, Windows 7
Vim 7.3.429, Linux ubuntu 3.2.0-60-generic-pae
---
repeat.vim bug report: https://github.com/tpope/vim-repeat/issues/23
[1] https://github.com/tpope/vim-repeat
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.