AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

VI (l) VI (l) NAME vi, view - screen oriented (visual) display editor based on ex SYNOPSIS vi [ -t tag I [ -r I [ +command I [ -1 I [ -wn I -x name r-"" DESCRIPTION Vi (visual) is a display oriented text editor based on ex(l) View is synonymous with vi. Ex and vi run the same code; it is possible to get to the command mode of ex from within vi and vice-versa. Note that the ability to edit encrypted files is present only in the domestic (U.S.) version of the UNIX PC software. COMMANDS The following summarizes the vi commands and procedures. The Introduction to Display Editing with Vi provides full details on using vi. NOTATION AND SPECIAL KEYS l [nj object BS DELETE ENTERING THE VI EDITOR Note: Follow entry with . Denotes the CONTROL key (Ctrl on the UNIX PC) to be held down while the following character is typed. Used to show the caret ( �) should be typed. Optional number of repetitions preceding a command. Do not type [ I. In most cases omitting n defaults to one. The text object-( character, word, sentence, paragraph, or line) that a command operates on. A prefix to a set of commands for file and option manipulation and escapes to the shell. The : and later keystrokes appear at the bottom of the screen. The command is terminated with a or . ESCAPE key (Esc on the UNIX PC) used to return to command mode. Type when you are not sure of the current mode. Causes a beep if already in command mode (harmless). Carriage RETURN key. BACKSPACE key. AH on terminals without a backspace key. Sometimes labeled DEL, BREAK, or RUBOUT (shift of the Esc key on the UNIX PC). This key generates an interrupt that tells the editor to stop what it is doing. - 1 -

VI (l) VI (l)<br />

NAME<br />

vi, view - screen oriented (visual) display editor based on ex<br />

SYNOPSIS<br />

vi [ -t tag I [ -r I [ +command I [ -1 I [ -wn I -x name<br />

r-"" DESCRIPTION<br />

Vi (visual) is a display oriented text editor based on ex(l) View is<br />

synonymous with vi. Ex and vi run the same code; it is possible<br />

to get to the command mode of ex from within vi and vice-versa.<br />

Note that the ability to edit encrypted files is present only in the<br />

domestic (U.S.) version of the UNIX PC software.<br />

COMMANDS<br />

The following summarizes the vi commands and procedures. The<br />

Introduction to Display Editing with Vi provides full details on<br />

using vi.<br />

NOTATION AND SPECIAL KEYS<br />

l<br />

[nj<br />

object<br />

<br />

<br />

BS<br />

DELETE<br />

ENTERING THE VI EDITOR<br />

Note: Follow entry with .<br />

Denotes the CONTROL key (Ctrl on the<br />

UNIX PC) to be held down while the following<br />

character is typed.<br />

Used to show the caret ( �) should be typed.<br />

Optional number of repetitions preceding a<br />

command. Do not type [ I. In most cases<br />

omitting n defaults to one.<br />

The text object-( character, word, sentence,<br />

paragraph, or line) that a command operates<br />

on.<br />

A prefix to a set of commands for file and<br />

option manipulation and escapes to the shell.<br />

The : and later keystrokes appear at the bottom<br />

of the screen. The command is terminated<br />

with a or .<br />

ESCAPE key (Esc on the UNIX PC) used to<br />

return to command mode. Type <br />

when you are not sure of the current mode.<br />

Causes a beep if already in command mode<br />

(harmless).<br />

Carriage RETURN key.<br />

BACKSPACE key. AH on terminals without<br />

a backspace key.<br />

Sometimes labeled DEL, BREAK, or<br />

RUBOUT (shift of the Esc key on the UNIX<br />

PC). This key generates an interrupt that<br />

tells the editor to stop what it is doing.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!