cygwin + mintty + vim backspace problem

5,368

Solution 1

Cygwin's vim is configured to behave like traditional vi by default. Just create an empty ~/.vimrc, which causes vim extensions to be enabled and hence the Backspace and arrow keys to behave as expected.

Solution 2

Add

set backspace=indent,eol,start

to your .vimrc file.

Share:
5,368

Related videos on Youtube

life_is_a_for_loop
Author by

life_is_a_for_loop

Updated on September 17, 2022

Comments

  • life_is_a_for_loop
    life_is_a_for_loop over 1 year

    I have installed vim, mintty via cywin on XP. The problem is when I try to hit backspace in VIM edit mode, the cursor move back a character instead of wiping the previous char. How can I tweak this odd behavior?

  • Sorceri
    Sorceri about 13 years
    this was infact the solution. not creating an empty $HOME/.vimrc file. Thanks
  • Dan
    Dan about 11 years
    The empty .vimrc worked for my friend today. I do not have an empty .vimrc, but I also do not have the backspace settings you indicate above, and it works for me. I believe this indicates that for mintty, the empty .vimrc IS the solution. Or in other words, by having any .vimrc at all, the default settings are changed and in fact fix this issue (unless you .vimrc explicitly overrides them, of course).
  • Dan
    Dan about 11 years
    Worked for my friend today.