Syntax of ex Commands
To enter an ex command from vi, type:
:[address]command[options]
An initial : indicates an
ex command. As you type the
command, it is echoed on the status line. Execute the command by
pressing the ENTER key. address is the line
number or range of lines that are the object of
command. options and
addresses are described below. ex commands are described in the section
"Alphabetical Summary of ex
Commands.”
You can exit ex in several ways:
|
|
Exit (save changes and quit). |
|
|
Quit without saving changes. |
|
|
Switch to the vi editor on the current file. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access