Here’s a video tutorial I made on ranges in vim and sed. Hope it’s helpful!