vim FAQ: How do I delete all lines in the current text file in vim?
To delete all lines in vim, use this command:
This "vim delete all lines" command can be read like this:
- Beginning at line 1, and
- Ending at the last line in the file (represented by the '$'),
- Delete each line.
I hope this vim "delete all lines" command example has been helpful. If you need any more details/discussion just leave a command below.