Mason
Mason

Reputation: 7103

Overriding Ctrl+H in vim

I'm sorry, for some reason I'm having a lot of trouble figuring out how to map my backspace button to Ctrl+H in my vimrc file. I've looked a lot online, and haven't found anything that seems to work.

Any help is much appreciated.

Upvotes: 0

Views: 2434

Answers (2)

Lifu Tang
Lifu Tang

Reputation: 1299

You should check your terminal type, and set your $TERM to correct value. It's not a good idea to use map in vim to work around this issue.

Upvotes: 1

GWW
GWW

Reputation: 44093

This worked for me:

:imap ^H <Left><Del>

So does:

:imap ^H <BS>

Upvotes: 0

Related Questions