Home Explore Blog CI



neovim

9th chunk of `runtime/doc/vvars.txt`
c525879bd150620e3179bce8303cc4b5609b337d6f2af47b0000000100000f6c
 for a |SwapExists| autocommand to have
		another Vim open the file and jump to the right place.  For
		example, when jumping to a tag the value is ":tag tagname\r".
		For ":edit +cmd file" the value is ":cmd\r".

					*v:swapname* *swapname-variable*
v:swapname
		Name of the swapfile found.
		Only valid during |SwapExists| event.
		Read-only.

				*v:t_blob* *t_blob-variable* *v:t_TYPE*
v:t_blob	Value of |Blob| type.  Read-only.  See: |type()|

					*v:t_bool* *t_bool-variable*
v:t_bool	Value of |Boolean| type.  Read-only.  See: |type()|

					*v:t_dict* *t_dict-variable*
v:t_dict	Value of |Dictionary| type.  Read-only.  See: |type()|

					*v:t_float* *t_float-variable*
v:t_float	Value of |Float| type.  Read-only.  See: |type()|

					*v:t_func* *t_func-variable*
v:t_func	Value of |Funcref| type.  Read-only.  See: |type()|

					*v:t_list* *t_list-variable*
v:t_list	Value of |List| type.  Read-only.  See: |type()|

					*v:t_number* *t_number-variable*
v:t_number	Value of |Number| type.  Read-only.  See: |type()|

					*v:t_string* *t_string-variable*
v:t_string	Value of |String| type.  Read-only.  See: |type()|

				*v:termrequest* *termrequest-variable*
v:termrequest
		The value of the most recent OSC, DCS or APC control sequence
		sent from a process running in the embedded |terminal|.
		This can be read in a |TermRequest| event handler to respond
		to queries from embedded applications.

				*v:termresponse* *termresponse-variable*
v:termresponse
		The value of the most recent OSC or DCS control sequence
		received by Nvim from the terminal. This can be read in a
		|TermResponse| event handler after querying the terminal using
		another escape sequence.

					*v:testing* *testing-variable*
v:testing	Must be set before using `test_garbagecollect_now()`.

				*v:this_session* *this_session-variable*
v:this_session
		Full filename of the last loaded or saved session file.
		Empty when no session file has been saved.  See |:mksession|.
		Modifiable (can be set).

				*v:throwpoint* *throwpoint-variable*
v:throwpoint
		The point where the exception most recently caught and not
		finished was thrown.  Not set when commands are typed.  See
		also |v:exception|, |v:stacktrace|, and |throw-variables|.
		Example: >vim
		  try
		    throw "oops"
		  catch /.*/
		    echo "Exception from" v:throwpoint
		  endtry
<
		Output: "Exception from test.vim, line 2"

						*v:true* *true-variable*
v:true
		Special value used to put "true" in JSON and msgpack.  See
		|json_encode()|.  This value is converted to "v:true" when used
		as a String (e.g. in |expr5| with string concatenation
		operator) and to one when used as a Number (e.g. in |expr5| or
		|expr7| when used with numeric operators). Read-only.

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

					*v:version* *version-variable*
v:version
		Vim version number: major version times 100 plus minor
		version.  Vim 5.0 is 500, Vim 5.1 is 501.
		Read-only.
		Use |has()| to check the Nvim (not Vim) version: >vim
		  :if has("nvim-0.2.1")
<

			*v:vim_did_enter* *vim_did_enter-variable*
v:vim_did_enter
		0 during startup, 1 just before |VimEnter|.
		Read-only.

					*v:virtnum* *virtnum-variable*
v:virtnum
		Virtual line number for the 'statuscolumn' expression.
		Negative when drawing the status column for virtual lines, zero
		when drawing an actual buffer line, and positive when drawing
		the wrapped part of a buffer line.
		Read-only.

				*v:warningmsg* *warningmsg-variable*
v:warningmsg
		Last given warning message.
		Modifiable (can be set).

					*v:windowid* *windowid-variable*
v:windowid
		Application-specific window "handle" which may be set by any
		attached UI. Defaults to zero.
		Note: For Nvim |windows| use |winnr()| or |win_getid()|, see
		|window-ID|.

 vim:tw=78:ts=8:noet:ft=help:norl:

Title: Nvim Predefined Variables: Swapfile Name, Data Types, Terminal Interaction, Session, Exceptions, Version, and More
Summary
This section details Nvim's predefined variables, including 'v:swapname' (swapfile name), type variables ('v:t_blob', 'v:t_bool', etc.), 'v:termrequest' and 'v:termresponse' (terminal interaction), 'v:this_session' (session file), 'v:throwpoint' (exception point), 'v:true' (boolean true), 'v:val' (current item in map() or filter()), 'v:version' (Vim version), 'v:vim_did_enter' (startup status), 'v:virtnum' (virtual line number), 'v:warningmsg' (last warning), and 'v:windowid' (application window handle). It also describes how to interact with terminal processes and handle exceptions.