Chapter 5. Using the vi Editor

Chapter Syllabus

  • 5.1 Modes Used in vi

  • 5.2 Starting and Stopping vi

  • 5.3 Cursor Movement

  • 5.4 Inserting and Deleting Text

  • 5.5 Replacing Text

  • 5.6 Undo and Redo

  • 5.7 Scrolling Text

  • 5.8 Search and Replace

  • 5.9 Cut, Copy, and Paste

  • 5.10 Importing and Exporting Text

  • 5.11 Configuring vi Options

Until now you have been creating new files but had no way to edit a file. This chapter builds skill in using the vi editor, which is the most widely used editor on UNIX. The vi editor is available with every distribution of the UNIX operating system. Initially, all users of UNIX find the vi editor difficult to use. But as they become used to it, they start to like it due to its simplicity and power. It is not like common editors found on desktops ...

Get HP-Certified HP-UX System Administration 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.