I know there is a possibility to run a macro in multiple buffers using bufdo
.
However, what I'm not aware, if there is somehow to use a "intercommunicated macro", e.g:
File 1:
foo
bar
bun
File 2:
{
}
Some pseudo macro: ggD(move to buffer 2)o "^R"": "^R"",(move back to buffer 1)
The result of such macro would be (after 3 iterations would be):
File 2:
{
"bun": "bun",
"bar": "bar",
"foo": "foo",
}
:b2
and:b1
in the macro?