Home Explore Blog CI



neovim

77th chunk of `runtime/doc/options.txt`
ea6a41e272f1cd526f92fdb3933028fcd2057723a0d870270000000100000fa1
 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 their value.
	CHAR	VALUE	~
							*shada-!*
	!	When included, save and restore global variables that start
		with an uppercase letter, and don't contain a lowercase
		letter.  Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis"
		and "_K_L_M" are not.  Nested List and Dict items may not be
		read back correctly, you end up with an empty item.
							*shada-quote*
	"	Maximum number of lines saved for each register.  Old name of
		the '<' item, with the disadvantage that you need to put a
		backslash before the ", otherwise it will be recognized as the
		start of a comment!
							*shada-%*
	%	When included, save and restore the buffer list.  If Vim is
		started with a file name argument, the buffer list is not
		restored.  If Vim is started without a file name argument, the
		buffer list is restored from the shada file.  Quickfix
		('buftype'), unlisted ('buflisted'), unnamed and buffers on
		removable media (|shada-r|) are not saved.
		When followed by a number, the number specifies the maximum
		number of buffers that are stored.  Without a number all
		buffers are stored.
							*shada-'*
	'	Maximum number of previously edited files for which the marks
		are remembered.  This parameter must always be included when
		'shada' is non-empty.
		If non-zero, then the |jumplist| and the |changelist| are also
		stored in the shada file.
							*shada-/*
	/	Maximum number of items in the search pattern history to be
		saved.  If non-zero, then the previous search and substitute
		patterns are also saved.  When not included, the value of
		'history' is used.
							*shada-:*
	:	Maximum number of items in the command-line history to be
		saved.  When not included, the value of 'history' is used.
							*shada-<*
	<	Maximum number of lines saved for each register.  If zero then
		registers are not saved.  When not included, all lines are
		saved.  '"' is the old name for this item.
		Also see the 's' item below: limit specified in KiB.
							*shada-@*
	@	Maximum number of items in the input-line history to be
		saved.  When not included, the value of 'history' is used.
							*shada-c*
	c	Dummy option, kept for compatibility reasons.  Has no actual
		effect: ShaDa always uses UTF-8 and 'encoding' value is fixed
		to UTF-8 as well.
							*shada-f*
	f	Whether file marks need to be stored.  If zero, file marks ('0
		to '9, 'A to 'Z) are not stored.  When not present or when
		non-zero, they are all stored.  '0 is used for the current
		cursor position (when exiting or when doing |:wshada|).
							*shada-h*
	h	Disable the effect of 'hlsearch' when loading the shada
		file.  When not included, it depends on whether ":nohlsearch"
		has been used since the last search command.
							*shada-n*
	n	Name of the shada file.  The name must immediately follow
		the 'n'.  Must be at the end of the option!  If the
		'shadafile' option is set, that file name overrides the one
		given here with 'shada'.  Environment variables are
		expanded when opening the file, not

Title: Vim Option: Shared Data (Shada) - Detailed Configuration
Summary
This section continues detailing the 'shada' option, which manages how Vim reads and writes the shared data file. It provides a comprehensive list of parameters that can be configured within the 'shada' string. These parameters, identified by single characters, control what data is saved and restored, including global variables, register contents, buffer lists, marks for previously edited files, search and command-line history, input-line history, file marks, and whether to disable 'hlsearch' when loading the shada file. It also covers the parameter for specifying the shada file name.