Sometimes I forgot to press ESC to return to command mode and enter :w<enter> in some line I was editing. So I get the following:
some line of code:w
    I was typing
   ^ cursor position
So what I do is pressing ESC+k+A+Backspace+Backspace+ESC+j or something similar.
Someone has a shorter/better/quicker way of doing this?


:%s/w:$//to a key and use it whenever you mis-typing.