HP-UX Reference (11i v2 03/08) - 1 User Commands N-Z (vol 2)
v
vi(1) vi(1)
^B Scroll backward to display the previous window of text. A preceding count specifies the
number of windows to go back. Two lines of overlap are kept if possible.
^D Scroll forward a half-window of text. A preceding count gives the number of (logical)
lines to scroll, and is remembered for future
ˆD and ˆU commands.
^D (input mode) Backs up over the indentation provided by
autoindent or ˆT to the
next multiple of
shiftwidth spaces. Whitespace inserted by
ˆT at other than the
beginning of a line cannot be backed over using
ˆD. A preceding ˆ removes all inden-
tation for the current and subsequent input lines of the current input mode until new
indentation is established by inserting leading whitespace, either by direct input or by
using
ˆT.
^E Scroll forward one line, leaving the cursor where it is if possible.
^F Scroll forward to display the window of text following the current one. A preceding
count specifies the number of windows to advance. Two lines of overlap are kept if pos-
sible.
(XPG4 only.) The current line is displayed and the cursor is moved to the first non-
blank character of the current line or the first character if the line is a blank line.
^G Print the current file name and other information, including the number of lines and
the current position (equivalent to the ex command f).
^H Move one space to the left (stops at the left margin). A preceding count specifies the
number of spaces to back up. (Same as h).
^H (input mode) Move the cursor left to the previous input character without erasing it
from the screen. The character is deleted from the saved text.
^J Move the cursor down one line in the same column, if possible. A preceding count
specifies the number of lines to move down. (Same as ˆN and j).
^L Clear and redraw the screen. Use when the screen is scrambled for any reason.
^M Move to the first nonwhitespace character in the next line. A preceding count specifies
the number of lines to advance.
^N Same as ˆJ and j.
^P Move the cursor up one line in the same column. A preceding count specifies the
number of lines to move up (same as k).
^R Redraw the current screen, eliminating the false lines marked with @ (which do not
correspond to actual lines in the file).
^T Pop the tag stack. See the pop command in ex(1).
^T (input mode) Insert shiftwidth whitespace. If at the beginning of the line, this
inserted space can only be backed over using ˆD.
^U Scroll up a half-window of text. A preceding count gives the number of (logical) lines to
scroll, and is remembered for future ˆD and ˆU commands.
^V In input mode, ˆV quotes the next character to permit the insertion of special charac-
ters (including ESC) into the file.
^W In input mode, ˆW backs up one word; the deleted characters remain on the display.
^Y Scroll backward one line, leaving the cursor where it is, if possible.
^[ Cancel a partially formed command; ˆ[ sounds the bell if there is no partially formed
command.
In input mode,
ˆ[ terminates input mode. However, two consecutive ESC characters
are required to terminate input mode if the doubleescape editor option is set (see
ex(1)).
When entering a command on the bottom line of the screen (
ex command line or
search pattern with \ or ?), terminate input and execute command.
On many terminals,
ˆ[ can be entered by pressing the ESC or ESCAPE key.
HP-UX 11i Version 2: August 2003 − 3 − Hewlett-Packard Company Section 1−−947