Category Linux How to Save a File in Vim or Vi and Quit the Editor on Linux You need to enter the command mode in vim / vi to save and exit a file. Published on February 21, 2020 1 min read