XVimProject / XVim

Xcode plugin for Vim keybindings
MIT License
5.16k stars 595 forks source link

Xvim incorrectly overwrites the contents of register 0 #972

Open juancampa opened 8 years ago

juancampa commented 8 years ago

Description

XVim overwrites the contents of register 0 after pasting from register 0 in visual mode. Similar to the problem reported in https://github.com/XVimProject/XVim/issues/341

Operation

  1. Yank some text (e.g. yiw)
  2. Visually select and paste from register 0 (e.g. viw"0p)
  3. Paste from register 0 (e.g. "0p)
  4. Result: the pasted text in step 3 is the selected text in step 2 instead of the originally yanked text

    Expected behaviour

Pasting should not replace the contents of register 0. This works in vim/nvim.

Environments

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

juancampa commented 8 years ago

FWIW, I get the feeling it might be related to this FIXME