Vim backspace problem


Recommended Posts

when I use vim the backspace key doesn't work all it does is insert ^? into the text

who do I fix this I have tried things like

:fixdel

and

set backspace=2

but to no avail, anyone have any ideas

Thanks in advance

-zoot

Link to comment
Share on other sites

Thanks for the help guys, I finally fixed it. So just in case someone else has the same problem here's

what you have to do :

First fire up Xterm, Eterm, or Aterm, Cygwin, Rxvt or whatever you use and type

stty -a

and you should get something like this :

speed 38400 baud; rows 55; columns 166; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -tostop echoctl echoke

Ok, see where it says erase=^H you have change this, and to do this you need to insert the following into you .bashrc

stty erase ^?

Once you have done that, restart your *term and input stty -a and you should see that erase=^H is now erase=^?.

And thats it backspace problem solved. :)

-zoot

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.