evil icon indicating copy to clipboard operation
evil copied to clipboard

Combined ex commands deviate from Vim behavior

Open mcp292 opened this issue 3 years ago • 5 comments
trafficstars

Combined ex commands deviate from Vim behavior

MWE

1
2
3
4
5

With cursor on the line with 5:

  1. Yank 3 lines up and put below: :-3y | put.

Should get:

1
2
3
4
5
2

Problem

Spacemacs is giving:

  1. Invalid count in the minibuffer with :-3y | put.
  2. Invalid register in the minibuffer with :-3y|put.

mcp292 avatar Nov 18 '22 00:11 mcp292

Yes, bar is not implemented in evil's ex. It requires quite a lot of work, because we need to manually tag every ex command as either supporting it or not (because some commands see it as an argument and others don't). PR welcome, although I do expect to take a look one day.

tomdl89 avatar Nov 18 '22 09:11 tomdl89

Does the list in :help :bar not cover it?

mcp292 avatar Nov 18 '22 17:11 mcp292

Probably. My point isn't that someone has to work out what that list is. My point is that someone has to go through every equivalent in evil and tag it, then add logic to handle the tags. Doable, but not a trivial amount of work. Not time that I have found recently.

tomdl89 avatar Nov 21 '22 09:11 tomdl89

I am not a lisp programmer, but I can volunteer some time if you get me started. I can at least cover the contents of that list, and users and maintainers can add to it as they're found.

mcp292 avatar Nov 22 '22 18:11 mcp292

Duplicate of #584

axelf4 avatar Aug 06 '23 11:08 axelf4