- Switch to normal mode by pressing
ESCkey - Press
ggand it will take you to first line of the file. - Then type
dGand 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.