For questions about runtime settings that modify the behavior of the editor. When applicable, tag the version of the editor.
Options are settings that influence the behavior of the editor and that can be set at runtime. Options can have string, numeric or boolean values. In Vim, some options can have different values in different buffers or windows.
This tag is about ex/vi edit options. For command line options when starting vi, see invocation.
Basic usage
- Change the value of an option:
:set optionname=value
- Set a boolean option to true:
:set optionname
- Set a boolean option to false:
:set nooptionname
- See the current value of an option:
:set optionname?
References
- POSIX ex options
- Vim: quick list of all options, detailed manual of all options,
set
command