Chapter 10. An Introduction to the vi
Editor
The next few hours focus on full-screen editing tools for Unix. First you'll learn how to use vi
to create and modify files. This hour covers the basics, including how to move around in the file and how to insert and delete characters, words, and lines. The next hour adds how to search for specific patterns in the text and how to replace them with other information as desired. In the third hour, you learn to use an alternative Unix editor called emacs
.
Goals for This Hour
In this hour, you will 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; ...
Get SAMS Teach Yourself Unix in 24 Hours FOURTH 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.