******* UNIX TUTORIAL - by Peter Conrad Cumminsky *******

****** Lesson 5: Editing Files Using the Visual Editor ******

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

***** Review: How Do I Create a File? *****

   %vi filename [Enter]

***** How Do I Move the Cursor? *****

   The Arrow Keys
   Number Key plus Arrow Key
   The Slash-Search Command
       /word_to_match [Enter]
       n (next match)

***** How Do I Delete Lines? *****

   dd
   #dd

***** How Do I Undo a Command? *****

   u

***** How Do I Delete Words? *****

   dw
   #dw

***** How Do I Delete Characters? *****

   x
   #x

***** How Do I Replace a Single Character? *****

   rsingle_character
   r[Enter] (breaks a line into two lines)

***** How Do I Substitute Several Characters for One? *****

   sseveral_characters[Esc]

***** How Do I Change a Word? *****

   cwone_or_more_words[Esc]

***** How Do I Change Entire Lines? *****

   ccone_or_more_lines[Esc]

***** How Do I Insert Text? *****

   itext_to_be_inserted[Esc]

***** How Do I Open a Line Above? *****

   otext_to_be_inserted[Esc]

***** How Do I Open a Line Below? *****

   Otext_to_be_inserted[Esc]

***** Review: How Do I Return to the Shell Prompt? *****

   [ESC]
   :ZZ

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