delete all from the cursor to the end of the file in vim code example Example: vim delete to end of file # Basic syntax: dG