Another useful operation enables blocks of text to be moved from one part of a
document to another. Set markers to indicate one of the verses in your Ten
Green Bottles document. Position the cursor elsewhere in the document and
press:
+ f0 (MOVE BLOCK)
The marked verse will be transferred to the cursor position. You will notice
that, unlike the COPY operation, the markers are automatically cleared after
MOVE BLOCK. The reason for preserving markers after copying is to facilitate
a repeated copy as when compiling Ten Green Bottles.
The other block operation to be aware of is deletion, executed by setting
markers and pressing:
+ f0 (DELETE BLOCK)
Any text below the deleted block moves up to close the gap.
Using CHANGE
Suppose you have typed in a document and you realise that a word has been
consistently misspelt. You could search for each mistake and edit it
independently. In a long piece of text, however, you may have to make the
same correction many times and one or two occurrences may be missed.
It is easier using the CHANGE facility, which can be illustrated with your Ten
Green Bottles document.
From the command screen, type:
CHANGE/green/red/ VIEW
responds with a message such as
50 string(s) changed
If you switch to the text screen and examine the document you will see that all
occurrences of green have been changed to red.
You can also change the into a by typing:
CHANGE / the/ a/
but the result may not be quite what you expect. The problem is that VIEW
has, quite rightly, identified every occurrence of the whether it occurs alone or
as part of there, they, lithe or pathetic. One way to overcome this problem is to
apply CHANGE not to the alone, but to the together with spaces before and
after. In other words, VIEW will search for / the / rather than /the/
You can try this technique by changing a back to the, avoiding the creation of
words like hthenging and fthell. Switch back to the command screen and type:
D ll