I'm trying to find a way to map German umlaut keys (Ä,ä,Ö,ö,Ü,ü).

A simple shortcut like this won't work:

inoremap <c-ö> <Esc>

Nothing happens when I hit ctrl+ö.

Does anyone know a solution to this?

  • 4
    Perhaps this answer helps? stackoverflow.com/a/21389290/5260921
    – cbaumhardt
    Feb 23 '16 at 2:15
  • It helps.. Though the answers make me sad.. :'-|
    – Rotareti
    Feb 23 '16 at 2:31
  • I understand, I have been there too :( I settled to use QWERTY instead of QWERTZ layout, which has many benefits for programming...
    – cbaumhardt
    Feb 23 '16 at 2:56
  • 2
    faq1 and faq2 Feb 23 '16 at 10:55
  • 1
    @le0m, inside Vim I use digraphs (in insert mode press Ctrl + K, then e.g. o:), and inside regular Linux environment for writing mails or so I use a keyboard shortcut (GNOME compose key)
    – cbaumhardt
    Feb 23 '16 at 12:46

Vim (though I cannot attest if this is true for every build and version) actually only handles valid ASCII control codes.

This is why when you press Ctrl + M, Vim actually gets a special "control code" (0D in this case), while there is no such code for Ctrl + ,, so it cannot be mapped.

There is an interesting discussion on that very subject here: https://groups.google.com/forum/#!topic/vim_dev/Ym6D-kWIsyo


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.