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 />

Ctrl-G Displays the current pathname, current line number, total number of lines in<br />

the file, and the percentage of the way through the file. This is equivalent to<br />

the ex command file.<br />

Ctrl-L Redraws the screen assuming another process has written on it. This<br />

should never happen unless a filter ! command writes to the screen rather<br />

than the standard output.<br />

Ctrl-R Redraws the screen, removing any deleted lines flagged with the @<br />

convention.<br />

Ctrl-Z Stops the editor and returns you to system level. You can return to the<br />

editor with the fg command; however, when you resume a vi session in this<br />

way, all of the session’s buffers are empty. The jobs command lists all the<br />

stopped vi jobs. The amount of available memory limits the number of vi<br />

sessions that may be stopped at one time (see fg and jobs).<br />

Ctrl-^ Switches to editing the alternate file (see ex for an explanation of write). If<br />

you attempt this and you have not written out the file since you made the<br />

most recent change, vi does not switch to the alternate file.<br />

Insert Mode <strong>Command</strong>s<br />

The object manipulation command c, and the text insertion commands [AaIiOoRr]<br />

put vi into INSERT mode. In this mode, most characters typed are inserted in the<br />

file. The following characters have special meaning.<br />

Ctrl-D Decrements the autoindent for the current line by one level. This is only<br />

relevant if the variable autoindent is on.<br />

Ctrl-H Deletes the last typed character. The character is not removed from the<br />

screen; however it is no longer in your file. When you backspace over<br />

characters, new text overwrites the old ones. You are permitted to<br />

backspace to the start of the current line regardless of where you started to<br />

insert text. (This is not true of some other versions of vi.)<br />

BACKSPACE<br />

Deletes the last typed character. The character is not removed from the<br />

screen; however it is no longer in your file. When you backspace over<br />

characters, new text overwrites the old ones. You are permitted to<br />

backspace to the start of the current line regardless of where you started to<br />

insert text. (This is not true of some other versions of vi.)<br />

Ctrl-J Ends the current line and starts a new one.<br />

Ctrl-M Ends the current line and starts a new one.<br />

RETURN<br />

Ends the current line and starts a new one.<br />

Ctrl-Q Inserts the following character literally, instead of using its special meaning.<br />

You could use this to escape, say, the ESC character itself. It is impossible<br />

to insert a Ctrl-J or the null character in your line.<br />

Ctrl-V Inserts the following character literally, instead of using its special meaning.<br />

You could use this to escape, say, the ESC character itself. It is impossible<br />

to insert a Ctrl-J or the null character in your line.<br />

Ctrl-T Increments the autoindent for the current line by one level. This is only<br />

relevant if the variable autoindent is on.<br />

Ctrl-W Deletes the word preceding the cursor and blanks. Although the characters<br />

are not removed from the screen, they are no longer in your file.<br />

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