Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

german umlaut ä is overmapped #14

Open
seebi opened this issue Apr 24, 2014 · 4 comments
Open

german umlaut ä is overmapped #14

seebi opened this issue Apr 24, 2014 · 4 comments

Comments

@seebi
Copy link

seebi commented Apr 24, 2014

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

@bruno-
Copy link

bruno- commented Apr 27, 2014

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.

@tpope
Copy link
Owner

tpope commented Apr 29, 2014

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

Koronen added a commit to Koronen/dotfiles that referenced this issue Sep 16, 2014
<M-d> conflicts with <ä>.

See: <tpope/vim-rsi#14>
@toupeira
Copy link

toupeira commented Nov 7, 2014

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.

@ghost
Copy link

ghost commented Aug 6, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants