I often accidentally press return while typing in insert mode. To undo the accidental return, I typically press backspace several times. First to remove all the automatic indentation, and then, finally, to remove the newline.
Is there a better way. Something along the lines of undoing the effect of the last keystroke?
In the exact same situation, I do <C-w><C-w>
. <C-w>
is a great asset to have in insert mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With