Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Arnold Robbins, Elbert Hannah

Rating No ratings yet

Among the text editors being used in the programming community, perhaps the most important family is vi and its derivatives. With this updated edition, Unix and Linux users will learn text editing basics for both vi and Vim ("vi improved") before moving on to advanced editing tools for each editor. Authors Arnold Robbins and Elbert Hannah cover the latest major releases of Vim, including 8.0 and 8.2. If you're a programmer or computer analyst, or you work with browsers or command-line interfaces, using Vim can speed up your work and make complex tasks easier. You'll examine multiwindow editing, global search and replacement, and power tools for programmers, and learn how to write interactive macros and scripts to extend the editor—all in the easy-to-follow style that's made this book a classic. • Go beyond the basics to learn which vi commands fit your specific needs • Learn advanced vi tools that shift most of the editing burden to the computer • Explore Vim tools that provide major improvements over vi • Examine Vim's multiwindow editing feature, a significant upgrade over vi • Use Vim scripts to customize and tailor Vim to your needs • Look at Vim in modern GUI environments with Graphical Vim (gvim) • See Vim in the broader programming milieu, including using it as an IDE Arnold Robbins is a professional programmer and technical author. He's worked with Unix systems since 1980, including commercial Unix systems from Sun, IBM, HP, and DEC, and he's worked with GNU/Linux systems since 1996. He is also the long-time maintainer of GNU Awk (gawk) and its documentation as well as the author and coauthor of multiple O'Reilly titles. Elbert Hannah specializes in integrating technologies. After discovering Unix early on, he built a career integrating disparate systems, ultimately integrating technologies in the finance industry. Underlying all of his accomplishments is a reliance on the power and agility of the vi text editing framework.

AI Reading Assistant

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

AI guide
【One-Line Pitch】 A practical, classic guide to the vi/Vim editor family that takes you from survival-level text editing to scripting, macros, multiwindow workflows, and IDE-like customization. Best for programmers, sysadmins, and command-line users who want to edit faster and automate repetitive work. 【Book Arc】 - **Opening (~0%–10%)**: Orients you to the vi/Vim family, the book’s conventions, and the table of contents’ broad sweep from basic editing through ex scripting and into Vim. - **Early (~10%–35%)**: Builds core vi competence—opening files, understanding command vs. insert modes, moving by words/sentences/paragraphs/searches, and making simple edits such as delete, change, join, undo, and repeat. - **Middle (~35%–55%)**: Shifts to ex and global replacement: line addressing, saving/quitting safely, multi-file work, and powerful search-and-substitute patterns that let you make large-scale changes reliably. - **Late (~55%–75%)**: Moves into automation and customization—mapping keys, using registers from ex, writing ex scripts, and tailoring behavior with options and abbreviations. - **Ending (~75%–100%)**: Extends into Vim-specific power: multiwindow editing, GUI Vim (gvim), scripting, and using Vim in broader programming/IDE-like workflows. (Excerpts do not cover the final chapters in detail.) 【Key Takeaways】 - **vi is modal, and that is the point** (Early): command mode vs. insert mode explains why keys behave differently, why ESC matters, and why case sensitivity causes many beginner errors. - **Movement commands are the real editing vocabulary** (Early): h/j/k/l, word/sentence/paragraph motions, and searches combine with operators like d, c, and y to form a compact editing language. - **ex commands give you large-scale control** (Middle): line addresses, :w/:q/:wq/:x, and :s/:g substitutions are essential when changes span many lines or files. - **Global replacement is a precision tool, not just find-and-replace** (Middle): metacharacters, saved subpatterns, anchors, and alternate delimiters let you safely transform structured text and code. - **Automation shifts work from you to the editor** (Late): mapping keys, using registers from ex, and writing ex scripts turn repetitive editing into reusable commands. - **Vim adds major capabilities beyond vi** (Late): multiwindow editing, GUI operation, and scripting are presented as significant upgrades rather than cosmetic differences. - **Vim can serve as a programming environment** (Ending): the book frames Vim within modern programming practice, including IDE-like usage and customization. (Excerpts do not cover every modern plugin or language-server detail.) - **Practical troubleshooting matters** (Early): terminal type problems, CAPS LOCK surprises, and mode confusion are treated as normal parts of learning the editor. 【Reading Tips】 - **Deep-read the early mode/movement chapters**: they are the foundation; skimming them makes later ex and Vim material harder than it needs to be. - **Skim the ex chapter first, then return**: if you already use :wq and :s, focus on line addressing, :g, and multi-file commands rather than memorizing every ex command. - **Practice substitutions on real files**: the global replacement examples are where the book becomes genuinely powerful; try them on code or structured text. - **Treat mapping and scripting as a separate project**: once basic editing feels natural, use the automation chapters to build a few personal shortcuts. - **Use the Vim-specific chapters as a bridge to your own workflow**: multiwindow editing, gvim, and IDE-like use are best learned by applying them to your daily projects. 【Coverage Limits】 This guide is based on stratified excerpts and the book’s front matter/table of contents; it does not cover every chapter, example, or Vim 8.x feature in detail. The final Vim scripting, GUI, and IDE-related chapters are only partially represented in the excerpts.
Excerpt 1
les. Elbert Hannah specializes in integrating technologies. After discovering Unix early on, he built a career integrating disparate systems, ultimately inte...
View in text
Excerpt 2
k in vi, and for a very good reason. Users had a variety of different brands of terminals, and all those terminals’ arrow keys sent different codes when they...
View in text
Excerpt 3
the special character / (slash). When you enter a slash, it appears on the bottom line of the screen; you then type in the pattern that you want to find: /pa...
View in text
Excerpt 4
t line to the next line that starts with }: :.,/^}/s;^;//□; What we’re really doing here is “replacing” the start of the line with //□. Of course, the start...
View in text
Excerpt 5
rsing code and is far less easily fooled by code containing #if preprocessor conditional constructs. • It can be used to print out a human-readable list of s...
View in text
Excerpt 6
is enabled by default or when you include the n flag in the mouse option. vi command mode provides a straightforward and easy method to position the cursor,...
View in text
Excerpt 7
all of your work is easily managed in one window with tabs. Many Chrome and Firefox users are very familiar with and dependent on tabbed browsing and will re...
View in text
Excerpt 8
of significant characters in a tag that is to be looked up. The default value of zero tl indicates that all characters are significant. tags The value is a l...
View in text
Tags
AI categories
ProgrammingLinuxSoftware
vivim
ISBN: 1492078808
Publisher: O'Reilly Media
Publish Year: 2022
Language: English
Pages: 516
File Format: PDF
File Size: 16.2 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…