Comment #1 on issue 56 by [email protected]: Pressing <C-R>
continuously to redo changes inserts <12> character after a few redo
http://code.google.com/p/vim/issues/detail?id=56
Here is a simpler way to reproduce the bug:
1) start vim with: vim -u NONE
2) Enter following Ex command which creates 1000 edits and then it does
undo of all of them:
:set nocp undolevels=2000|call feedkeys('A'.repeat("*\<C-g>u",
1000)."\<Esc>1000u", 'n')
3) Then press <C-R> (keep pressing the key for several seconds). This
should redo all the changes one by one (displaying a bunch of * characters).
What I observe instead, is something like this when pressing <C-R>
*************************^R
I.e. the ^R character (<12>) is inserted after pressing <C-R> for several
seconds.
I also noticed that I could not reproduce it on a Linux x86_64 desktop but
I can reproduce it all the time on a Linux x86 laptop.
I then tried to reproduce it by starting Vim as follows to save all
commands in a file "save-cmds":
$ vim -u NONE -W save-cmds
Then I reproduced the bug with steps 2) and 3).
The created "save-cmds" file contains this:
:<80>ku:set nocp undolevels=2000|call feedkeys('A'.repeat("*\<C-g>u",
1000)."\<Esc>1000u", 'n')^M^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^R^Rr^R^R^RESC:qa!
Notice the 'r' command near the end of the file which should not be there!
(it should be ^R)
So I'm starting the think that the problem is with my keyboard. It behaves
as if I unpressed temporarily the control key while while pressing <C-R>
continuously (hence entering a r command in Vim which then inserts ^R
instead of doing undo).
--
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