I have recorded a vim macro in one screen window. In same screen session, I have multiple windows.
How to make macro I recorded in 1st screen window across other screen windows / across screen sessions ?
Do we have to do something with vim registers for this ?
If the two screen windows show two separate Vim instances on the same machine
If Vim is built with clipboard support
In the Vim instance where you recorded that macro, put the content of the macro's register into the clipboard register:
In the other Vim instance, put the content of the clipboard register into a named named register:
If Vim is not built with clipboard support
Vim stores registers in a
.viminfofile. You are theoretically allowed to write to and read from arbitrary.viminfofiles but it can lead to unwanted loss of state in Vim. Read:help viminfo-read-writevery carefully and proceed with caution.