Reputation: 2399
I want to switch to using vim but I have one major requirement for any editor:
I need to map the ` key to the = key (as I've made the equals key the backspace key as the real backspace doesn't work (long story haha))
I can't seem to find anyway of doing this in vim (baring in mind I'm quite a noob at it.) There are a lot of references to :map
but I can't get that to work how I want. Any help for a newbie?
Upvotes: 3
Views: 1202
Reputation: 161704
You can try this key-mapping:
:inoremap ` =
I also find it useful to use Ctrl-H as backspace key in insert
mode.
Upvotes: 2
Reputation: 79185
You just put this into your vimrc:
nnoremap ` =
xnoremap ` =
inoremap ` =
cnoremap ` =
onoremap ` =
which will remap ` to = in normal, visual, insert, command-line and operator-pending modes resp.
See :help map
for more information.
Note that it would probably better to remap '
than `
, the latter being more useful (go to mark, keeping column number).
Upvotes: 7