Home Explore Blog CI



neovim

6th chunk of `runtime/doc/vvars.txt`
dc10a976f7cd3dcc5bae8bbccef143a40462e3f0fa7ae92c0000000100000fb1
 |msgpackdump()|. All types inside dictionary are fixed
		(not editable) empty lists. To check whether some list is one
		of msgpack types, use |is| operator.

						*v:null* *null-variable*
v:null
		Special value used to put "null" in JSON and NIL in msgpack.
		See |json_encode()|.  This value is converted to "v:null" when
		used as a String (e.g. in |expr5| with string concatenation
		operator) and to zero when used as a Number (e.g. in |expr5|
		or |expr7| when used with numeric operators). Read-only.
		In some places `v:null` can be used for a List, Dict, etc.
		that is not set.  That is slightly different than an empty
		List, Dict, etc.

				*v:numbermax* *numbermax-variable*
v:numbermax	Maximum value of a number.

				*v:numbermin* *numbermin-variable*
v:numbermin	Minimum value of a number (negative).

				*v:numbersize* *numbersize-variable*
v:numbersize
		Number of bits in a Number.  This is normally 64, but on some
		systems it may be 32.

					*v:oldfiles* *oldfiles-variable*
v:oldfiles
		List of file names that is loaded from the |shada| file on
		startup.  These are the files that Vim remembers marks for.
		The length of the List is limited by the ' argument of the
		'shada' option (default is 100).
		When the |shada| file is not used the List is empty.
		Also see |:oldfiles| and |c_#<|.
		The List can be modified, but this has no effect on what is
		stored in the |shada| file later.  If you use values other
		than String this will cause trouble.

					*v:operator* *operator-variable*
v:operator
		The last operator given in Normal mode.  This is a single
		character except for commands starting with <g> or <z>,
		in which case it is two characters.  Best used alongside
		|v:prevcount| and |v:register|.  Useful if you want to cancel
		Operator-pending mode and then use the operator, e.g.: >vim
		  :omap O <Esc>:call MyMotion(v:operator)<CR>
<
		The value remains set until another operator is entered, thus
		don't expect it to be empty.
		v:operator is not set for |:delete|, |:yank| or other Ex
		commands.
		Read-only.

			*v:option_command* *option_command-variable*
v:option_command
		Command used to set the option. Valid while executing an
		|OptionSet| autocommand.
		  value        option was set via ~
		  "setlocal"   |:setlocal| or `:let l:xxx`
		  "setglobal"  |:setglobal| or `:let g:xxx`
		  "set"        |:set| or |:let|
		  "modeline"   |modeline|

				*v:option_new* *option_new-variable*
v:option_new
		New value of the option. Valid while executing an |OptionSet|
		autocommand.

				*v:option_old* *option_old-variable*
v:option_old
		Old value of the option. Valid while executing an |OptionSet|
		autocommand. Depending on the command used for setting and the
		kind of option this is either the local old value or the
		global old value.

			*v:option_oldglobal* *option_oldglobal-variable*
v:option_oldglobal
		Old global value of the option. Valid while executing an
		|OptionSet| autocommand.

			*v:option_oldlocal* *option_oldlocal-variable*
v:option_oldlocal
		Old local value of the option. Valid while executing an
		|OptionSet| autocommand.

				*v:option_type* *option_type-variable*
v:option_type
		Scope of the set command. Valid while executing an
		|OptionSet| autocommand. Can be either "global" or "local"

				*v:prevcount* *prevcount-variable*
v:prevcount
		The count given for the last but one Normal mode command.
		This is the v:count value of the previous command.  Useful if
		you want to cancel Visual or Operator-pending mode and then
		use the count, e.g.: >vim
		  :vmap % <Esc>:call MyFilter(v:prevcount)<CR>
<
		Read-only.

				*v:profiling* *profiling-variable*
v:profiling
		Normally zero.  Set to one after using ":profile start".
		See |profiling|.

					*v:progname* *progname-variable*
v:progname
		The name by which Nvim was invoked (with path removed).
		Read-only.

					*v:progpath* *progpath-variable*
v:progpath
		Absolute path to the current running Nvim.
		Read-only.

					*v:register* *register-variable*

Title: Nvim Predefined Variables: Old Files, Operator, Options, Counts, Profiling, and Program Name
Summary
This section covers several more predefined variables in Nvim. It describes 'v:oldfiles', a list of files loaded from the shada file; 'v:operator', the last operator given in Normal mode; 'v:option_command', 'v:option_new', 'v:option_old', 'v:option_oldglobal', 'v:option_oldlocal', and 'v:option_type', all related to option setting during OptionSet autocommands; 'v:prevcount', the count given for the previous Normal mode command; 'v:profiling', indicating whether profiling is active; and 'v:progname' and 'v:progpath' which hold the program name and path respectively.