I want to press CTRL-;
to generate the special character ö
. I have tried to write this line in my .vimrc
inoremap <C-;> <C-K>o:
but nothing happens when I press CTRL-;. What am I doing wrong?
I want to press CTRL-;
to generate the special character ö
. I have tried to write this line in my .vimrc
inoremap <C-;> <C-K>o:
but nothing happens when I press CTRL-;. What am I doing wrong?
If you already have ö
, why not use it directly?
inoremap <key> ö
Anyway, the core issue, here, is that the control character ^;
doesn't exist. This means that TUI Vim, which cares about characters, not keys, can't see that Ctrl+;
you pressed and thus can't do whatever you mapped to <C-;>
.
I would suggest you find another mapping.