Title: Editors & Editing with vi
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

Everybody knows what an editor is, but learning how to use some editors takes a bit of work. Although there are more user friendly editors around, we will introduce the vi editor and explain why knowing this editor is an important skill in UNIX and Linux environments.

By the end of this module, you will:

- Understand the need for text editors
- Learn what editors are available
- Learn how to use several editors to edit text files
- Learn how to use the vi editor
  - Changing modes (insert mode, command mode)
  - Deleting text
  - Correcting text
  - Exiting
  - Movement
  - Adding text
  - Overwriting text
  - Saving data
  - Repairing files
  - Avoiding insanity
  - Using vi commands such as i I o O a A / ? c d p y dd yy h j k l ZZ :w :w! :q :q! :e! :x 0 ^ $ G <ctrl-g> set

Required Activities:

- Readings
  - Review the pages in this module
  - Read Chapter 11, pages 185-202, in the Linux Essentials text book
- Videos and Presentations - view the following videos and use the presentation as an extra resource outlining the topics covered in the video. Consider pausing the videos at different intervals while you practice what is taught.
  - vi Editor PDF or ODP presentation
  - Using vi (It doesn't have to be painful) video lecture (Time: 29:47)
  - Editors and vi video lecture (Time: 18:38)
- Exercise - complete the following exercise (located under the Exercises link within the left navigation area):
  - Exercise 5
- Quiz - complete the following quiz (located under the Quizzes and Exams link within the left navigation area):
  - Quiz 5

Enrichment Activities:

- Play VIM Adventures

- Reference Text: Read Chapter 4, pages 69-91, in the Unix and Linux book.