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.

vi<br />

[.,.] l[ist] [count] [flags]<br />

Displays the line range in a visually unambiguous manner. This command<br />

displays tabs as ^I, and the end of lines as $. The only useful flag is #, for<br />

line numbering. The current line indicator points to the last line displayed.<br />

map[!] lhs rhs<br />

This defines macros for use in vi. The lhs is a string of characters;<br />

whenever that string is typed exactly, vi behaves as if the string rhs had<br />

been typed. If lhs is more than one character long, none of the characters<br />

are echoed or acted on until either a character is typed that isn’t in the lhs<br />

(in which case all the characters up to that point in the lhs are run) or the<br />

last character of lhs is typed. If the variable remap is set, rhs itself can<br />

contain macros. If the flag ! is specified, the map applies within vi INSERT<br />

mode; otherwise it applies to command mode. A map command with no<br />

arguments lists all macros currently defined.<br />

[.] ma[rk] x<br />

Records the specified line as being marked with the single lowercase letter<br />

x. The line can then be addressed at any point as ’x.<br />

[.,.] m[ove] [addr] [flags]<br />

Moves the specified line range after the addr given. If addr is zero, the text<br />

is moved to the start of the file. The current line indicator is set to the last<br />

line moved.<br />

n[ext][!] [+command] [file ...]<br />

Begins editing the next file in the file list (where the file list was either<br />

specified on the command line or in a previous next command). If the<br />

current file has been modified since the last write, ex usually prevents you<br />

from leaving the current file. You can get around this by specifying an<br />

exclamation mark (!). If the autowrite is set, the current file is written<br />

automatically and you go to the next file. If a list of files is specified, they<br />

become the new file list. If necessary, expressions in this list are expanded.<br />

Thus:<br />

next *.c<br />

sets the file list to all the files in the current directory with names ending in<br />

.c (typically C source files).<br />

[.,.] nu[mber] [count] [flags]<br />

[.,.] # [count] [flags]<br />

Displays the specified line range with leading line numbers. The current line<br />

indicator points to the last line displayed.<br />

[.] o[pen] [pat] [flags]<br />

Enters open mode, which is simply vi mode with a oneline window. If a<br />

match is found for the regular expression pat in the specified line, then the<br />

cursor is placed at the start of the matching pattern.<br />

pre[serve]<br />

Saves the current buffer in a form that can later be recovered using the –r<br />

option on the recover command. vi sends you mail telling you that you can<br />

recover this file and explains how to do so.<br />

[.,.] p[rint] [count] [flags]<br />

Displays the specified line range. The current line indicator points to the last<br />

line displayed.<br />

774 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

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

Saved successfully!

Ooh no, something went wrong!