vi and Vim Editors Pocket Reference, 2nd Edition

Book description

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

Publisher resources

View/Submit Errata

Table of contents

  1. vi and Vim Editors Pocket Reference
  2. 1. vi and Vim Editors Pocket Reference
    1. Introduction
    2. Conventions
    3. Acknowledgments
    4. Command-Line Options
    5. vi Commands
      1. Movement Commands
      2. Editing Commands
      3. Exit Commands
      4. Solaris vi Command-Mode Tag Commands
      5. Buffer Names
      6. Buffer and Marking Commands
    6. Input Mode Shortcuts
      1. Word Abbreviation
      2. Command and Input Mode Maps
      3. Executable Buffers
      4. Automatic Indentation
    7. Substitution and Regular Expressions
      1. The Substitute Command
        1. Substitution flags
      2. vi Regular Expressions
      3. POSIX Bracket Expressions
        1. POSIX character classes
      4. Metacharacters Used in Replacement Strings
      5. More Substitution Tricks
    8. ex Commands
      1. Command Syntax
      2. Address Symbols
      3. Command Option Symbols
      4. Alphabetical List of Commands
    9. Initialization
    10. Recovery
    11. vi set Options
    12. Nothing like the Original
    13. Enhanced Tags and Tag Stacks
      1. Exuberant ctags
        1. Extended ctags keywords
      2. Solaris vi Tag Stacking
        1. Tag commands—ex
        2. Tag commands—vi
        3. Tag management options
    14. Vim—vi Improved
      1. Important Command-Line Options
      2. Vim Window Management
        1. Window management commands—ex
        2. Window management commands—vi
      3. Tabbed Editing
        1. Managing tabs—ex
        2. Managing tabs—vi
        3. Tabbed editing options
      4. Vim Extended Regular Expressions
      5. Command-Line History and Completion
        1. History commands—vi
        2. Completion commands—vi
      6. Tag Stacks
        1. Tag commands—ex
        2. Tag commands—vi
      7. Edit-Compile Speedup
        1. Program development commands—ex
        2. Program development options
      8. Programming Assistance
        1. Identifier search commands—ex
        2. Identifier search commands—vi
        3. Extended matching commands—vi
        4. Indentation and formatting options
      9. Folding and Unfolding Text
        1. Folding commands—ex
        2. Folding commands—vi
        3. Folding options
      10. Insertion Completion Facilities
        1. Completion commands—vi
        2. Completion options
      11. Diff Mode
      12. Vim Scripting
        1. Variables, options, and numbers
        2. Control flow commands
        3. Operators
        4. User-defined functions
        5. Running scripts
      13. Vim set Options
    15. nvi—New vi
      1. Important Command-Line Options
      2. nvi Window Management Commands
      3. nvi Extended Regular Expressions
      4. Command-Line History and Completion Options
      5. Tag Stacks
        1. Tag commands—ex
        2. Tag commands—vi
      6. nvi 1.79 set Options
    16. elvis
      1. Important Command-Line Options
      2. elvis Window Management
        1. Window management commands—ex
        2. Arguments to the :window command
        3. Window management commands—vi
      3. elvis Extended Regular Expressions
      4. Command-Line History and Completion Movement Keys
      5. Tag Stacks
        1. Tag commands—ex
        2. Tag commands—vi
      6. Edit-Compile Speedup
        1. Program development commands—ex
        2. Display modes
        3. Display-mode commands—ex
        4. Options for print management
        5. Values for the lptype option
      7. elvis 2.2 set Options
    17. vile—vi like Emacs
      1. Important Command-Line Options
      2. vile Window Management Commands
      3. vile Extended Regular Expressions
      4. Command-Line History and Completion
        1. History commands—vi
        2. History options
      5. Tag Stacks
        1. Tag commands—ex
        2. Tag commands—vi
      6. Edit-Compile Speedup
        1. Program development commands—vi
      7. vile 9.8 set Options
    18. Internet Resources for vi
    19. Program Source and Contact Information
  3. Index
  4. About the Author
  5. Copyright

Product information

  • Title: vi and Vim Editors Pocket Reference, 2nd Edition
  • Author(s): Arnold Robbins
  • Release date: January 2011
  • Publisher(s): O'Reilly Media, Inc.
  • ISBN: 9781449303952