vim-rsi
vim-rsi copied to clipboard
german umlaut ä is overmapped
using vim-rsi, unfortunately I can not use my ä-key anymore ...
That seems to be caused by <M-d> mapping here.
Here's how I debugged (classic US keyboard btw):
- set
let g:loaded_rsi=1in .vimrc - have
set macmetain .vimrc - open macvim. Typing alt-d produces ä character in insert mode
- next, execute this:
noremap! <M-d> <C-O>dwand alt-d does not produce ä in insert mode anymore
Theory why this happens (I'm not 100% sure on this):
- character
dis represented with ascii01100100(that's 100 in decimal) - character
meta-dis the same asdbut with highest binary bit set to 1 -11100100(that's 228 decimal) - search for
11100100on the extended ascii page and you see it's umlaut-a character ä - to simplify
<M-d>is ä (and vice versa I suppose). WhenM-dis remapped, ä is changed as well
I hope this helps. I don't know the solution.
I'm afraid the only solution will be an option to turn off the meta maps.
Another option is to revert the <M-d> mapping in ~/.vim/after/plugin/rsi.vim:
iunmap <M-d>
cunmap <M-d>
if !has("gui_running")
set <F31>=
unmap! <F31>
unmap <F31>
endif
edit: Just realized with Neovim this isn't necessary anymore.
This is also the case when using the danish keyboard layout, where vim-rsi breaks the "æ" key.