type "i" for entering INSERT mode, and ESC -> :wq to leave with saving.