vi/vim delete commands 0 By Iulian HALAC on October 14, 2016 Linux x – delete current character dw – delete current word dd – delete current line 5dd – delete five lines dgg – will delete everything from your current line to the top of the file. dG – will delete from the current line to the end of file