evil-unimpaired
evil-unimpaired copied to clipboard
]p uses different register
MWE
line 1
line 2
line 3
- Go to top of file:
gg
. - Delete the first two lines:
V j d
. - Yank "line 3":
yy
. - Paste from register 2:
"2]p
.
Problem
Step 4 doesn't work, but "2p
does.
Originally posted here.
Hi @mcp292 - just following from the evil issue. Can you expand your Problem
section? What does "doesn't work" mean? Expected
and Actual
would be useful. fwiw I installed evil-unimpaired and "2]p
seems to work for me.
I would expect that step 4 would paste from register 2 on a new line, but it pastes from register one in the above example. "2p
correctly pastes from register 2.
In other words, I would expect "2]p
to do what "2p
does, but one line down.
@mcp292 it does for me 🤷 If I type this at the terminal:
emacs -Q -L "path/to/evil" -l "path/to/evil.el" -l "path/to/evil-unimpaired.el" --eval "(evil-mode 1)" --eval "(evil-unimpaired-mode)"
(with the paths changed to match my system), and follow your steps, I get
line 3
line 1
line 2
which is what I would expect. Do you not?
That is what I expect, yes! I am unable to test on my system at this time.
Had some time to give this a shot. I cannot get the statement you sent to work. I'm trying:
emacs -Q -L "./.emacs.d/.cache/quelpa/melpa/recipes/evil" -l "./.emacs.d/elpa/28.1/develop/evil-20220807.2016/evil.el" -l "./.emacs.d/elpa/28.1/develop/evil-unimpaired-20220104.193445/evil-unimpaired.el" --eval "(evil-mode 1)" --eval "(evil-unimpaired-mode)"
It opens a plain emacs window, but not with vim bindings.
I guess I'd replace the dots at the beginning of those paths with tilde ~
because dot means current dir and that may not be your home dir?
Good suggestion. I made sure to run from home, where I called find
to get those paths, but it's worth a shot.
I tried it and got the same behavior. Did not work.
Ok yes worth a shot. I'm away from a pc for a couple of weeks but will take a look on my return
Enjoy the break!!!