16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ctrl-@<br />

If this is the first character typed after entering insert mode, the previously<br />

typed insert mode contents are repeated. After this, you exit insert mode.<br />

Only up to 256 characters from the previous insertion are inserted.<br />

ESC Leaves insert mode.<br />

INTERRUPT<br />

Leaves insert mode.<br />

ex <strong>Command</strong> Mode<br />

vi enters ex command mode if the program is invoked with the –e option or if the Q<br />

command is issued from vi. You can issue a single ex command from vi using the :<br />

command.<br />

An ex command takes the general form:<br />

[address-list] [[command] [!] [parameters]]<br />

Each part is optional and may be invalid for some commands. You can specify<br />

multiple commands on a line by separating them with an or-bar |.<br />

address-list<br />

<strong>Command</strong>s can take zero, one, or two addresses. The address % is a short<br />

form to indicate the entire file. You can omit any or all of the addresses. In<br />

the command descriptions to follow, the addresses shown are the<br />

addresses that the commands use by default. Possible default addresses<br />

are:<br />

[.,.] Indicates a two-address line range defaulting to the current line.<br />

[1,$] Indicates a two-address line range defaulting to the entire file.<br />

[.+1] Indicates a single address defaulting to the next line.<br />

address<br />

An address refers to a line in the text being edited. An address can be an<br />

expression involving the following forms:<br />

. The value of dot; that is, the current line.<br />

n A line number indicating an absolute line in the file; the first line has<br />

absolute line number 1.<br />

$ The last line in the file.<br />

+[n] n lines forward in the file. If you omit n, it defaults to 1.<br />

–[n] n lines backward in the file. If you omit n, it defaults to 1.<br />

’x The value of the mark x.<br />

/pat/ Search for regular expression pat forward from the current line.<br />

?pat? Search for regular expression pat backwards from the current line.<br />

Thus:<br />

/pattern/+3<br />

++<br />

100<br />

are three addresses: the first searches for a pattern and then goes three<br />

lines further; the second indicates two lines after dot; and the third indicates<br />

the 100th line in the file.<br />

vi<br />

Chapter 2. Shell command descriptions 769

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

Saved successfully!

Ooh no, something went wrong!