← Back to context

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).

    x Select current line, if already selected, extend to next line extend_line_below

    X Extend selection to line bounds (line-wise selection)

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.