Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to copy from one split and paste in another in byobu?

So let's say I have two splits open in byobu, side by side. Furthermore, both splits have different files open in vim. I want to highlight text from one file in one split and copy it to a separate file in the other split. Any ideas?

All the results I found while searching for this talked about using the scrollback feature to copy and paste in byobu, however, that only seems to work inside a single split; not across splits.

like image 679
Ross Allen Avatar asked Sep 18 '14 23:09

Ross Allen


1 Answers

Looks like I posted to quickly; seemed to have found the solution. I followed the steps found here:

http://linuxcommand.org/lc3_adv_termmux.php

I followed the steps:

shift-f3 - move to split to be copied from

alt-pgup - enter copy mode

space - start selection

cursor through desired text

enter - end selection

shift-f3 - shift focus to split to copy to

ensure receiving vim is in insert mode

alt-insert - paste selected text

like image 133
Ross Allen Avatar answered Nov 15 '22 09:11

Ross Allen