Electronic Review of Computer Books

[ ERCB Home | New | Feature | Brief | DDJ | Letters | Links ]

[an error occurred while processing this directive]

Vital Statistics

Title Learning the vi Editor
Authors Linda Lamb and Arnold Robbins
Publisher O'Reilly & Associates
http://www.ora.com/
Copyright 1998
ISBN 1565924266
Pages 327
Price $24.95


Learning the vi Editor

Getting Windows users away from their easy-to-use GUI-based systems -- particularly editors -- can be like pulling teeth. It is almost as much fun as getting avid UNIX aficionados to learn to live with Windows' frequent crashes.

In the UNIX world, the vi editor is ubiquitous. And since it has even been ported to DOS (and therefore is usable within Windows), it is one editor worth learning. Once you learn the basics, you usually find that many advanced commands are easily picked up because of the intuitive consistency of the editor's commands.

Learning the vi editor, by Linda Lamb, has been through six editions, which means that the book is successful enough for the publisher to keep printing, and that most of the errors and omissions have been eliminated. Possible reasons for the long life of this book may be its price, the continued popularity of UNIX, and ubiquity of the program. Another factor may be that Learning the vi editor is a book small enough that you can flick through it quickly as a desktop reference, yet it is large enough that even experienced UNIX programmers can find one or two obscure features covered. There is something Zen-like in this balance of not putting in too much or too little.

The first three chapters cover simple editing; enough for novices to become reasonably productive within a day. The remaining four chapters cover power features such as buffer manipulation, global search-and-replace, and the kind of advanced editing techniques you normally use a macro language for in other editors. As an aside, vi is interesting on several levels: the command language for vi is Turing-complete, which means it is as computationally expressive as traditional third-generation programming languages such as BASIC or PASCAL. Also, vi is usually implemented such that renaming it or accessing by a symbolic link under a different name changes its behavior: it interrogates argv[0] and acts accordingly. vi and ex, for instance, are the same program.

Learning the vi editor has four appendices: the first is a quick reference placed three quarters of the way through the book and requires a bookmark to find quickly; the second outlines rarely used environment settings; the third covers ex commands; and the final appendix is a simple problem check list.

-- Regan Russell


Quick Rating

Readability Star Star Star
Originality Star Star
Organization Star Star Star
Accuracy Star Star Star
Consistency Star Star
Depth Star Star
Timeliness Star Star
Editing Star Star
Design Star Star Star
Overall Value Star Star Star

Explanation of ERCB rating scale:
No stars = unacceptable
1 Star = marginal
2 Stars = average
3 Stars = above average
4 Stars = exceptional


Copyright © 2001 Electronic Review of Computer Books
Created 1/7/2001 / Last modified 1/7/2001 / webmaster@ercb.com