I'm trying to write what I thought would be a simple macro to take some values that have been yanked into some registers (a & b) and use
bc to do some addition with those values.
Here is the expression/part I'm stuck on...
:let @c=trim(system("echo '@a + @b' | bc"))
if I replace those
@b references with the register contents manually then the expression/command works as expected.
Any idea what I'm missing here?