When editing in vim, often enough I find myself stopping when I'm going to delete text and I notice that previously yanked text would become handy for next operations.
So - how to move already yanked text into particular register (e.g. under a)?
To move register 0
to register a
:
:let @a=@0
You can use something like:
noremap <leader>ma :let @a=@<CR>
Now, when you press \ma
in normal mode, your last yanked text will go to register 'a'.
Note : Assuming leader is '\'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With