Skip to content

Learning the Vi and Vim Editors

Spend $50 to get a free DVD!

ISBN-10: 059652983X

ISBN-13: 9780596529833

Edition: 7th 2008 (Revised)

Authors: Arnold Robbins, Linda Lamb, Elbert Hannah

List price: $34.99
Blue ribbon 30 day, 100% satisfaction guarantee!
Rent eBooks
Buy eBooks
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

Description:

There is nothing that the hard-core Unix/Linux user is more fanatical about than their text editor. Editors are the subject of either adoration and worship, or of scorn and ridicule, depending upon whether the topic of discussion is your editor or someone else's. In the Unix world, the vi editor has been the standard editor for close to 30 years. vi has always been popular on Unix and Linux, and it has a growing following on Windows systems too. (Most experienced System Administrators cite vi as their system administration tool of choice.) The original vi editor inspired the creation of numerous vi clones for different systems where vi itself was unavailable. Today, the most popular clone is vim, which has many extra features for both beginners and power users. Since 1986, this book has been the standard guide for vi. If you're finally ready to learn why vi and vim are the subject of so much adulation, then this is the book for you. While retaining all the valuable features of previous editions, the new 7th edition has been expanded to include detailed information on vim, the leading vi clone. vim is the default version of vi on most Linux systems and on Mac OS X, and is available for many other operating systems too. With this guide, you learn text editing basics and advanced tools for both editors, such as multi-window editing, how to write both interactive macros and scripts to extend the editor, and power tools for programmers - all in the easy-to-follow style that has made this book a classic. Learning the vi and vim Editors includes: A complete introduction to text editing with vi:1. How to move around vi in a hurry2. Beyond the basics, such as using buffers3. vi's global search and replacement4. Advanced editing, including customizing vi and executing Unix commands How to make full use of vim:1. Extended text objects and more powerful regular expressions2. Multi-window editing with vim and powerful vim scripts3. How to make full use of the GUI version of vim, called gvim4. vim's enhancements for programmers, such as syntax highlighting, folding and extended tags Coverage of three other popular vi clones: nvi, elvis, and vile Several valuable references appendixes, including an alphabetical quick reference to both vi and ex mode commands for regular vi and for vim An updated appendix on vi and the Internet Learning either vi or vim is required knowledge if you use Linux or Unix, and in either case, reading this book is essential.
Customers also bought

Book details

List price: $34.99
Edition: 7th
Copyright year: 2008
Publisher: O'Reilly Media, Incorporated
Publication date: 7/25/2008
Binding: Paperback
Pages: 492
Size: 7.00" wide x 9.25" long x 1.25" tall
Weight: 1.672
Language: English

Arnold Robbins, an Atlanta native, is a professional programmer and technical author. He has been working with Unix systems since 1980, when he was introduced to a PDP-11 running a version of Sixth Edition Unix. His experience also includes multiple commercial Unix systems, from Sun, IBM, HP and DEC. He has been working with GNU/Linux systems since 1996. He likes his Macintosh laptop, but it has been commandeered by one of his daughters. Arnold has also been a heavy awk user since 1987, when he became involved with gawk, the GNU project's version of awk. As a member of the POSIX 1003.2 balloting group, he helped shape the POSIX standard for awk. He is currently the maintainer of gawk and its documentation. O'Reilly has been keeping him busy: He is author and/or coauthor of the bestselling titles: Unix In A Nutshell, Effective awk Programming, sed & awk, Classic Shell Scripting, and several pocket references.

Linda Lamb is a former employee of O'Reilly Media, where she worked in various capacities, including technical writer, editor of technical books, and marketing manager. She also worked on O'Reilly's series of consumer health books, Patient Centered Guides.

Preface
Basic and Advanced vi
The vi Text Editor
A Brief Historical Perspective
Opening and Closing Files
Quitting Without Saving Edits
Simple Editing
vi Commands
Moving the Cursor
Simple Edits
More Ways to Insert Text
Joining Two Lines with J
Review of Basic vi Commands
Moving Around in a Hurry
Movement by Screens
Movement by Text Blocks
Movement by Searches
Movement by Line Number
Review of vi Motion Commands
Beyond the Basics
More Command Combinations
Options When Starting vi
Making Use of Buffers
Marking Your Place
Other Advanced Edits
Review of vi Buffer and Marking Commands
Introducing the ex Editor
ex Commands
Editing with ex
Saving and Exiting Files
Copying a File into Another File
Editing Multiple Files
Global Replacement
Confirming Substitutions
Context-Sensitive Replacement
Pattern-Matching Rules
Pattern-Matching Examples
A Final Look at Pattern Matching
Advanced Editing
Customizing vi
Executing Unix Commands
Saving Commands
Using ex Scripts
Editing Program Source Code
Introduction to the vi Clones
And These Are My Brothers, Darrell, Darrell, and Darrell
Multiwindow Editing
GUI Interfaces
Extended Regular Expressions
Enhanced Tags
Improved Facilities
Programming Assistance
Editor Comparison Summary
Nothing Like the Original
A Look Ahead
Vim
Vim (vi Improved): An Introduction
Overview
Where to Get Vim
Getting Vim for Unix and GNU/Linux
Getting Vim for Windows Environments
Getting Vim for the Macintosh Environment
Other Operating Systems
Aids and Easy Modes for New Users
Summary
Major Vim Improvements over vi
Built-in Help
Startup and Initialization Options
New Motion Commands
Extended Regular Expressions
Customizing the Executable
Multiple Windows in Vim
Initiating Multiwindow Editing
Opening Windows
Moving Around Windows (Getting Your Cursor from Here to There)
Moving Windows Around
Resizing Windows
Buffers and Their Interaction with Windows
Playing Tag with Windows
Tabbed Editing
Closing and Quitting Windows
Summary
Vim Scripts
What's Your Favorite Color (Scheme)?
Dynamic File Type Configuration Through Scripting
Some Additional Thoughts About Vim Scripting
Resources
Graphical Vim (gvim)
General Introduction to gvim
Customizing Scrollbars, Menus, and Toolbars
gvim in Microsoft Windows
gvim in the X Window System
GUI Options and Command Synopsis
Vim Enhancements for Programmers
Folding and Outlining (Outline Mode)
Auto and Smart Indenting
Keyword and Dictionary Word Completion
Tag Stacking
Syntax Highlighting
Compiling and Checking Errors with Vim
Some Final Thoughts on Vim for Writing Programs
Other Cool Stuff in Vim
Editing Binary Files
Digraphs: Non-ASCII Characters
Editing Files in Other Places
Navigating and Changing Directories
Backups with Vim
HTML Your Text
What's the Difference?
Undoing Undos
Now, Where Was I?
What's My Line (Size)?
Abbreviations of Vim Commands and Options
A Few Quickies (Not Necessarily Vim-Specific)
More Resources
Other vi Clones
nvi: New vi
Author and History
Important Command-Line Arguments
Online Help and Other Documentation
Initialization
Multiwindow Editing
GUI Interfaces
Extended Regular Expressions
Improvements for Editing
Programming Assistance
Interesting Features
Sources and Supported Operating Systems
Elvis
Author and History
Important Command-Line Arguments
Online Help and Other Documentation
Initialization
Multiwindow Editing
GUI Interfaces
Extended Regular Expressions
Improved Editing Facilities
Programming Assistance
Interesting Features
elvis Futures
Sources and Supported Operating Systems
vile: vi Like Emacs
Authors and History
Important Command-Line Arguments
Online Help and Other Documentation
Initialization
Multiwindow Editing
GUI Interfaces
Extended Regular Expressions
Improved Editing Facilities
Programming Assistance
Interesting Features
Sources and Supported Operating Systems
Appendixes
The vi, ex, and Vim Editors
Setting Options
Problem Checklists
vi and the Internet
Index