Goals for this Hour

In this hour, you learn

  • How to start and quit vi

  • Simple cursor motion in vi

  • How to move by words and pages

  • How to insert text into the file

  • How to delete text

In some ways, an editor is like another operating system living within UNIX; it is so complex that you will need two hours to learn to use vi. If you're used to Windows or Macintosh editors, you'll be unhappy to find that vi doesn't know anything about your mouse. Once you spend some time working with vi, however, I promise it will grow on you. By the end of this hour, you will be able to create and modify files on your UNIX system to your heart's content.

Get Sams Teach Yourself UNIX® in 24 Hours Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.