Fandom

Vim Tips Wiki

Erasing previously entered characters in insert mode

Redirected from VimTip17

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

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

Or:

: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.

ReferencesEdit

CommentsEdit

Good work!

Also on Fandom

Random Wiki