$ vi +START,ENDd +wq sample.txt
Deletes lines from START to END, inclusive. For example +4,10d will delete line 4, 5, ..., 10. Just like the vi command :4,10d does it.
Image may be NSFW.
Clik here to view.
by David Winterbottom (codeinthehole.com)