can also be disabled by toggling the -G option; in that case search commands do not turn highlighting back on.)
ESC‐U Like ESC‐u but also clears the saved search pattern. If the status column is enabled via the -J option, this clears all search matches marked in the status column.
&pattern
Display only lines which match the pattern; lines which do not match the pattern are not displayed. If pattern is empty (if you type & immediately followed by ENTER), any filtering is turned off, and all lines
are displayed. While filtering is in effect, an ampersand is displayed at the beginning of the prompt, as a reminder that some lines in the file may be hidden. Multiple & commands may be entered, in which
case only lines which match all of the patterns will be displayed.
Certain characters are special as in the / command:
^N or !
Display only lines which do NOT match the pattern.
^R Don’t interpret regular expression metacharacters; that is, do a simple textual comparison.
:e [filename]
Examine a new file. If the filename is missing, the "current" file (see the :n and :p commands below) from the list of files in the command line is re‐examined. A percent sign (%) in the filename is replaced
by the name of the current file. A pound sign (#) is replaced by the name of the previously examined file. However, two consecutive percent signs are simply replaced with a single percent sign. This allows
you to enter a filename that contains a percent sign in the name. Similarly, two consecutive pound signs are replaced with a single pound sign. The filename is inserted into the command line list of files so
that it can be seen by subsequent :n and :p commands. If the filename consists of several files, they are all inserted into the list of files and the first one is examined. If the filename contains one or
more spaces, the entire filename should be enclosed in double quotes (also see the -" option).
^X^V or E
Same as :e. Warning: some systems use ^V as a special literalization character. On such systems, you may not be able to use ^V.
:n Examine the next file (from the list of files given in the command line). If a number N is specified, the N‐th next file is examined.
:p Examine the previous file in the command line list. If a number N is specified, the N‐th previous file is examined.
:x Examine the first file in the command line list. If a number N is specified, the N‐th file in the list is examined.
:d Remove the current file from the list of files.
t Go to the next tag, if there were more than one matches for the current tag. See the -t option for more details about tags.
T Go to the previous tag, if there were more than one matches for the current tag.
= or ^G or :f
Prints some information about the file being viewed, including its name and the line number and byte offset of the bottom line being displayed. If possible, it also prints the length of the file, the number of
lines in the file and the percent of the file above the last displayed line.
- Followed by one of the command line option letters (see OPTIONS below), this will change the setting of that option and print a message describing the new setting. If a ^P (CONTROL‐P) is entered immediately
after the dash, the setting of the option is changed but no message is printed. If the option letter has a numeric value (such as -b or -h), or a string value (such as -P or -t), a new value may be entered af‐
ter the option letter. If no new value is entered, a message describing the current setting is printed and nothing is changed.
-- Like the - command, but takes