-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Pasteboard(or register) will be rewrite if paste something on visual mode #1743
Comments
It's a result of this: #1280 It seems that we shouldn't be yanking to the specified register. |
Well, I gotta change my method. |
No, it's a valid bug. I was just noting the cause. |
Fixes #1743: Fixed pasting over visual mode with named register overwriting the named register
this behavior appeared since a few versions back, I thought it would be fixed soon since it's so buggy, now I'm still experiencing it, nobody use this function like this ??? |
@DrakeXiang The behavior seems to be correct for me, |
@Chillee Ok, turns out this is the correct behavior in vim, didn't know that... so this is painful if you have to paste multiple times |
@DrakeXiang Yeah :( The right thing to do is to copy into a register with |
@chibicode Thanks for the workaround. This should be standard though? |
This is the expected behavior in vim. I have to override in in vimrc usually. I'm glad I know how to override it in vscode now as well, thanks! |
Using the configuration from @chibicode does not work for me. Pasting overwrites the register still and consecutive pastes do not apply the initially yanked content. Any advice on this? |
Maybe more info from my side. I figured I can select and paste the right content multiple times with |
@xh3b4sd This is expected behavior. From
|
I understand that. My question is how I can just repeat the last paste. I am used to only type |
@chibicode 's workaround is okay, but I found that it doesn't work with multiline operations too well, as the document will scroll to the last yank. This is jarring to say the least.
|
Any updates to this? It would be fantastic if there was a config setting that would prevent the yank register from being overwritten when you paste over something in visual mode. EDIT: I found this to be a great solution:
|
"vim.normalModeKeyBindingsNonRecursive": [ "vim.visualModeKeyBindingsNonRecursive": [ worked for me better |
|
This works.
|
If anyone needs it, this is my solution: "vim.visualModeKeyBindingsNonRecursive": [
{
"before": [
"p"
],
"commands": [
"editor.action.clipboardPasteAction",
"extension.vim_escape"
]
}
], |
The VSCodeVim team prioritizes issues based on reaction count.
BUG REPORT
Environment:
What happened:If you copy something to pasteboard like "aY, then select some new stuff in visual mode, then "ap, that's exact what you want, but if you do it again, "ap, the word selected in last visual mode will be pasted.
What did you expect to happen: In last version, things go well, what I keep in register[a] will be pasted, instead of replaced one.
How to reproduce it:Always happen.
The text was updated successfully, but these errors were encountered: