From Wiki

Vim: SavingAndClosingFile

Saving and Closing a file

:w	
Saves current file but doesn't exit

:w file	
Saves current content as file but doesn't exit

:n,mw file	
Saves lines n through m to file

:n,mw >>file
Saves lines n through m to the end of file

:q
Quits VI and may prompt if you need to save

:q!
Quits VI without saving

ZZ or :wq
Saves and exits VI

Kaynaklar:

Retrieved from http://kozgun.net/wiki/pmwiki.php?n=Vim.SavingAndClosingFile
Page last modified on August 29, 2007, at 07:08 PM