I want a shortcut for evaluating a yanked expression and pasting the result after the cursor.
Suppose I've written
i1+1<ESC>0y$$, now I'd like to paste the result of that,
2, after the cursor. Is that possible?
I can take that expression and replace it using bc, e.g.
i1+1<ESC>!!bc<CR>, but that's not what I want (although it's quite neat).
I can evaluate expressions and insert them into the text using
i<C-R>=1+1<CR>. I have
set clipboard=unnamedplus so I could take my yanked expression and paste it with ctrl+shift+v into the
i<C-R>= prompt, and then I pretty much have what I want.
Now then, how do I create a shortcut of that, i.e. of (pseudo)
If you know any other way of doing this sort of thing then that's fine too, thanks.