I have mapping for duplicating current line in insert mode
:
inoremap <C-d> <Esc>`^mzYp`zi<Down>
I want to set up it in a way it does not change default "
register by specifying some special register like a
or 9
:
inoremap <C-d> <Esc>`^mz"aY"ap`zi<Down>
inoremap <C-d> <Esc>`^mz"9Y"9p`zi<Down>
But yanking to this specific registers also affects default "
register.
How to yank to some register without touching default register? Copying to what registers will not affect default register? Or how to make key mapping that will not affect default register?