Home Explore Blog CI



neovim

33th chunk of `runtime/doc/options.txt`
d8d6ae7a90db4ca0b9b7738f62fcc1a4f633ebf0903c299d0000000100000fa2
 the documentation
				of the "diff" command for what this does
				exactly.  It should ignore adding trailing
				white space, but not leading white space.

		iwhiteall	Ignore all white space changes.  Adds
				the "-w" flag to the "diff" command if
				'diffexpr' is empty.  Check the documentation
				of the "diff" command for what this does
				exactly.

		iwhiteeol	Ignore white space changes at end of line.
				Adds the "-Z" flag to the "diff" command if
				'diffexpr' is empty.  Check the documentation
				of the "diff" command for what this does
				exactly.

		linematch:{n}   Align and mark changes between the most
				similar lines between the buffers. When the
				total number of lines in the diff hunk exceeds
				{n}, the lines will not be aligned because for
				very large diff hunks there will be a
				noticeable lag. A reasonable setting is
				"linematch:60", as this will enable alignment
				for a 2 buffer diff hunk of 30 lines each,
				or a 3 buffer diff hunk of 20 lines each.

		vertical	Start diff mode with vertical splits (unless
				explicitly specified otherwise).

	Examples: >vim
		set diffopt=internal,filler,context:4
		set diffopt=
		set diffopt=internal,filler,foldcolumn:3
		set diffopt-=internal  " do NOT use the internal diff parser
<

				*'digraph'* *'dg'* *'nodigraph'* *'nodg'*
'digraph' 'dg'		boolean	(default off)
			global
	Enable the entering of digraphs in Insert mode with {char1} <BS>
	{char2}.  See |digraphs|.

						*'directory'* *'dir'*
'directory' 'dir'	string	(default "$XDG_STATE_HOME/nvim/swap//")
			global
	List of directory names for the swap file, separated with commas.

	Possible items:
	- The swap file will be created in the first directory where this is
	  possible.  If it is not possible in any directory, but last
	  directory listed in the option does not exist, it is created.
	- Empty means that no swap file will be used (recovery is
	  impossible!) and no |E303| error will be given.
	- A directory "." means to put the swap file in the same directory as
	  the edited file.  On Unix, a dot is prepended to the file name, so
	  it doesn't show in a directory listing.  On MS-Windows the "hidden"
	  attribute is set and a dot prepended if possible.
	- A directory starting with "./" (or ".\" for MS-Windows) means to put
	  the swap file relative to where the edited file is.  The leading "."
	  is replaced with the path name of the edited file.
	- For Unix and Win32, if a directory ends in two path separators "//",
	  the swap file name will be built from the complete path to the file
	  with all path separators replaced by percent '%' signs (including
	  the colon following the drive letter on Win32). This will ensure
	  file name uniqueness in the preserve directory.
	  On Win32, it is also possible to end with "\\".  However, When a
	  separating comma is following, you must use "//", since "\\" will
	  include the comma in the file name. Therefore it is recommended to
	  use '//', instead of '\\'.
	- Spaces after the comma are ignored, other spaces are considered part
	  of the directory name.  To have a space at the start of a directory
	  name, precede it with a backslash.
	- To include a comma in a directory name precede it with a backslash.
	- A directory name may end in an ':' or '/'.
	- Environment variables are expanded |:set_env|.
	- Careful with '\' characters, type one before a space, type two to
	  get one in the option (see |option-backslash|), for example: >vim
	    set dir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces
<
	Editing the same file twice will result in a warning.  Using "/tmp" on
	is discouraged: if the system crashes you lose the swap file. And
	others on the computer may be able to see the files.
	Use |:set+=| and |:set-=| when adding or removing directories from the
	list, this avoids problems if the Nvim default is changed.

	This option cannot be set from a |modeline| or in the |sandbox|, for
	security reasons.

						*'display'* *'dy'*
'display'

Title: More 'diffopt' details and 'digraph', 'directory' options in Vim
Summary
This section continues the description of 'diffopt' options, focusing on ignoring whitespace variations and line matching for diff alignment. It also provides examples of how to set the 'diffopt' option. Additionally, it explains the 'digraph' option, which enables digraph input in Insert mode, and the 'directory' option, which configures the list of directories to store swap files, including details on how to specify directory paths and handle special characters and spaces.