Vim Tips Wiki

Changes: Erasing previously entered characters in insert mode


Back to page

(Remove html character entities)
Line 25: Line 25:
Good work!

Latest revision as of 07:50, August 2, 2011

Tip 17 Printable Monobook Previous Next

created February 24, 2001 · complexity basic · author Yegappan · version 5.7

In insert mode, to allow the backspace key to erase previously entered characters, autoindent, and newlines, set the following option:

:set backspace=indent,eol,start


:set backspace=2

By default this option is empty, not allowing you to backspace over characters that weren't entered during the current insert mode session, the automatically inserted indentation, or across line breaks. This is the standard vi behavior.



Good work!

Around Wikia's network

Random Wiki