I have i-mapped <C-a>
, <C-s>
etc. to commonly used keys that I use often but find annoying to type normally, for example *
and _
. It works as expected in insert mode, but when executing a single-character replacement with r
, I get some kind of escape sequence instead.
I've tried nnoremap r<C-(key)> character
and nmap r<C-(key)> character
, but seemingly-random things happen when i execute r<C-(key)>
. Mapping to different characters (symbols) gives very different results. Prefixing the character with \
just makes nothing happen.
What is a way I can remap <C-(key)>
while replacing a character?