In the command mode, enter:., $ D then Enter
Means to delete all from the current line to the last line
Represented by gg move to the first line
In the command mode, enter:., $ D then Enter
Means to delete all from the current line to the last line
Represented by gg move to the first line