# Enter the editor mode.vim your-file.txt# Go to the first line.gg# Empty the file content.dG# Save and quit.:wq