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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Options<br />

Note: vi is available if you login to the shell with the rlogin command or via telnet.<br />

It is not available if you login with the OMVS command.<br />

–c command<br />

Runs command before displaying any text on the screen. command is any<br />

ex command. You can specify multiple ex commands by separating them<br />

with an or-bar (|) and enclosing them in quotes. The quotes ensure that the<br />

shell does not interpret the | as a pipe character. For example:<br />

–c 'set all | ver'<br />

–e Invokes ex.<br />

–l Sets lisp mode. The ( and ) commands use blocks of lisp code as their<br />

context rather than sentences.<br />

–R Sets the readonly variable, preventing the accidental overwriting of files.<br />

Any command that writes to a file requires the ! suffix.<br />

–r Tries to recover all files specified on the command line after a system or<br />

editor crash. If you do not specify any files, vi displays a list of all<br />

recoverable files.<br />

–s Turns on quiet mode. This tells the editor not to print file information<br />

messages, thus allowing ex to be used as a filter. Because the file isn’t<br />

displayed, the editor doesn’t read the value of the TERM environment<br />

variable. This option also keeps ex from reading any startup files (.exrc or<br />

the file specified by EXINIT).<br />

–t tag Searches for a tag in the same way that you use with the ex tag command<br />

(described later).<br />

–v Puts the editor into vi mode.<br />

–w size<br />

Sets the option variable window to size. See “Set Option Variables” on page<br />

779 for more information.<br />

+command<br />

Is an obsolete version of the –c option.<br />

Current Position Pointer<br />

The current position marker indicates a position in the text that is currently being<br />

edited (or has just been edited). In ex mode, the current position pointer is just the<br />

line number of the line being edited. In vi mode, the pointer gives this line number<br />

plus the position of the cursor within the line. The line indicated by the current<br />

position pointer is always on the screen.<br />

Display Conventions<br />

vi uses three display conventions:<br />

v vi displays the input for search commands (/ and ?), ex commands (:), and<br />

system commands (!) on the bottom line of the screen. Error and informational<br />

messages also appear on this line.<br />

v If the last line in the file is above the bottom of the screen, screen lines beyond<br />

the end of the file are displayed with a single ~character in column one.<br />

v In certain infrequent circumstances (usually involving lines longer than the width<br />

of the screen), vi is unable to fill the display with complete lines. In this case, one<br />

or more screen lines are shown with a single @ character in column one.<br />

vi<br />

Chapter 2. Shell command descriptions 759

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

Saved successfully!

Ooh no, something went wrong!