Delete n lines in vi editor

Repeat dd (delete current line) 100 times:
Delete from current line to 99 lines forward
Delete 100 lines backwards from (including) the current one
Delete lines in a specific range by line number
Delete lines in a range beginning with the current line

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *