0

I did cwCtrl-Ra at the beginning of a word to paste the content of register a in its place. And this, I thought, is done entering insert mode only once; or at least, never going back to normal mode.

It obviously worked, and I pressed Escape to go back to normal mode.

Then I realized I had picked the wrong register, so I hit u to undo the change.

But this only reverted part of the change, as I had done deiCtrl-Ra or cwEscapeaCtrl-Ra.

I've also verified that . also only replayed the Ctrl-Ra. Well, not quite because it enters insert mode before doing that.

What is this?

1
  • 3
    I can't reproduce this in vim --clean (:let @a = 'my'<cr>Ithis is your word<esc>Fycw<C-r>a<esc>u). Perhaps How to debug my vimrc? I've seem some emulators work this way though, which is incorrect.
    – D. Ben Knoble
    May 13, 2021 at 22:41

1 Answer 1

3

It turns out, it's vim-peekaboo which is causing this behavior, and it is a known bug, filed in #30.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.