Comment by aidenn0
1 day ago
Still haven't found a way to delete the current line in Helix (even if the current line is blank; "xd" will delete the current non-empty line, but will delete two lines if the current line is empty).
1 day ago
Still haven't found a way to delete the current line in Helix (even if the current line is blank; "xd" will delete the current non-empty line, but will delete two lines if the current line is empty).
Just use X.
Ah, so Xd will always delete the current line and e.g. X2xd will delete 3 lines. Still not as nice as dd/3dd like in vim, but at least I don't have to keep extra state in my head.
I just use “d” for empty line.
Annoying, isn't it? I am running a trivial fork to change the `x` behavior on an empty line.
https://github.com/helix-editor/helix/pull/4847
I think I will be using that patch; thanks!