how to select all text and delete in vim editor code example Example: vim select all and delete Press "esc" button; Type: ggdG