By default, text searches are
case sensitive[1]. For example,
/tow
will match the pattern
town
but not
Town
.
The
ignorecase
option causes text searches to see uppercase and lowercase letters as identical. For example,
/tow
will match
town
or
Town
.
Most configuration options have a short form. For example,
ic
is the short form for
ignorecase
, so you can turn it on like this:
:set ic
: To turn
ignorecase
off again and restore vi's default behavior, enter this:
:set noic
Other useful configuration options include
wrapmargin
and
number
.
In addition to defining options, you can also display options in two ways.
If you enter
:set
by itself, vi lists any options that have changed from their default values.
To display vi's entire list of options, enter the
:set all
command.