#In vi command mode (press ESC) dd #Deletes the currently selected line #To save the document in command mode press shift + ZZ