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
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
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....
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...
^] 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...
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...
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...
’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...
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...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
vi and Vim Editors Pocket Reference Support for every text editing task (Arnold Robbins)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
vi and Vim Editors Pocket Reference Support for every text editing task (Arnold Robbins)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
vi and Vim Editors Pocket Reference Support for every text editing task (Arnold Robbins)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
这本书是 Arnold Robbins 为 vi、Vim 以及 vi 的几个主要克隆版本编写的袖珍命令参考。它面向使用 Unix、Linux 和 Mac OS X 的读者,这些人喜欢功能强大、可跨平台使用的 vi 和 Vim 文本编辑器,但编辑器命令太多,没人能全部记住。作者的做法是从中挑出最有价值的命令,压缩进一本便于随手翻阅的小册子,让读者在需要时能快速查到。书中覆盖的编辑任务包括编程、修改系统文件,以及撰写文章和做标记。
几条可以抓住的线索:一是命令的覆盖面,书里不只讲原始 vi,还纳入 Vim 以及 vile、elvis、nvi 这些克隆版本,并分别说明它们的差异,比如 elvis 提供多窗口编辑,有 close、new 等窗口管理命令。二是模式与匹配的细节,摘录中展示了方括号内字符的匹配写法,以及用连字符表示连续字符范围的方式,这类规则是日常编辑中频繁用到的。三是窗口与分屏操作,例如用计数设定当前窗口大小、用 z N ENTER 设定窗口高度、用 ^W ] 拆分窗口并在新窗口中取用光标下的标识符。四是 Vim 的补全机制,摘录提到 ^X ^U 调用 completefunc 选项指定的用户函数完成补全,^X ^V...
Digital LibraryAI Assistant
Hi — I can help you pick a book. Tell me a topic, language, or level, e.g. “a light English read”. If that's too broad, I'll ask one follow-up.
Loading comments...
Reply to Comment
Edit Comment