Backspace does not work in Cygwin

Solution 1:

In my case backspace was not at all working after creating blank ~/.vimrc. Following change made it work

Put:

set bs=2

in .vimrc

Found this at http://linux-journal.blogspot.com/2005/04/fix-vim-backspace-doesnt-work.html

Solution 2:

Worked for me: In the Windows command prompt, type

echo export TERM=cygwin >> C:/cygwin/home/YourUser/.bashrc

This will add it to the .bashrc and everything may work nicely!