Issue #105 new

Odd yank behaviour

Anonymous created an issue

I've found an odd bug when yanking text via a deletion (e.g. diw, viwd, etc.), when pasting in between parens. If I immediately put the text (p), the correct text is entered. If, however, I press o in normal mode to enter a new line, <ESC> and then p, I see that the second to last yanked text is entered instead of the text just yanked.

Here's a detailed example (assuming the buffer is currently in normal mode):

i(foobar<CR>)<ESC>k$vyvbdpo<ESC>p

That key sequence will result in the following buffer:

(foobar
r
  )

as opposed to:

(foobar
foobar
  )

I use this workflow quite often when refactoring - it would be really awesome to have this fixed.

Thanks!

Comments (0)

  1. Log in to comment