Vim for Windows – What do I type to save and exit from a file? October 3, 2022 by Tarik Press ESC to make sure you are out of the edit mode and then type: :wq