What is the proper way to have a destructive backspace key in command mode that works like the X key in vim version 6.4.6. That is, the backspace key should move to the left and delete the character there.

Currently my backspace key backspaces but does not delete the character to the left. All other programs in my Kubuntu 6.10 work properly.

Insert mode works correctly.

Is it possible to 'alias' the X key to backspace?
I do not want to change any Linix config files except .vimrc

You can easily add the following line to your .vimrc:

        nnoremap <bs> X

(typed literally with greater-than and less-than signs) which will do exactly as you describe, "alias"ing the backspace key to behave like "X".

This is actually described here:

        :help <bs>

You can learn more about vim's remapping abilities here:

        :help :map

and more about the key-notation used:

        :help <>

-tim



Reply via email to