Comments (3)
Fascinating problem. From what I'm seeing, this looks like a bug in Vim.
Both whitespaste and vim-pasta use the v:register
variable, which is set to the register you used to paste. For instance, performing "ap
would set v:register
to a
and then the plugins can take the value from that register and paste it.
Oddly enough, performing "_dd
sets v:register
to _
. Well, this in particular is not odd, but after the mapping is performed, v:register
is not reset to its default value, causing this issue.
If you "_dd
and then move a bit, for instance just press j
, you will then be able to paste correctly, since the v:register
variable is cleared as it should be.
The good news is I just pushed a workaround for your issue within whitespaste. The bad news is that this is not a general solution, since the same issue exists with any other register. Also, vim-pasta has the same issue due to the author using v:register
in the same way. I'll open up an issue there as well and I'll write to the vim mailing list for a more general solution.
from whitespaste.vim.
Thank you Andrew,
For the thorough response and the preliminary workaround.
I understand that Vim should not set the v:register to the black hole register, as its whole point is not to paste what has been deleted last.
Let's see what the vim_dev thread brings about!
from whitespaste.vim.
There's not much more I can do about this issue, I think. I wish I'd pasted a link to the mailing list thread, but either way, I'm pretty sure I got no response :/.
I'm going to close this issue for the moment.
from whitespaste.vim.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitespaste.vim.