I have just started using vim. Due to that I don't instinctively hit the x/X key to backspace. This causes me problems as the backspace key moves you over as if you were hitting h in command mode. I wanted to know if there was a way I could disable this so that in command mode the backspace button does nothing.
I tried looking this up online and I found this:
On some Linux systems, pressing backspace in xterm or uxterm will move the cursor left (without deleting the character). To fix, add:
xterm.*backarrowKey: false
To your .Xresources file and run:
xrdb -merge ~/.Xresources
credit: http://vim.wikia.com/wiki/Backspace_and_delete_problems
But it did not change anything. I am running vim on the command line in Bunson labs.
Any help you can give me would be great.
<Nop>
should work. Try:nmap <Backspace> <Nop>
in vimrc or command lineset backspace=2
, and backspace should work. It doesn't disable backspace like you asked, but it still fixes your problem.