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.

vi<br />

These lines are not part of the file content and should be ignored.<br />

vi <strong>Command</strong> Summary<br />

vi commands can be divided into several categories:<br />

v Scrolling commands adjust the position of text on the screen. The current<br />

position pointer only changes if the current line is scrolled off the screen. For<br />

example, Ctrl-E scrolls the text on the screen up one line. The cursor remains<br />

pointing to the same text that it was pointing to, unless that text is moved off the<br />

screen.<br />

v Movement commands move the cursor in the file. For example, the character j<br />

moves the cursor down one line and the screen is scrolled only if necessary.<br />

There are two types of movement commands:<br />

– Absolute movement commands move the cursor, regardless of the nature of<br />

the surrounding text. For example, j always moves the cursor down one line.<br />

Absolute movement commands are listed in “Absolute Movement <strong>Command</strong>s”<br />

on page 761.<br />

– Context-dependent movement commands move move the cursor based on<br />

the nature of the text; for example, w moves the cursor to the beginning of the<br />

next word, so it must look at the text to determine where the next word<br />

begins.<br />

Context-dependent movement commands are listed in “Context-Dependent<br />

Movement <strong>Command</strong>s” on page 762.<br />

v Text insertion commands let you add new text to the existing text. They are listed<br />

in “Text Insertion <strong>Command</strong>s” on page 766.<br />

v Manipulation commands let you change the text that is already in the file. They<br />

are listed in “Object Manipulator <strong>Command</strong>s” on page 764.<br />

Scrolling <strong>Command</strong>s<br />

vi scrolling and movement commands can be preceded by a decimal integer that<br />

serves as a count, as in:<br />

[count] command<br />

count means different things with different commands. If you type count, it is not<br />

displayed anywhere on the screen.<br />

Ctrl-B Scrolls text back by a page, (that is, a screen), less two lines. The cursor is<br />

placed on the bottom line of the screen. count specifies a number of pages<br />

to scroll. The default value for count is 1.<br />

Ctrl-D Scrolls text onto the bottom of the screen. The current position pointer<br />

moves forward the same amount in the text, which means that the cursor<br />

stays in the same relative position on the screen. If count is given, the<br />

screen scrolls forward by the given number of lines; this number is used for<br />

all future Ctrl-D and Ctrl-U commands (until a new count is given). The<br />

default scrolling amount is half the screen.<br />

Ctrl-E Scrolls a new line onto the bottom of the screen. The current position<br />

pointer is not changed unless the current line scrolls off the top of the<br />

screen; then the pointer is set to the top line. If count is given, the screen<br />

scrolls forward the given number of lines. The default value for count is 1.<br />

Ctrl-F Scrolls text forward a page (that is, a screen), less two lines. The cursor is<br />

placed on the top line of the screen. count specifies the number of pages to<br />

scroll. The default value for count is 1.<br />

760 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!