Home Explore Blog CI



neovim

4th chunk of `runtime/doc/vvars.txt`
4d3038803953506f0fb6882cda83eb208baa9a1405d6e73c0000000100000fa1
 such as
		          'fileformat', 'fileencoding', 'binary'
		          (does not work if the file was
		          deleted).
		  ask     Ask the user what to do, as if there
		          was no autocommand.  Except that when
		          only the timestamp changed nothing
		          will happen.
		  <empty> Nothing, the autocommand should do
		          everything that needs to be done.
		The default is empty.  If another (invalid) value is used then
		Vim behaves like it is empty, there is no warning message.

				*v:fcs_reason* *fcs_reason-variable*
v:fcs_reason
		The reason why the |FileChangedShell| event was triggered.
		Can be used in an autocommand to decide what to do and/or what
		to set v:fcs_choice to.  Possible values:
		  deleted   file no longer exists
		  conflict  file contents, mode or timestamp was
		            changed and buffer is modified
		  changed   file contents has changed
		  mode      mode of file changed
		  time      only file timestamp changed

					*v:fname* *fname-variable*
v:fname
		When evaluating 'includeexpr': the file name that was
		detected.  Empty otherwise.

				*v:fname_diff* *fname_diff-variable*
v:fname_diff
		The name of the diff (patch) file.  Only valid while
		evaluating 'patchexpr'.

					*v:fname_in* *fname_in-variable*
v:fname_in
		The name of the input file.  Valid while evaluating:
		  option         used for ~
		  'charconvert'  file to be converted
		  'diffexpr'     original file
		  'patchexpr'    original file
		And set to the swap file name for |SwapExists|.

				*v:fname_new* *fname_new-variable*
v:fname_new
		The name of the new version of the file.  Only valid while
		evaluating 'diffexpr'.

				*v:fname_out* *fname_out-variable*
v:fname_out
		The name of the output file.  Only valid while
		evaluating:
		  option           used for ~
		  'charconvert'    resulting converted file [1]
		  'diffexpr'       output of diff
		  'patchexpr'      resulting patched file
		[1] When doing conversion for a write command (e.g., ":w
		file") it will be equal to v:fname_in.  When doing conversion
		for a read command (e.g., ":e file") it will be a temporary
		file and different from v:fname_in.

				*v:folddashes* *folddashes-variable*
v:folddashes
		Used for 'foldtext': dashes representing foldlevel of a closed
		fold.
		Read-only in the |sandbox|. |fold-foldtext|

					*v:foldend* *foldend-variable*
v:foldend
		Used for 'foldtext': last line of closed fold.
		Read-only in the |sandbox|. |fold-foldtext|

				*v:foldlevel* *foldlevel-variable*
v:foldlevel
		Used for 'foldtext': foldlevel of closed fold.
		Read-only in the |sandbox|. |fold-foldtext|

				*v:foldstart* *foldstart-variable*
v:foldstart
		Used for 'foldtext': first line of closed fold.
		Read-only in the |sandbox|. |fold-foldtext|

					*v:hlsearch* *hlsearch-variable*
v:hlsearch
		Variable that indicates whether search highlighting is on.
		Setting it makes sense only if 'hlsearch' is enabled. Setting
		this variable to zero acts like the |:nohlsearch| command,
		setting it to one acts like >vim
		  let &hlsearch = &hlsearch
<
		Note that the value is restored when returning from a
		function. |function-search-undo|.

				*v:insertmode* *insertmode-variable*
v:insertmode
		Used for the |InsertEnter| and |InsertChange| autocommand
		events.  Values:
		  i    Insert mode
		  r    Replace mode
		  v    Virtual Replace mode

						*v:key* *key-variable*
v:key
		Key of the current item of a |Dictionary|.  Only valid while
		evaluating the expression used with |map()| and |filter()|.
		Read-only.

						*v:lang* *lang-variable*
v:lang
		The current locale setting for messages of the runtime
		environment.  This allows Vim scripts to be aware of the
		current language.  Technical: it's the value of LC_MESSAGES.
		The value is system dependent.
		This variable can not be set directly, use the |:language|
		command.
		It can be different from |v:ctype| when messages are desired
		in a different language than what is used for

Title: Nvim Predefined Variables: File Names, Folding, Highlighting, Insert Mode, and Language Settings
Summary
This section describes several predefined variables in Nvim, including 'v:fname', 'v:fname_diff', 'v:fname_in', 'v:fname_new', and 'v:fname_out', which provide file names during different operations. It also explains 'v:folddashes', 'v:foldend', 'v:foldlevel', and 'v:foldstart' for customizing fold text. The variable 'v:hlsearch' controls search highlighting, 'v:insertmode' indicates the current insert mode, 'v:key' is used in dictionary mapping, and 'v:lang' reflects the current locale setting.