I recently discovered an Ex Reference Manual and decided to explore Vim’s colon prompt for a bit. I discovered some interesting things that I didn’t know. First a few of the basics:

You can delete line 33 like so:

:33d

You can delete lines 10-15 like so:

:10,15d

You can indent or unindent lines with > and <:

:12,42>

Most of the things you can do with sed, you can do from the ex prompt.