Backspace key not working in vim

All we need is an easy explanation of the problem, so here it is.

I am using vim under Terminal.app and just a few days ago the backspace key stopped working. Whenever I am in insert mode, the backspace key does nothing.

However, when I am in normal mode, the backspace key moves the cursor back a character. In visual mode, the backspace key deletes selected text.

My .vimrc.

Is there any way to get the backspace key working in insert mode again?

How to solve :

I know you bored from this bug, So we are here to help you! Take a deep breath and look at the explanation of your problem. We have many solutions to this problem, But we recommend you to use the first method because it is tested & true method that will 100% work for you.

Method 1

If you didn’t change anything, it’s odd that it was working and now isn’t. That aside, I normally add this to get the most out of the backspace key with Vim:

set bs=indent,eol,start     " Backspace over everything in insert mode

Note: Use and implement method 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply