To use the Spanish layout one has to remap an accent like the one over o:
: in Normal Mode. How can I do this in my
.vimrc? I have to handle the accent only, not a character; I have no idea how to approach this task.
Open vim. Enter insert mode (
i), then type Ctrl-V (
<C-V> in vim notation) and hit your umlaut key. That should give you the key that vim sees, if any. You can map that key by
nnoremap <umlaut> :
<umlaut> you enter via the Ctrl-V as above.
If that method doesn’t produce a distinct key, but instead waits at another level (the terminal emulator, keyboard, window manager, OS, &c.) then you’ll need to fix it at that level somehow.