In my .vimrc I have
set backspace=eol,start, which allows me to backspace over line breaks and the start of what I wrote since I entered Insert mode. This does not allow me to backspace over autoindents though. For that one can add
indent to the
If one doesn't use
indent he may be unable to delete an empty line he just added, because if an autoindent was created it cannot be deleted and therefore the line break cannot be reached and deleted.
On the other hand, when using
indent the backspace key deletes only one tab at a time (not sure what it does when indenting with spaces). This can be annoying if you are writing say a deep nested loop.
So my question is: while in Insert mode, is there a way to delete all the autoindents in one line by using the backspace key only once?