wq
!
Write and quit the file in one movement. The file is always written. The ! flag forces the editor to write over any current contents of file .