Home Explore Blog CI



neovim

12th chunk of `runtime/doc/options.txt`
23176af44b75dcc9b8ef380f072745a6cef388eeec446c560000000100000fa1
 deleted.  When it appears again then it is read.
	|timestamp|
	If this option has a local value, use this command to switch back to
	using the global value: >vim
		set autoread<
<

				*'autowrite'* *'aw'* *'noautowrite'* *'noaw'*
'autowrite' 'aw'	boolean	(default off)
			global
	Write the contents of the file, if it has been modified, on each
	`:next`, `:rewind`, `:last`, `:first`, `:previous`, `:stop`,
	`:suspend`, `:tag`, `:!`, `:make`, CTRL-] and CTRL-^ command; and when
	a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command takes one
	to another file.
	A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is
	set to "hide" and `:next` is used.
	Note that for some commands the 'autowrite' option is not used, see
	'autowriteall' for that.
	Some buffers will not be written, specifically when 'buftype' is
	"nowrite", "nofile", "terminal" or "prompt".
	USE WITH CARE: If you make temporary changes to a buffer that you
	don't want to be saved this option may cause it to be saved anyway.
	Renaming the buffer with ":file {name}" may help avoid this.

			*'autowriteall'* *'awa'* *'noautowriteall'* *'noawa'*
'autowriteall' 'awa'	boolean	(default off)
			global
	Like 'autowrite', but also used for commands ":edit", ":enew", ":quit",
	":qall", ":exit", ":xit", ":recover" and closing the Vim window.
	Setting this option also implies that Vim behaves like 'autowrite' has
	been set.

						*'background'* *'bg'*
'background' 'bg'	string	(default "dark")
			global
	When set to "dark" or "light", adjusts the default color groups for
	that background type.  The |TUI| or other UI sets this on startup
	(triggering |OptionSet|) if it can detect the background color.

	This option does NOT change the background color, it tells Nvim what
	the "inherited" (terminal/GUI) background looks like.
	See |:hi-normal| if you want to set the background color explicitly.
						*g:colors_name*
	When a color scheme is loaded (the "g:colors_name" variable is set)
	changing 'background' will cause the color scheme to be reloaded.  If
	the color scheme adjusts to the value of 'background' this will work.
	However, if the color scheme sets 'background' itself the effect may
	be undone.  First delete the "g:colors_name" variable when needed.

	Normally this option would be set in the vimrc file.  Possibly
	depending on the terminal name.  Example: >vim
		if $TERM ==# "xterm"
		  set background=dark
		endif
<	When this option is changed, the default settings for the highlight groups
	will change.  To use other settings, place ":highlight" commands AFTER
	the setting of the 'background' option.

						*'backspace'* *'bs'*
'backspace' 'bs'	string	(default "indent,eol,start")
			global
	Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert
	mode.  This is a list of items, separated by commas.  Each item allows
	a way to backspace over something:
	value	effect	~
	indent	allow backspacing over autoindent
	eol	allow backspacing over line breaks (join lines)
	start	allow backspacing over the start of insert; CTRL-W and CTRL-U
		stop once at the start of insert.
	nostop	like start, except CTRL-W and CTRL-U do not stop at the start of
		insert.

	When the value is empty, Vi compatible backspacing is used, none of
	the ways mentioned for the items above are possible.

				*'backup'* *'bk'* *'nobackup'* *'nobk'*
'backup' 'bk'		boolean	(default off)
			global
	Make a backup before overwriting a file.  Leave it around after the
	file has been successfully written.  If you do not want to keep the
	backup file, but you do want a backup while the file is being
	written, reset this option and set the 'writebackup' option (this is
	the default).  If you do not want a backup file at all reset both
	options (use this if your file system is almost full).  See the
	|backup-table| for more explanations.
	When the 'backupskip' pattern matches, a backup is not made anyway.
	When 'patchmode' is set, the backup may be renamed to become the
	oldest version of

Title: Vim Options: autowrite, autowriteall, background, backspace, and backup
Summary
This section provides detailed explanations of several Vim options, including 'autowrite' and 'autowriteall' for automatically saving modified files under different conditions, 'background' for adjusting color schemes, 'backspace' for controlling backspace behavior in insert mode, and 'backup' for creating backup files before overwriting.