vim select all and delete
Press "esc" button;
Type: ggdG
delete all lines in vi
#in command mode
gg #takes you to the first line
dG #deletes all
delete whole line in vi
#In vi command mode (press ESC)
dd #Deletes the currently selected line
#To save the document in command mode press shift + ZZ
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us