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