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.
Related videos on Youtube
Author by
life_is_a_for_loop
Updated on September 17, 2022Comments
-
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 about 13 yearsthis was infact the solution. not creating an empty $HOME/.vimrc file. Thanks
-
Dan about 11 yearsThe 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 about 11 yearsWorked for my friend today.