Changing lines of text
To replace one or more lines with one or more new lines, use the c (change) subcommand. This actually deletes the lines you want to replace and inserts the new lines.
- Enter:
where:a1,a2c
- a1 is the number of the first line to be deleted.
- a2 is the number of the last line to be deleted.
- Type the new lines, pressing <Enter> at the end of each line.
- End the insert by typing a . (period) on a line by itself.