Options Used by :set
The following table describes the options to :set. The first column includes the optional abbreviation, if there is one, and uses an equals sign to show that the option takes a value. The second column gives the default, and the third column describes the behavior of the enabled option.
|
Option |
Default |
Description |
|
|
|
In insert mode, indent each line to the same level as the line above or below. |
|
|
|
Display changes after each editor command. (For global replacement, display last replacement.) |
|
|
|
Automatically write (save) file if changed, before opening another file with :n or before giving an external command with |
|
|
Describe the background so the editor can choose appropriate highlighting colors. Default value of | |
|
|
|
Create a backup file when overwriting an existing file. ( |
|
|
|
Name directories in which to store backup files if possible. The list of directories is comma-separated and in order of preference. ( |
|
|
|
String to append to filenames for backup files. ( |
|
|
|
Ignore all control characters during input (except tab, newline, or formfeed). |
|
|
|
Insert indents in appropriate C format. ( |
|
|
|
Make vim behave more like vi. Default ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access