You are previewing vi and Vim Editors Pocket Reference, 2nd Edition.

vi and Vim Editors Pocket Reference, 2nd Edition

Cover of vi and Vim Editors Pocket Reference, 2nd Edition by Arnold Robbins Published by O'Reilly Media, Inc.
  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
      2. vi Regular Expressions
      3. POSIX Bracket Expressions
      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
      2. Solaris vi Tag Stacking
    14. Vim—vi Improved
      1. Important Command-Line Options
      2. Vim Window Management
      3. Tabbed Editing
      4. Vim Extended Regular Expressions
      5. Command-Line History and Completion
      6. Tag Stacks
      7. Edit-Compile Speedup
      8. Programming Assistance
      9. Folding and Unfolding Text
      10. Insertion Completion Facilities
      11. Diff Mode
      12. Vim Scripting
      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
      6. nvi 1.79 set Options
    16. elvis
      1. Important Command-Line Options
      2. elvis Window Management
      3. elvis Extended Regular Expressions
      4. Command-Line History and Completion Movement Keys
      5. Tag Stacks
      6. Edit-Compile Speedup
      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
      5. Tag Stacks
      6. Edit-Compile Speedup
      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
O'Reilly logo

elvis

elvis is a vi clone written by Steve Kirkendall.

Important Command-Line Options

-a

Load each file named on the command line to a separate window.

-c command

Execute command at startup (POSIX version of the historical +command syntax).

-f filename

Use filename for the session file instead of the default name.

-G gui

Use the given interface. The default is the termcap interface. Other choices include x11, windows, curses, open, and quit. Not all the interfaces may be compiled into your version of elvis.

-i

Start editing in input mode instead of in command mode.

-o logfile

Redirect the startup messages out to a file, instead of stdout/stderr. This is of critical importance to MS Windows users because Windows discards anything written to standard output and standard error.

-R

Start editing each file in read-only mode.

-s

Read an ex script from standard input and execute (per the POSIX standard). This bypasses all initialization scripts.

-S

Set the option security=safer for the whole session, not just execution of .exrc files. This adds a certain amount of security, but should not necessarily be trusted blindly.

-SS

Set the option security=restricted, which is even more paranoid than security=safer.

-V

Output more verbose status information.

-?

Print a summary of the possible options.

elvis Window Management

elvis provides multiwindow editing.

Window management commands—ex

Command

Function

close

Close the current window; the buffer that the window was displaying remains intact

new

Create a new empty buffer ...

The best content for your career. Discover unlimited learning on demand for around $1/day.