I'm a happy owner of a TypeMatrix 2030, as well as a happy vim user. On this keyboard the
<del> have a central place, while the
<esc> is the top-left key as usual. So I would like to remap my
<del> key to
<esc>. So far I added this lines to my
noremap <del> <esc> nnoremap <del> <esc> inoremap <del> <esc> vnoremap <del> <esc> xnoremap <del> <esc> snoremap <del> <esc> cnoremap <del> <esc> onoremap <del> <esc>
It almost works fine, except in the command-line mode : entering
:cmd<del> will launch the help as would
:cmd<esc> will erase the line and return to normal mode.
Here is the output for
:verbose cnoremap <Del>:
c <Del> * <Esc>> Last changed in ~/.config/vim/vimrc
Output for others modes give a similar result, with the strange double chevron
>>, but works fine (typing while in insert mode will switch to normal mode).