Windows – Cygwin Terminal backspace and arrow keys not working

cygwin;terminalwindows

The arrow keys returns A,B,C,D and my backspace key are not working properly . This problem happens only with the vi editor.Is there any way to solve this issue on Cygwin ?

I did find possible duplicates for this question but i was not able understand . Someone please provide me step-by-step instruction for an absolute beginner like me.

Best Answer

The best answer I have found so far is to copy Cygwin VIM's sample vimrc file:

cp /usr/share/vim/vim*/vimrc_example.vim ~/.vimrc

Solves all of the weird keymap issues I was seeing plus adds some extras like syntax highlighting.

Source