By default, text searches are case sensitive
. For example,
will match the pattern
option causes text searches to see uppercase and lowercase letters as identical. For example,
Most configuration options have a short form. For example,
is the short form for
, so you can turn it on like this:
: To turn
off again and restore vi's default behavior, enter this:
Other useful configuration options include
In addition to defining options, you can also display options in two ways. If you enter
by itself, vi lists any options that have changed from their default values.
To display vi's entire list of options, enter the
1) Start by opening the quartet file in vi.
2) Enter the set command to list options that have changed from their defaults.
3) The set command lists three changed options: redraw, showmode and term=vt100.
4) The redraw and term options ensure that vi correctly displays text on your terminal.
5) You can explicitly change options within your version.
6) Later on, you can enter the set command to check your options again.
7) The listing now shows the ignorecase option that you turned on.