I recently needed to copy X amount of lines from a file, that I opened in vim
and then paste them to another file opened in a different screen session (and different server).
So on screen #1 I ran in vim
:
:15,20y
and on screen #2 I tried to use p
to paste the lines, but I couldn't because the register was empty (to be honest, I was expecting that but I just wanted to give it a try).
I eventually worked my way around in order to get those lines to the right place, but I wonder if it is possible to copy-paste data between screen sessions.