MPE/iX Shell and Utilities Reference Manual, Vol 2

vi(1) MPE/iX Shell and Utilities vi(1)
n[ext][!][+command][file ...]
begins editing the next file in the file list (where the file list was either specified on
the command line or in a previous next command). If the current file has been modi-
fied since the last write, Ex normally prevents you from leaving the current file; you
can get around this by specifying an exclamation mark (!). If autowrite is set,
the current file is written automatically and you go to the next file.
If a list of files is specified, they become the new file list. If necessary, expressions in
this list are expanded thus
next *.c
sets the file list to all the files in the current directory with names ending in .c (typi-
cally
C source files).
[.,.] nu[mber][count][flags]
[.,.] #[count][flags]
displays the specified line range with leading line numbers. The current line indica-
tor points to the last line displayed.
[.] o[pen][/pat/] [flags]
enters open mode, which is simply Vi mode with a variable length one line window.
If a match is found for the regular expression pat in the specified line the cursor is
placed at the start of the matching pattern.
You can use any non-alphabetic character to delimit pat instead of the slash (/).
pre[serve]
saves the current buffer in a form that can later be recovered using the –r option or
by the exrecover command. vi sends you mail which tells you that you can re-
cover this file and explains how to do so.
[.,.] p[rint][count][flags]
displays the specified line range. The current line indicator points to the last line
displayed.
[.] pu[t][buffer]
pastes deleted or yanked lines back into the file after the given line. If no buffer
name is given, the most recently changed buffer is used.
Since the edit command does not destroy buffers, you can use that command in con-
junction with put and yank to move text between files.
q[uit][!]
exits from Vi/Ex. If the current file has been modified, an exclamation mark (!) must
be used or you cannot exit until you write the file.
1-666 Commands and Utilities