delete content of file in vi code example Example: vim select all and delete Press "esc" button; Type: ggdG