Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting after black hole deletion doesn't work #7

Open
AndrewRadev opened this issue Apr 19, 2014 · 0 comments
Open

Pasting after black hole deletion doesn't work #7

AndrewRadev opened this issue Apr 19, 2014 · 0 comments

Comments

@AndrewRadev
Copy link

I have a similar problem with my own plugin, here: AndrewRadev/whitespaste.vim#2.

If you try to "_dd and then immediately hit p, nothing happens. Only after you type p a second time does pasting work.

From my investigation, it seems like the v:register variable is not reset correctly after the "_dd operation. I opened a thread on the vim-dev mailing list which might provide a good solution, but one way to avoid the issue for the _ register in particular is to check for it explicitly. Sadly, this doesn't solve the larger issue, but might at least help for the common case of black hole deletion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant