vim delete all lines till end of file code example Example: vim delete to end of file # Basic syntax: dG