Solved [Solved] Vim won't backspace

Whenever I use the "append" or similar features in vim from ports, the backspace key does not work. For example, if I would like to delete the last word of this sentence:

This is a sentence.
I would navigate to the line, hit "A" to open the insert cursor at the end of the line, and hit backspace a few times. The last part doesn't work.

Since I'm on a Mac, the backspace key is actually labeled "delete." Perhaps this has something to do with it?

This happens in URxvt, Xterm, and the console without X.

Further information:
Code:
VirtualBox 4.3.6
FreeBSD 9.2-RELEASE
Mac OS X Mavericks
MacBook Pro 8,2
Intel Core i7 @ 2.2 GHz (2 cores allocated to FreeBSD)
8 GB RAM (4 GB allocated to FreeBSD)
 
Re: Vim won't backspace

Add:

Code:
set backspace=2
to your vimrc configuration file to enable backspace to work like your you're most likely used to in vim

Edit: (Off topic) Drats! Busted for grammar. Thanks. :r
 
Re: Vim won't backspace

@fonz, :set backspace resulted in
Code:
backspace=

protocelt said:
Add:

Code:
set backspace=2
to your vimrc configuration file to enable backspace to work like your you're most likely used to in vim.

That worked perfectly! Thanks!
 
Last edited by a moderator:
fonz said:
http://vimdoc.sourceforge.net/htmldoc/options.html#%27backspace%27

Note that the numbered values are for backwards compatibility. My ~/.vimrc actually contains:
Code:
set backspace=eol,indent,start

I was not aware of that. I've always used the equivalent numbered values in my configuration file. Thanks for that information.
 
Back
Top