- Switch to normal mode by pressing
ESC
key - Press
gg
and it will take you to first line of the file. - Then type
dG
and it will clear all the lines from start to the end of the file.
ESC
keygg
and it will take you to first line of the file.dG
and it will clear all the lines from start to the end of the file.