While in INSERT mode, I'd like to make
<c-r>* behave as
<c-r>+. Is that possible?
I tried both of the following, but no luck:
inoremap <c-r>* <c-r>+ onoremap * +
Is it possible to do it?
EDIT, Dec 11th: The solution I tried (
inoremap <c-r>* <c-r>+) is the answer, but sometimes that doesn't always work, and I'm not entirely sure why (it might have to do with timeouts as mentioned in the comments, and sometimes the timeout behavior changes on me at some random point into my NeoVim session).
EDIT, Dec 12th: This is what I'm trying to achieve, as per a comment I wrote in my vimrc:
" COPY/PASTE " Make "* behave the same on all OSes. In linux, "* uses the " SECONDARY register for pasting with a mouse middle click, but I " never use that. In OS X, "* uses the same register as "+, which " is the behavior I like. noremap "* "+ inoremap <c-r>* <c-r>+