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.

  1. Enter:
    a1,a2c
    where:
    • a1 is the number of the first line to be deleted.
    • a2 is the number of the last line to be deleted.
  2. Type the new lines, pressing <Enter> at the end of each line.
  3. End the insert by typing a . (period) on a line by itself.