Recent Changes - Search:

edit SideBar


Firefox 2
Get Thunderbird!

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:

Edit - History - Print - Recent Changes - Search
Page last modified on August 29, 2007, at 07:08 PM