Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

vi(1) OSS Shell and Utilities Reference Manual
b Moves the cursor backward to the beginning of a word.
e Moves the cursor forward to the end of a word.
W Moves the cursor forward to the beginning of a big word.
B Moves the cursor backward to the beginning of a big word.
E Moves the cursor forward to the end of a big word.
Moving by Line Positioning
Enter the following subcommands in Command mode.
G Moves to the line number given as preceding argument, or the end of the file if no
preceding count is given.
H Moves the cursor to the top line on the screen.
L Moves the cursor to the last line on the screen.
M Moves the cursor to the middle line on the screen.
+ Moves the cursor to the next line, at its first nonspace character.
- Moves the cursor to the previous line, at its first nonspace character.
<Return>
Moves the cursor to the next line, at its first nonspace character.
Moving to Sentences, Paragraphs, or Sections
Enter the following subcommands in Command mode. You can cancel an incomplete subcom-
mand by pressing <Esc>.
( Places the cursor at the beginning of the previous sentence (or the previous S-
expression if you are in LISP mode).
) Places the cursor at the beginning of the next sentence (or the next S-expression if you
are in LISP mode).
{ Places the cursor at the beginning of the previous paragraph (or at the next list if you
are in LISP mode).
} Places the cursor at the beginning of the next paragraph, at the next section if you are
in C mode, or at the next list if you are in LISP mode.
| Requires a count; the cursor is placed in that column (if possible).
]] Places the cursor at the next section, or at the next function if you are in LISP mode.
[[ Places the cursor at the previous section, or at the next function if you are in LISP
mode.
Paging and Scrolling
<Ctrl-u>
Scrolls up (defaults to value of scroll option).
<Ctrl-d>
Scrolls down (defaults to value of scroll option).
<Ctrl-f> Pages forward one screen (defaults to value of window option).
1010 Hewlett-Packard Company 527188-021