-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unable to replace text in visual mode with paste #4685
Comments
I can't reproduce this. It works as expected here. |
Just tried to comment out all my layers and it works. So there must gotta be a one that causes this. Let me debug it |
Ok debugged it by commenting out my active layers and this is caused by |
I can confirm this and was surprised with this behaviour and wondered this must be the Vim way and continued using it! 😈 |
I faced this in hybrid style(hybrid state). I think |
Have been having this issue for ages. Did you find any good way to configure the osx layer to fix the issue? |
Actually, just tried disabling the Steps I used to reproduce:
|
Hi @aspett do you have any layer that uses your system clipboard in emacs? When I copy anything from web/(any other app) then I have this simple config defined in
This allows me to copy, paste and cut from/to my system clipboard using |
Heya @jacobjakub. No, I've tried disabling all layers and reverting to a stock config, but no joy. I was expecting that copying to system clipboard would allow me to paste via |
Same issue here While this is not yet solved, one can use kill-ring (SPC r y) to avoid looking for and copying source of attempted paste second time |
I am having the same issue with the |
I was having the same issue with spacemacs and my own configuration on Arch Linux. Found this solution here. It worked for me, hope it helps. |
this is a duplicate of #3735 |
@felipeagc Thank you so much bro :) |
I'm having a similar problem that sounds like the same root cause. If I System:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
@bobdanek This is a default vim behavior :)) https://vim.fandom.com/wiki/Remembering_previous_deletes/yanks type :reg to see all the registers |
Description
When I
y
ank a word and then in visual mode select a text that I want to replace pressingp
seems to delete the highlighted text which yanks it and paste it instead of the originally yanked text making it impossible to replace a text.Update
Seems like
osx
layer causes this weird behaviour.Reproduction guide
Highlight a word in visual mode.
press
y
to yank the selectiongo to a word that you want to replace
go to visual mode and select this word
press
p
Right now the word should be replaced with the yanked text but it's replaced with itself == makes no change to the word.
System Info
The text was updated successfully, but these errors were encountered: