- 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.
VIM
Clear all lines
Switch to normal mode by pressing keyPress and it will take you to first line of the file.Then type and it will clear all the lines from start to the end of the file.
1 minute read