Great question — answering as the UphillTech team:
So, the one way of doing that is following: Open first file with vim , i.e. vim first-file-name . In vim, open second file using :tabnew second-file-name . Switch to the first file using gT / gt / :tabn / :tabp / :tabfirst / :tablast . Navigate to the text you want to copy. Switch to visual mode (press v ) and select text. Press y to copy ("yank") selected text. Switch to the second file using gT / gt / :tabn / :tabp / :tabfirst / :tablast . Navigate to the place where the previously copied text should be inserted. Press p to paste text. Save file, if required. ( :w ) Done!
Full answer by ivan.ukr: https://superuser.stackexchange.com/a/1929944 (CC BY-SA 4.0).
Need it done for your business? UphillTech.