I want to keep in the undo history just one change for a long command such as: d0kJx
. (I took the command from this answer.)
This command (d0kJx
) does this (The ^
is the cursor position):
Before:
a bc def ghi
j k l mn o p q rs
^
After:
a bc def ghimn o p q rs
^
If this is possible, how can I do this? I think that maybe the answer is to extend the command in some way.
Thank you very much! :-)
hvk$d
—is also undoable with a singleu
.