how to delete contents of a file in vim code example Example: vim select all and delete Press "esc" button; Type: ggdG