Google Answers Logo
View Question
 
Q: Queston about Linux ( No Answer,   1 Comment )
Question  
Subject: Queston about Linux
Category: Miscellaneous
Asked by: jordanoliver-ga
List Price: $3.00
Posted: 24 Jun 2004 22:52 PDT
Expires: 24 Jul 2004 22:52 PDT
Question ID: 366022
How do you edit files with vi? I know this might be a vague question
but try your best with the default and most common answers.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Queston about Linux
From: saem_aero-ga on 25 Jun 2004 06:52 PDT
 
the most basic commands for using vi are:

open the file at the prompt.

vi filename

then vi opens. 

move the cursor to where you want to edit with the arrow keys.

push the 'a' key for insert.

now you can type whatever you want.  when you are done push the escape
key to get out of the editing mode.

now you can move around again with your arrow keys.

if you want to save what you have done type  :wq  (yes include the : also!)

if you want to quit without saving type    :q!   (yes include the : also!)

there are alot of help pages online about this, just google "vi commands"

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy