backspace not working properly inside vim comEmu

6

3

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.

Vivek Kumar

Posted 2013-02-23T14:19:49.303

Reputation: 425

Which OS? Does it work if you use something else than conEmu? What does control-h do if you try it? – Hennes – 2013-02-23T15:48:14.767

Microsoft Windows7.

If I press Ctrl+H then it delete a character.

And I am getting the same issue from inside cmd.exe. But I use conEmu that why I have specifically mentioned it. – Vivek Kumar – 2013-02-23T16:12:05.597

I suppose, this may be a bug in ConEmu ANSI sequences processor. – Maximus – 2013-02-23T22:17:45.517

comEmu is perfect It is not having this bug. As this problem happens in cmd.exe also. – Vivek Kumar – 2013-02-24T09:09:13.500

Answers

3

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.

joon

Posted 2013-02-23T14:19:49.303

Reputation: 447