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?

48 of 51 people (94%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Operating system: Linux: Editor: Vi: File: Save: As: How to save as a file in VI?

Feb 25th, 2004 13:19
Knud van Eeden,


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

Operating system: Linux: Editor: Vi: File: Save: As: How to save as a 
file in VI?

---

Use the command:

 :save <your filename>

---
---

Steps: Overview:

 1. -Open a console

 2. -Load your file in vi, by typing:

      vi <your filename>

 3. -Press <INSERT> to start editing

 4. -When finished, press <ESCAPE> if you were writing

 5. -Type a colon

      :

 6. -That will move the cursor to the vi command line.
     Type then

      save <your filename>

     e.g.

      save /home/ddd.dok

     to save your file

 7.  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

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