I recently came over some use for letters like æ, ø, and å. For context, these are available on my keyboard, and work fine in other programs. It's also a Norwegian keyboard if that's relevant.
With Vim, specifically gVim, only æ and ø work. Other combined letters (such as ö and â work out of the box (by typing
¨o). Attempting to write å results in various behavior I can't understand (with no remapping, pressing it shifts around lines or letters. Typing it in an empty buffer with no remapping pulls code from somewhere, possibly a swap file?).
I know I can type the letter with
<C-v> (as suggested here) or with
<C-k> å å, but this is slow and, in my opinion, unnecessary. Also,
<C-v> å results in
å, so I'm assuming I'm supposed to use it when attempting to remap.
I tried with
imap å <C-v> å,
imap å <C-k>å,
imap å <C-k> å,
imap å <C-k> å å,
imap å <C-k> åå, and the basic
imap å å, but none of them give me the letter. Remapping it to other output letters doesn't do anything at all (one of the other variants listed here resulted in an
How do I remap the key
å to actually give me the letter
å in insert mode?
When I haven't messed around with mapping,
:verbose map å says the key isn't used.