I use nvim with a German keyboard (on a Mac) and have remapped some keys to do something more useful for me. This is what that part of my init.vim
looks like:
nnoremap , :
nnoremap : ,
imap ö (
imap ä )
imap Ö [
imap Ä ]
imap ü {
imap Ü }
imap ß \
nmap ß \
nmap ö /
My problem is that when I use, for example f{
, it tries to find the character ü
instead, and the same for all remapped characters. I tried other types of maps, but that does not seem to help.
EDIT: I also just checked on my Linux machine, and this does not seem to be a MacOS issue, the behaviour is the same there (perhaps unsurprisingly).
EDIT2: I have reduced my init.vim
to just the above. The command :verbose nmap {
returns No mapping found
.
Furthermore, what I noticed is that if I am in normal mode and type //
, below I see /ö
instead -- i.e. it seems that the first instance of /
is remapped correctly, but once I am inside the /
-command, it is not.