1. # Enter the editor mode.
    2. vim your-file.txt
    3. # Go to the first line.
    4. gg
    5. # Empty the file content.
    6. dG
    7. # Save and quit.
    8. :wq