After trying to make this work:
I can’t get the correct answer to work. Is it still working? Can anyone post a working .vimrc file?
I want to get this:
When I type
'a in insert mode I want vim to change it to
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 community
An easy way to get á by typing 'a in insert mode is to first
You might use digraph to enter á.
Just enter the sequence Ctrl-ka'.
Or: Set the option digraph with
:set digraph. Then you can enter á with aBackspace'.
Read more about digraphs with
If you need it regularly, the better solution seems
keymap as proposed by @troydj.