Vi Practice II

20 points

Vi Practice II

Requirements

Record each of the commands used (2 pts each)20
Total20 pts

Resources

Objective

To work with the vi editor to create and edit files.

Instructions

Perform each of the tasks described below and record the command(s) used to complete each task in a text file.

Make your lab6 directory your current working directory.

  1. Make a copy of your "about_me" file. Call the copy "vi.practice".
  2. Begin a vi editing session for the "vi.practice" file.
  3. Move your cursor to a specific word using a search command. Repeat the same search.
  4. Move the second paragraph so that it comes last in the text.
  5. Move the cursor to the top of the work buffer.
  6. Add 3 new lines of text above all the rest.
  7. Delete 2 lines of your choosing.
  8. Undo the deletion you just carried out.
  9. Change all occurrences of "the" to "xxx".
  10. End the editing session, storing the file to disk.