How to save file in vi editor?

How to save file in vi editor?

Hi,

I am trying to find commands to save the file in the vi editor? Can anyone show me the example and explain me the commands?

Thanks

View Answers

June 16, 2016 at 7:32 PM

Hi,

Here are the details:

How to save file in vi editor?

  1. Press 'Esc' button to go to the Command mode and ':' appears
  2. Type :w to save the file
  3. Type :wq to save and quit
  4. Type :q! to quit without saving
  5. Type :wq! to force write to file even if it does not have write permission
  6. Type: x to write and quit and this command is short for :wq
  7. Type :qa to quit all

Thanks


June 18, 2016 at 2:42 AM

Here is the video instruction of saving the file in vi editor:

Thanks









Related Tutorials/Questions & Answers:
How to save file in vi editor?
How to save JPanel as gif or jpeg file
Advertisements
How to upload and save a file in a folder - Java Beginners
How to save JPanel as gif or jpeg file
How to download and save a file from Internet using Java?
How to create file and save it into user defined path using jsp/servlet?
How i upload file and save that record in database using JSP?
How to save form data to a csv file using jquery or ajax
how to save html form data into .csv file using only jsp.
upload and save the file
save excel file with save and open dilog box
ModuleNotFoundError: No module named 'editors'
Text field save as word file
save text file - Java Beginners
ModuleNotFoundError: No module named 'vi'
how to save an input to jsp page in a text file?ave an input given b
How to save run time created text-file on a disk using jsp/servlet?
How to download web page table data, export the table records in an excel file and save
How to read data from txt file and save to database MySql - Java Beginners
how to modify hosts file in ubuntu
How to save value in JSP
ModuleNotFoundError: No module named 'komica-save-file'
ModuleNotFoundError: No module named 'komica-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-save-translation-file'
Which extension i use for save hibernate file.
Save file on Client Machine - Development process
why java file save as its class name
ModuleNotFoundError: No module named 'scikit-vi'
ModuleNotFoundError: No module named 'bootstrap_vi'
code save word file in 10g database - SQL
URL file Download and Save in the Local Directory
vi command mode without esc
How to save image on the server by applet
How to save image on the server by applet
How to save data - Swing AWT
ModuleNotFoundError: No module named 'mix-gamma-vi'
ModuleNotFoundError: No module named 'VI_of_First_Heard'
ModuleNotFoundError: No module named 'xontrib-prompt-vi-mode'
Java save file to database
ModuleNotFoundError: No module named 'odoo10-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo10-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-account-bank-statement-import-save-file'
ModuleNotFoundError: No module named 'odoo8-addon-account-bank-statement-import-save-file'
Struts File Upload and Save
How to save database data into excelsheet using hibernate
how to save uploaded image in database using javascript
how to save images in oracle using JSP
how to save images in oracle using JSP
how to save a gui form in core java
How to save and get value from JSP

Ads