vim to end of file code example Example 1: vim delete to end of file # Basic syntax: dG Example 2: vim go to the end of file $ Move to the end of the line