The VI/Vedit editors
This description is based on the manual page for the vi editor.

  1. The vi and vedit commands
  2. Syntax
{ vi | vedit } [  -c Subcommand] 
               [  -l ] [  -R ] [  -tTag] [ -v]
               [  -wNumber] [  -yNumber] [  -r [File]] 
               [ + [Subcommand]]  [File ... ]
  1. Description
  2. The vedit command starts a version of the vi editor intended for beginners.
  3. You start the vi editor by specifying the name of the file or files to be edited. If you supply more than one File on the command line, the vi editor edits each file in the specified order.
Execution of the vi editor
vi Editor Limitations
The following list provides the maximum limits of the vi editor. These counts assume single-byte characters.

Editing Modes
The vi editor operates in the following modes:

               %        All lines regardless of cursor position
               $        Last line
               .        Current line.
Customizing the vi Editor
You can customize the vi editor by:

Flags
vi General Subcommand Syntax
       [Named_Buffer] [Operator] [Number] Object
                [Named_Buffer]
                [Operator]
                [Number]
                Object
Counts before Subcommands
You can put a number in front of many subcommands. The vi editor interprets this number in one of the following ways:

                5G
                10Z
                25|
                10Ctrl-U
                10Ctrl-D
vi command syntax and semantics
Moving within a File
The subcommands for moving within a file enable you to move in the following ways:

Editing a File with the vi Editor
The subcommands for editing enable you to perform the following tasks:

Manipulating Files with the vi Editor
The subcommands for manipulating files allow you to do the tasks outlined in the following sections:

General Subcommands
The vi editor provides the subcommands described in the following sections:


Glossary Terms: command mode, current line, literal string, macro, mode, regular expression, scroll, section.

Related Information: The view command, ex command, ed command, sed command, tvi command, ctags command.