Example of how to remove lines from a to b using vi editor ?
Table of contents
1 -- Remove lines from a to b (with b>a)
To delete lines from a to b, a solution is to use the command:
:m,nd
Note: to remove from the current line to line n:
:,nd
2 -- Remove all lines
Note: to remove all content in the file:
:1,$d