Deleting lines of text

Use the d (delete) subcommand to delete one or more lines of text. After you delete a line, the first line following the deleted line (or lines) becomes the current working line. After a line is deleted, the remaining lines in the buffer are renumbered.
  • To delete the current working line, enter:
    d
  • To delete a specific line number, enter:
    nd
    where n is the line number.
  • To delete more than one line, enter:
    a1,a2d
    where a1 is the number of the first line and a2 is the number of the last line.