Hi, Marcus MERIGHI wrote on Mon, Apr 24, 2017 at 08:46:33PM +0200: > florian.ermi...@mailbox.org (Florian Ermisch), 2017.04.23 (Sun) 22:32 (CEST): >> Am 23. April 2017 15:30:02 MESZ schrieb Unixway1 <unixw...@protonmail.com>:
>>> How copy and paste between xterms? >> tmux > It is not vi(1)'s job to copy between terminals (or emulators). > You can copy to clipboard There are lots of ways. In addition to the other suggestions, you can also open multiple files in in vi(1), copy and paste with vi(1) commands, and switch files with ex(1) commands in between. For example: schwarze@isnote $ cat test1.txt text in test1 schwarze@isnote $ cat test2.txt text in test2 schwarze@isnote $ vi test[12].txt Inside vi(1), i now typed: yy # to copy the current line into the yank buffer :n # to switch to the next file p # to paste the yank buffer :wq # to save and exit from vi(1) The result is: schwarze@isnote $ cat test2.txt text in test2 text in test1 There is more than one way to get your work done efficiently. When using the X11 clipboard as described by Marcus, be wary about its bad habit to turn tabs into spaces, so don't do that when copying source code or patches. Yours, Ingo