Overview
For many users, working in the Unix environment means using vi, a full-screen text editor available on most Unix systems. Even those who know vi often make use of only a small number of its features.
Learning the vi Editor is a complete guide to text editing with vi. Topics new to the sixth edition include multiscreen editing and coverage of four viclones: vim, elvis, nvi, and vile and their enhancements to vi, such as multi-window editing, GUI interfaces, extended regular expressions, and enhancements for programmers. A new appendix describes vi's place in the Unix and Internet cultures.
Quickly learn the basics of editing, cursor movement, and global search and replacement. Then take advantage of the more subtle power of vi. Extend your editing skills by learning to use ex, a powerful line editor, from within vi. For easy reference, the sixth edition also includes a command summary at the end of each appropriate chapter.
Topics covered include:
- Basic editing
- Moving around in a hurry
- Beyond the basics
- Greater power with ex
- Global search and replacement
- Customizing vi and ex
- Command shortcuts
- Introduction to the vi clones' extensions
- The nvi, elvis, vim, and vile editors
- Quick reference to vi and ex commands
- vi and the Internet
The venerable vi full screen text editor is still soldering on, and this updated and revised sixth edition is still the complete guide for vi, the four vi clones (nvi, elvis, vim and vile) and their extensions. This tutorial guides you through the basics of vi and into the nooks, crannies and subtleties of advanced vi editing.
Editorials
Regan Russell
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.
β Electronic Review of Computer Books