Home Explore Blog CI



neovim

76th chunk of `runtime/doc/options.txt`
569564ae0749eb54578b8dc816c5ef6b414918ea404946600000000100000fa1
	string	(default "inclusive")
			global
	This option defines the behavior of the selection.  It is only used
	in Visual and Select mode.
	Possible values:
	   value	past line     inclusive ~
	   old		   no		yes
	   inclusive	   yes		yes
	   exclusive	   yes		no
	"past line" means that the cursor is allowed to be positioned one
	character past the line.
	"inclusive" means that the last character of the selection is included
	in an operation.  For example, when "x" is used to delete the
	selection.
	When "old" is used and 'virtualedit' allows the cursor to move past
	the end of line the line break still isn't included.
	When "exclusive" is used, cursor position in visual mode will be
	adjusted for inclusive motions |inclusive-motion-selection-exclusive|.

	Note:
	- When "exclusive" is used and selecting from the end backwards, you
	  cannot include the last character of a line, when starting in Normal
	  mode and 'virtualedit' empty.
	- when "exclusive" is used with a single character visual selection,
	  Vim will behave as if the 'selection' is inclusive (in other words,
	  you cannot visually select an empty region).

						*'selectmode'* *'slm'*
'selectmode' 'slm'	string	(default "")
			global
	This is a comma-separated list of words, which specifies when to start
	Select mode instead of Visual mode, when a selection is started.
	Possible values:
	   mouse	when using the mouse
	   key		when using shifted special keys
	   cmd		when using "v", "V" or CTRL-V
	See |Select-mode|.

					*'sessionoptions'* *'ssop'*
'sessionoptions' 'ssop'	string	(default "blank,buffers,curdir,folds,help,tabpages,winsize,terminal")
			global
	Changes the effect of the |:mksession| command.  It is a comma-
	separated list of words.  Each word enables saving and restoring
	something:
	   word		save and restore ~
	   blank	empty windows
	   buffers	hidden and unloaded buffers, not just those in windows
	   curdir	the current directory
	   folds	manually created folds, opened/closed folds and local
			fold options
	   globals	global variables that start with an uppercase letter
			and contain at least one lowercase letter.  Only
			String and Number types are stored.
	   help		the help window
	   localoptions	options and mappings local to a window or buffer (not
			global values for local options)
	   options	all options and mappings (also global values for local
			options)
	   skiprtp	exclude 'runtimepath' and 'packpath' from the options
	   resize	size of the Vim window: 'lines' and 'columns'
	   sesdir	the directory in which the session file is located
			will become the current directory (useful with
			projects accessed over a network from different
			systems)
	   tabpages	all tab pages; without this only the current tab page
			is restored, so that you can make a session for each
			tab page separately
	   terminal	include terminal windows where the command can be
			restored
	   winpos	position of the whole Vim window
	   winsize	window sizes
	   slash	|deprecated| Always enabled. Uses "/" in filenames.
	   unix		|deprecated| Always enabled. Uses "\n" line endings.

	Don't include both "curdir" and "sesdir". When neither is included
	filenames are stored as absolute paths.
	If you leave out "options" many things won't work well after restoring
	the session.

					*'shada'* *'sd'* *E526* *E527* *E528*
'shada' 'sd'		string	(default for
                                   Win32:  !,'100,<50,s10,h,rA:,rB:
                                   others: !,'100,<50,s10,h)
			global
	When non-empty, the shada file is read upon startup and written
	when exiting Vim (see |shada-file|).  The string should be a comma-
	separated list of parameters, each consisting of a single character
	identifying the particular parameter, followed by a number or string
	which specifies the value of that parameter.  If a particular
	character is left out, then the default value is used for that
	parameter.  The following is a list of the identifying characters and
	the effect of

Title: Vim Options: Selection Mode, Session Options, Shared Data
Summary
This section details several Vim options. It begins with 'selectmode', which defines when to start Select mode instead of Visual mode based on user actions like mouse clicks, shifted special keys, or specific commands. It then explains 'sessionoptions', controlling what elements are saved and restored by the ':mksession' command. Options include saving empty windows, hidden buffers, current directory, folds, global variables, help window, local/global options, window size/position, and tab pages. Finally, it covers 'shada', which determines how Vim reads and writes the shared data file for persistent data across sessions.