evil-unimpaired icon indicating copy to clipboard operation
evil-unimpaired copied to clipboard

]p uses different register

Open mcp292 opened this issue 1 year ago • 10 comments

MWE

line 1
line 2
line 3
  1. Go to top of file: gg.
  2. Delete the first two lines: V j d.
  3. Yank "line 3": yy.
  4. Paste from register 2: "2]p.

Problem

Step 4 doesn't work, but "2p does.

mcp292 avatar Aug 23 '22 22:08 mcp292

Originally posted here.

mcp292 avatar Aug 23 '22 22:08 mcp292

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.

tomdl89 avatar Aug 25 '22 08:08 tomdl89

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 avatar Aug 25 '22 17:08 mcp292

@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?

tomdl89 avatar Aug 26 '22 14:08 tomdl89

That is what I expect, yes! I am unable to test on my system at this time.

mcp292 avatar Aug 31 '22 18:08 mcp292

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.

mcp292 avatar Sep 08 '22 23:09 mcp292

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?

tomdl89 avatar Sep 09 '22 08:09 tomdl89

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.

mcp292 avatar Sep 09 '22 16:09 mcp292

Ok yes worth a shot. I'm away from a pc for a couple of weeks but will take a look on my return

tomdl89 avatar Sep 09 '22 16:09 tomdl89

Enjoy the break!!!

mcp292 avatar Sep 09 '22 17:09 mcp292