#in command mode gg #takes you to the first line dG #deletes all
Esc #set the mode gg #takes you to the first line dG #deletes all text in vi