vGx
Enter visual mode, go to end of file, delete.
Alternatively, you can do:
vggx
To delete from the current position to the beginning of the file.
vGx
Enter visual mode, go to end of file, delete.
Alternatively, you can do:
vggx
To delete from the current position to the beginning of the file.