vim-rsi icon indicating copy to clipboard operation
vim-rsi copied to clipboard

german umlaut ä is overmapped

Open seebi opened this issue 11 years ago • 4 comments

using vim-rsi, unfortunately I can not use my ä-key anymore ...

seebi avatar Apr 24 '14 13:04 seebi

That seems to be caused by <M-d> mapping here.

Here's how I debugged (classic US keyboard btw):

  • set let g:loaded_rsi=1 in .vimrc
  • have set macmeta in .vimrc
  • open macvim. Typing alt-d produces ä character in insert mode
  • next, execute this: noremap! <M-d> <C-O>dw and alt-d does not produce ä in insert mode anymore

Theory why this happens (I'm not 100% sure on this):

  • character d is represented with ascii 01100100 (that's 100 in decimal)
  • character meta-d is the same as d but with highest binary bit set to 1 - 11100100 (that's 228 decimal)
  • search for 11100100 on the extended ascii page and you see it's umlaut-a character ä
  • to simplify <M-d> is ä (and vice versa I suppose). When M-d is remapped, ä is changed as well

I hope this helps. I don't know the solution.

bruno- avatar Apr 27 '14 22:04 bruno-

I'm afraid the only solution will be an option to turn off the meta maps.

tpope avatar Apr 29 '14 21:04 tpope

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.

toupeira avatar Nov 07 '14 21:11 toupeira

This is also the case when using the danish keyboard layout, where vim-rsi breaks the "æ" key.

ghost avatar Aug 06 '18 10:08 ghost