Cut-and-Paste Between Files
Using Visual mode’s cut-and-paste functions, you can copy and move blocks of text between files.
You can only edit one file at a time in Qedit, but you can switch quickly between different Qedit files by Opening and Shutting them.
/o file1 Open file1 List * = 20 /o file2 {implicitly shuts file1} Shut file1 Open file2 List * = 48 /o * {open the last file that was shut} Shut file2 Open file1 List * = 20 /o * {open the second file again} Shut file1 Open file2 List * = 48
Note: The * shortcut refers to the last Qedit file that was shut.
Now, to copy a block of text from file1 to file2, use HH twice (just as you would use CC) to hold the block in file1. Then, open file2, and use AH or BH to paste in the text from the Hold file. To move a block from file1 to file2, use the DD function to delete the block of text from the first file. The deleted block is stored in a temporary Hold file called Hold0 (Hold-zero). Now immediately open file2 and use A0 or B0 to paste in the text from Hold0.