Monday, September 14, 2009

VIM's Backspace Problem

On clic machines, when I type [BACKSPACE] trying to delete the character to the left of the cursor, I get a ^? inserted. This is caused by a wrong mapping from ^H to ``erase character'' in ~/.bashrc.

Two solutions:
  • Remove the mapping in your ~/.bashrc file. In my case, that line is ``stty erase ^H''.
  • Add to your ~/.vimrc file this line: set t_kb=[press CTRL+V][press BACKSPACE]. [press CTRL+V] and [press BACKSPACE] mean you must press the two keys in this order.

No comments: