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