In insert mode, typing normally moves the cursor right and pushes text to the right of the cursor farther to the right on the line. I am typing some right-aligned text and am wondering - is there a way to tell vim to leave the cursor where it is while inserting, and move text preceding the cursor to the left? (Discarding whatever falls off the beginning of the line is fine.) I can't find a way on SO or wikia, and there may not be one, but I thought I'd check.
The closest thing I have found is
gR<Ctl-D> (virtual replace mode), but that lets me blithely overwrite what is past the cursor position where I started.
Use case: I have this situation:
<line of source code that does something> <tricky part> comment explaining tricky part(*) ^^^^^^^^^^^^^
and want to add text at the place marked
(*) without moving the
^^^^^^^^^^^^^, by pushing
comment explaining tricky part to the left.