Thursday, February 09, 2006

Fix Backspace Key Problem in vim

Problem :

In my SUSE 9.3 Professional there is a problem in vim. The backspace key only delete new text and it doesn't delete old text, it just gives me a system beep.

So, for example, if there is already text in the file, I cannot delete it. But if I insert new text and immediately hit the backspace key, it will delete it, but only up to the begging of the new text I have typed. If I type some new text and use the arrow keys to move around I can no longer delete the new text using the backspace key.

I can however always use the delete key to delete any text., but the delete key is not able to delete blank line.

Solution :

Just put the following in your .vimrc :

bs=2
source :
http://www.plug.org/pipermail/plug/2004-May/010431.html

1 comment:

juampa said...

Hi there,

besides the standard documentation in the corresponding Howto (http://tldp.org/HOWTO/Keyboard-and-Console-HOWTO-5.html), THE reference on this topic is,

http://www.ibb.net/~anne/keyboard.html