Home Explore Blog CI



neovim

31th chunk of `runtime/doc/options.txt`
d434f106fbd60224379e6660b2c104ce614e3597334df1fa0000000100000fa2
	^\s*\ze\i\+\s*=\s*function(
<	If the function is defined with `func_name : function() {...`: >
	        ^\s*\ze\i\+\s*[:]\s*(*function\s*(
<	When using the ":set" command, you need to double the backslashes!
	To avoid that use `:let` with a single quote string: >vim
		let &l:define = '^\s*\ze\k\+\s*=\s*function('
<

			*'delcombine'* *'deco'* *'nodelcombine'* *'nodeco'*
'delcombine' 'deco'	boolean	(default off)
			global
	If editing Unicode and this option is set, backspace and Normal mode
	"x" delete each combining character on its own.  When it is off (the
	default) the character along with its combining characters are
	deleted.
	Note: When 'delcombine' is set "xx" may work differently from "2x"!

	This is useful for Arabic, Hebrew and many other languages where one
	may have combining characters overtop of base characters, and want
	to remove only the combining ones.

						*'dictionary'* *'dict'*
'dictionary' 'dict'	string	(default "")
			global or local to buffer |global-local|
	List of file names, separated by commas, that are used to lookup words
	for keyword completion commands |i_CTRL-X_CTRL-K|.  Each file should
	contain a list of words.  This can be one word per line, or several
	words per line, separated by non-keyword characters (white space is
	preferred).  Maximum line length is 510 bytes.

	When this option is empty or an entry "spell" is present, and spell
	checking is enabled, words in the word lists for the currently active
	'spelllang' are used. See |spell|.

	To include a comma in a file name precede it with a backslash.  Spaces
	after a comma are ignored, otherwise spaces are included in the file
	name.  See |option-backslash| about using backslashes.
	This has nothing to do with the |Dictionary| variable type.
	Where to find a list of words?
	- BSD/macOS include the "/usr/share/dict/words" file.
	- Try "apt install spell" to get the "/usr/share/dict/words" file on
	  apt-managed systems (Debian/Ubuntu).
	The use of |:set+=| and |:set-=| is preferred when adding or removing
	directories from the list.  This avoids problems when a future version
	uses another default.
	Backticks cannot be used in this option for security reasons.

						*'diff'* *'nodiff'*
'diff'			boolean	(default off)
			local to window
	Join the current window in the group of windows that shows differences
	between files.  See |diff-mode|.

						*'diffexpr'* *'dex'*
'diffexpr' 'dex'	string	(default "")
			global
	Expression which is evaluated to obtain a diff file (either ed-style
	or unified-style) from two versions of a file.  See |diff-diffexpr|.
	This option cannot be set from a |modeline| or in the |sandbox|, for
	security reasons.

						*'diffopt'* *'dip'*
'diffopt' 'dip'		string	(default "internal,filler,closeoff,inline:simple,linematch:40")
			global
	Option settings for diff mode.  It can consist of the following items.
	All are optional.  Items must be separated by a comma.

		algorithm:{text} Use the specified diff algorithm with the
				internal diff engine. Currently supported
				algorithms are:
				myers      the default algorithm
				minimal    spend extra time to generate the
					   smallest possible diff
				patience   patience diff algorithm
				histogram  histogram diff algorithm

		closeoff	When a window is closed where 'diff' is set
				and there is only one window remaining in the
				same tab page with 'diff' set, execute
				`:diffoff` in that window.  This undoes a
				`:diffsplit` command.

		context:{n}	Use a context of {n} lines between a change
				and a fold that contains unchanged lines.
				When omitted a context of six lines is used.
				When using zero the context is actually one,
				since folds require a line in between, also
				for a deleted line. Set it to a very large
				value (999999) to disable folding completely.
				See |fold-diff|.

		filler		Show filler lines, to keep the text
				synchronized with a window that has inserted
				lines at the same position.  Mostly useful
				when windows

Title: Vim Options: Definition Matching, Unicode Deletion, Dictionaries, and Diff Settings
Summary
This section of the documentation explains how to define patterns for matching function definitions in Javascript, handle Unicode combining characters during deletion using the 'delcombine' option, specify dictionary files for keyword completion, and configure Vim's diff mode using the 'diff', 'diffexpr', and 'diffopt' options. It also details how to customize the diff algorithm, context, and filler lines for comparing files.