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?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityI'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?
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