In command mode there is no delete from cursor to the end of line (like CTRL-k
in bash).
So to delete a long line of trailing text, I press and hold delete, which works fine until it runs out of characters to the right of cursor, and which points it starts steam rolling over the part of the command I wish to keep (i.e. starts backspacing).
Is there anyway to turn off this unusual behaviour, as confirmed by the help:
<Del> Delete the character under the cursor (at end of line:
character before the cursor).
PS I know about CTRL-F
to see the cmdline
, but sometimes I wish to quickly change the end of an existing command.
<C-u>
? I think it works IIRC (edit: misread. You need to delete the other way. Hm.)