O'Reilly logo

Introduction to Unix and Shell Programming by M. G. Venkateshmurthy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required