
242
|
Chapter 3: Linux Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
ESC-/pattern
Same as /*.
ESC-?pattern
Same as ?*.
n Repeat last pattern search.
N Repeat last pattern search in the reverse direction.
ESC-n
Repeat previous search command, but as though it were pref-
aced by *.
ESC-N
Repeat previous search command, but as though it were pref-
aced by * and in the reverse direction.
ESC-u
Toggle search highlighting.
:e [filename]
Read in filename and insert it into the command-line list of
filenames. Without filename, reread the current file. filename
may contain special characters:
% Name of current file.
# Name of previous file.
^X^V, E
Same as :e.
:n Read in next file in command-line list.
:p Read in previous file in command-line list.
:x Read in first file in command-line list.
:f,=, ^G
Print filename, position in command-line list, line number on
top of window, total lines, byte number, and total bytes.
- (single dash)
Expects to be followed by a command-line option letter.
Toggle the value of that option or, if appropriate, prompt for
its new value.
-+ Expects to be followed by a command-line option letter. Reset
that option to its default.
-- Expects to be followed by a command-line option letter. Reset
that option to the opposite of its default, where the opposite
can be determined.
_ (underscore)
Expects to be followed by a command-line ...