Behavior change request: Selecting an empty line with x. #7890
Unanswered
demon-venerable
asked this question in
General
Replies: 1 comment 2 replies
-
This was discusses a million times in (closed) issus and PRs right now. Try using the GH search to find some prior discussion of why this command works as it does. If you don't need the extending behaviour you can use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Selecting an empty line with x also selects the line under it. This is off-putting and breaks the flow when deleting lines with xd.
I believe the behavior of x only selecting the current line even if it's empty is more intuitive as you don't have to think whether a line is empty or not when deleting it.
For comparision, kakoune's xd and vim's dd only deletes the current line, even if empty.
Beta Was this translation helpful? Give feedback.
All reactions