How to Remove All Text in a File using Vi/Vim
If you have ever opened a file in Vi or Vim and wanted to remove all text in a file using Vi/Vim quickly, you are in the right place. Many users find Vi/Vim confusing at first, mainly because it works differently from common text editors. However, once you understand a few basic commands, tasks like clearing a file become very simple and fast....
