faqts : Computers : Software : Text processing : Editors : Vi

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 22 people (91%) answered Yes
Recently 10 of 10 people (100%) answered Yes

Entry

Operating system: Linux: Editor: Vi: Quit: How to quit VI (with or without save as the file)?

Mar 6th, 2004 10:26
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 22 November 2003 - 08:22 pm -------------------

Operating system: Linux: Editor: Vi: Quit: How to quit VI (with or 
without save as the file)?

If you do not want to save the file and to quit, type:

 <CTRL><Z>

---

or if you want to save as the file and to quit

---

Steps: Overview:

 1. Press <ESCAPE> if you were writing

 2. Type

     :save <your filename>

     e.g.

      :save /home/ddd.dok

     to save your file

 3.  Type

      :q

     to quit

---
---

Internet: see also:

---

Operating system: Linux: Console: Start: How to start a console in 
Linux? [terminal]
http://www.faqts.com/knowledge_base/view.phtml/aid/26684/fid/107

---

Operating system: Linux: Editor: VI: File: Overview: Can you give an 
overview of the VI editor?
http://www.faqts.com/knowledge_base/view.phtml/aid/29029/fid/1561

----------------------------------------------------------------------