Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Arnold Robbins

Rating No ratings yet

Many Unix, Linux, and Mac OS X geeks enjoy using the powerful, platform-agnostic text editors vi and Vim, but there are far too many commands for anyone to remember. Author Arnold Robbins has chosen the most valuable commands for vi, Vim, and vi's main clones—vile, elvis, and nvi—and packed them into this easy-to-browse pocket reference. You'll find commands for all kinds of editing tasks, such as programming, modifying system files, and writing and marking up articles. This second edition includes:Command-line options vi commands and set options Input mode shortcuts Substitution and regular expressions ex commands and options Initialization and recovery Enhanced tags and tag stacks A greatly expanded section on Vim commands and options Additional features in vile, elvis, and nvi Internet resources for vi A full index

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A compact, lookup-first reference for anyone who already edits in vi or Vim and needs the exact command, option, or regular-expression syntax without leaving the terminal. Best for working programmers, sysadmins, and writers who want a fast memory aid rather than a tutorial. 【Book Arc】 - **Opening (~0%–10%)**: Frames the book as a companion reference, sets typographic conventions, and lays out the core vi command set—cursor motion, editing, exit, buffers, and marks—so you can navigate and modify text immediately. - **Early (~10%–25%)**: Moves into input-mode shortcuts (abbreviations, maps, executable buffers), substitution and regular expressions, ex commands and addresses, then initialization and crash recovery. - **Early–Middle (~23%–32%)**: Covers the vi set options, the history of the original vi versus its clones, and enhanced tags/tag stacks for jumping through code. - **Middle (~32%–59%)**: The largest block—Vim as the de facto standard: command-line options, window and tab management, extended regular expressions, command-line history and completion, and program-development features like make and error formats. - **Late (~59%–80%)**: Surveys the other clones—nvi, elvis, and vile—highlighting where each diverges from vi and Vim. - **Ending (~80%–100%)**: Closes with internet resources, program source and contact information, and a full index for rapid lookup. 【Key Takeaways】 - **This is a reference, not a tutorial** (Opening): it assumes you already know vi basics and organizes commands by task for fast lookup. - **Motion and editing commands are the core vocabulary** (Opening): insert/change/delete/yank/put, plus repeat and undo, form the daily editing loop. - **Input-mode shortcuts multiply your speed** (Early): abbreviations, command and insert-mode maps, and executable buffers turn repetitive typing into macros. - **Substitution and regular expressions are a language of their own** (Early): addresses, POSIX bracket expressions, backreferences, and replacement metacharacters deserve careful study. - **Initialization and recovery are practical safety nets** (Early): `.exrc` scripts, `vi -r`, and `:pre` protect work and standardize your environment. - **Tags and tag stacks turn editing into navigation** (Early–Middle): `^]`, `^T`, and tag options let you jump through large codebases and return. - **Vim is where most modern users live** (Middle): expanded coverage of Vim options, windows, tabs, extended regex, completion, and build integration reflects its dominance on GNU/Linux. - **The clones differ in meaningful ways** (Late): nvi, elvis, and vile each add or change features, so check the relevant section before assuming vi behavior. 【Reading Tips】 - Treat it as a desk reference: skim the table of contents and index first, then deep-read only the sections matching your current editor and task. - Deep-read the substitution/regular-expression and Vim sections—these are the highest-leverage areas and the most error-prone. - Hard spots: ex addresses, POSIX bracket expressions, and Vim's extended interval syntax; practice them on real files rather than memorizing tables. - If you use a clone (nvi, elvis, vile), read its section before relying on Vim-specific commands. - Keep a personal note of the five to ten commands you actually use; the book's value is in confirming exact syntax, not in reading cover to cover. 【Coverage Limits】 This guide is synthesized from stratified excerpts covering the front matter, core vi commands, substitution, ex commands, initialization/recovery, tags, and the Vim section; the clone chapters (nvi, elvis, vile) and the index are only partially represented, so details there are summarized rather than fully mapped.
Page 6
rademarks of O’Reilly Media, Inc. vi and Vim Editors Pocket Reference, the image of a tarsier, and related trade dress are trademarks of O’Reilly Media, Inc....
View in text
Page 18
can repeat with a few key- strokes. Here’s how it’s done: 1. Type a vi command sequence or an ex command preceded by a colon; return to command mode. 2. Dele...
View in text
Page 16
^] Look up the location of the identifier under the cursor in the tags file and move to that location; if tag stack- ing is enabled, the current location is...
View in text
Excerpt 4
ames Available at the start of the command line. Tag values After you’ve typed :tag. Filenames When typing a command that takes a filename argument (see :hel...
View in text
Excerpt 5
ne. Similar- ly, all lines with a possible match are shown. ^X ^U ✓ User function Call the Vim function named by the completefunc option to do completion. ^X...
View in text
Excerpt 6
efault: nosmd sidescroll (ss) 0 smartcase (scs) nosmartcase spell nospell suffixes *.bak,~,.o,.h,.info,.swp taglength (tl) 0 tagrelative (tr) Vim default: tr...
View in text
Excerpt 7
’s the last one edit-file, E, e ^X e Bring given (or under- find-file cursor, for ̂ X e) file or exist- ing buffer into window grow-window V Increase the siz...
View in text
Excerpt 8
zed, original vi Author Gunnar Ritter Email gunnarr@acm.org Source http://ex-vi.sourceforge.net Editor Vim Author Bram Moolenaar Email Bram@vim.org Source ht...
View in text
Tags
AI categories
ProgrammingLinuxSoftware
ISBN: 1449392172
Publisher: O'Reilly Media
Publish Year: 2011
Language: English
Pages: 94
File Format: PDF
File Size: 2.6 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…