Backspace not working properly inside vim comEmu

conemuvim

When I start vim from inside conEmu, then backspace is not working properly. I know its not a conEmu issue. It's a vim problem with console. I tried all things like

stty erase ^H, stty erase '^?', set bs=2 etc.,

I have also tried the advice at
Backspace key not working in vim

but none of this worked!

Any advice for solving this.

Best Answer

I fixed the backspace problem I had with ConEmu in the terminal vim (backspace registered as delete) by adding the following lines to my .vimrc file (or _vimrc):

inoremap <Char-0x07F> <BS> nnoremap <Char-0x07F> <BS>

See https://github.com/Maximus5/ConEmu/issues/641.

Related Question