To remove all content in a file using Vim, follow these quick methods: π Method 1: Using Normal Mode Press Esc to ensure you're in Normal Mode. Type this command: gg dG gg β Moves the cursor to the top of the file. dG β Deletes from the curre...
sarthakwrites.hashnode.dev1 min readNo responses yet.