5

THE vi EDITOR

Chapter Objectives
  • Different modes of the vi editor and moving between these modes
  • Invoking and quitting the vi editor
  • Moving the cursor in a required manner
  • Text insertion, replacement and substitution
  • Searching and replacing words or patterns
  • Repeating and undoing a previous command
  • Using the shell from vi
  • Writing selected lines on to a separate file
  • Customizing the editing environment

Anyonewho uses a computer writes programs using any one computer language. The user would at least prepare a text file using the wordprocessing facility in the form of a letter either to send it by post or in the form of an e-mail. In all these circumstances the users, type in the program or the letter prepared by them. Most of the time ...

Get Introduction to Unix and Shell Programming 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.