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 backspace
list.
If one doesn't use indent
they may be unable to delete an empty line they 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?