robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
3b00ddb601
master
1--- @meta _ 2-- 3-- DO NOT EDIT. GENERATED BY: src/gen/gen_eval_files.lua 4-- 5error ( 'Cannot require a meta file' ) 6 7--- @class vim.v 8vim . v =... 9 10--- File arguments (expanded to absolute paths) given at startup. 11--- 12--- Unlike `v:argv`, this does not include option arguments 13--- such as `-u`, `--cmd`, or `+cmd`. Unlike `argv()`, it is not 14--- affected by later `:args`, `:argadd`, or plugin modifications. 15--- 16--- Example: 17--- ``` 18--- nvim file1.txt +ls -- file2.txt 19--- :echo v:argf 20--- " ['/path/to/cwd/file1.txt', '/path/to/cwd/file2.txt'] 21--- ``` 22--- @type string[] 23vim . v . argf =... 24 25--- Command line arguments (`-u`, `--cmd`, `+cmd`, …) Nvim was 26--- invoked with. The first item is the Nvim command. 27--- 28--- See `v:progpath` to get the full path to Nvim. 29--- See `v:argf` to get only file args, without other options. 30--- @type string[] 31vim . v . argv =... 32 33--- Argument for evaluating 'formatexpr' and used for the typed 34--- character when using <expr> in an abbreviation `:map-<expr>`. 35--- It is also used by the `InsertCharPre`, `InsertEnter`, 36--- `CmdlineLeave` and `CmdlineLeavePre` events. 37--- @type string 38vim . v . char =... 39 40--- The name of the character encoding of a file to be converted. 41--- Only valid while evaluating the 'charconvert' option. 42--- @type string 43vim . v . charconvert_from =... 44 45--- The name of the character encoding of a file after conversion. 46--- Only valid while evaluating the 'charconvert' option. 47--- @type string 48vim . v . charconvert_to =... 49 50--- The extra arguments ("++p", "++enc=", "++ff=") given to a file 51--- read/write command. This is set before an autocommand event 52--- for a file read/write command is triggered. There is a 53--- leading space to make it possible to append this variable 54--- directly after the read/write command. Note: "+cmd" isn't 55--- included here, because it will be executed anyway. 56--- @type string 57vim . v . cmdarg =... 58 59--- Set like v:cmdarg for a file read/write command. When a "!" 60--- was used the value is 1, otherwise it is 0. Note that this 61--- can only be used in autocommands. For user commands `<bang>` 62--- can be used. 63--- @type integer 64vim . v . cmdbang =... 65 66--- The current locale setting for collation order of the runtime 67--- environment. This allows Vim scripts to be aware of the 68--- current locale encoding. Technical: it's the value of 69--- LC_COLLATE. When not using a locale the value is "C". 70--- This variable can not be set directly, use the `:language` 71--- command. 72--- See `multi-lang`. 73--- @type string 74vim . v . collate =... 75 76--- Dictionary containing the `complete-items` for the most 77--- recently completed word after `CompleteDone`. Empty if the 78--- completion failed, or after leaving and re-entering insert 79--- mode. 80--- Note: Plugins can modify the value to emulate the builtin 81--- `CompleteDone` event behavior. 82--- @type vim.v.completed_item 83vim . v . completed_item =... 84 85--- The count given for the last Normal mode command. Can be used 86--- to get the count before a mapping. Read-only. Example: 87--- 88--- ```vim 89--- :map _x :<C-U>echo "the count is " .. v:count<CR> 90--- ``` 91--- 92--- Note: The <C-U> is required to remove the line range that you 93--- get when typing ':' after a count. 94--- When there are two counts, as in "3d2w", they are multiplied, 95--- just like what happens in the command, "d6w" for the example. 96--- Also used for evaluating the 'formatexpr' option. 97--- @type integer 98vim . v . count =... 99 100--- Just like "v:count", but defaults to one when no count is 101--- used. 102--- @type integer 103vim . v . count1 =... 104 105--- The current locale setting for characters of the runtime 106--- environment. This allows Vim scripts to be aware of the 107--- current locale encoding. Technical: it's the value of 108--- LC_CTYPE. When not using a locale the value is "C". 109--- This variable can not be set directly, use the `:language` 110--- command. 111--- See `multi-lang`. 112--- @type string 113vim . v . ctype =... 114 115--- Normally zero. When a deadly signal is caught it's set to 116--- one. When multiple signals are caught the number increases. 117--- Can be used in an autocommand to check if Vim didn't 118--- terminate normally. 119--- Example: 120--- 121--- ```vim 122--- :au VimLeave * if v:dying | echo "\nAAAAaaaarrrggghhhh!!!\n" | endif 123--- ``` 124--- 125--- Note: if another deadly signal is caught when v:dying is one, 126--- VimLeave autocommands will not be executed. 127--- @type integer 128vim . v . dying =... 129 130--- Number of screen cells that can be used for an `:echo` message 131--- in the last screen line before causing the `hit-enter` prompt 132--- (no longer applicable when `ui2` is enabled). 133--- 134--- Depends on 'showcmd', 'ruler' and 'columns'. You need to 135--- check 'cmdheight' for whether there are full-width lines 136--- available above the last line. 137--- @type integer 138vim . v . echospace =... 139 140--- Last error message that occurred (not necessarily displayed). 141--- Modifiable (can be set). 142--- Example: 143--- 144--- ```vim 145--- let v:errmsg = "" 146--- silent! next 147--- if v:errmsg != "" 148--- " ... handle error 149--- ``` 150--- @type string 151vim . v . errmsg =... 152 153--- Errors found by assert functions, such as `assert_true()`. 154--- This is a list of strings. 155--- The assert functions append an item when an assert fails. 156--- The return value indicates this: a one is returned if an item 157--- was added to v:errors, otherwise zero is returned. 158--- To remove old results make it empty: 159--- 160--- ```vim 161--- let v:errors = [] 162--- ``` 163--- 164--- If v:errors is set to anything but a list it is made an empty 165--- list by the assert function. 166--- @type string[] 167vim . v . errors =... 168 169--- Dictionary of event data for the current `autocommand`. Valid 170--- only during the event lifetime; storing or passing v:event is 171--- invalid! Copy it instead: 172--- 173--- ```vim 174--- au TextYankPost * let g:foo = deepcopy(v:event) 175--- ``` 176--- 177--- Keys vary by event; see the documentation for the specific 178--- event, e.g. `DirChanged` or `TextYankPost`. 179--- KEY DESCRIPTION ~ 180--- abort Whether the event triggered during 181--- an aborting condition (e.g. `c_Esc` or 182--- `c_CTRL-C` for `CmdlineLeave`). 183--- chan `channel-id` 184--- changed_window Is `v:true` if the event fired while 185--- changing window (or tab) on `DirChanged`. 186--- cmdlevel Level of cmdline. 187--- cmdtype Type of cmdline, `cmdline-char`. 188--- col Column count of popup menu on `CompleteChanged`, 189--- relative to screen. 190--- complete_type See `complete_info_mode` 191--- complete_word The selected word, or empty if completion 192--- was abandoned/discarded. 193--- completed_item Current selected item on `CompleteChanged`, 194--- or `{}` if no item selected. 195--- cwd Current working directory. 196--- height Height of popup menu on `CompleteChanged` 197--- inclusive Motion is `inclusive`, else exclusive. 198--- info Dict of arbitrary event data. 199--- operator Current `operator`. Also set for Ex 200--- commands (unlike `v:operator`). For 201--- example if `TextYankPost` is triggered 202--- by the `:yank` Ex command then 203--- `v:event.operator` is "y". 204--- reason `CompleteDone` reason. 205--- regcontents Text stored in the register as a 206--- `readfile()`-style list of lines. 207--- regname Requested register (e.g "x" for "xyy), or 208--- empty string for an unnamed operation. 209--- regtype Type of register as returned by 210--- `getregtype()`. 211--- row Row count of popup menu on `CompleteChanged`, 212--- relative to screen. 213--- scope Event-specific scope name. 214--- scrollbar `v:true` if popup menu has a scrollbar, or 215--- `v:false` if not. 216--- size Total number of completion items on 217--- `CompleteChanged`. 218--- status Job status or exit code, -1 means "unknown". `TermClose` 219--- visual Selection is visual (as opposed to e.g. a motion range). 220--- width Width of popup menu on `CompleteChanged` 221--- windows List of window IDs that changed on `WinResized` 222--- @type vim.v.event 223vim . v . event =... 224 225--- The value of the exception most recently caught and not 226--- finished. See also `v:stacktrace`, `v:throwpoint`, and 227--- `throw-variables`. 228--- Example: 229--- 230--- ```vim 231--- try 232--- throw "oops" 233--- catch /.*/ 234--- echo "caught " .. v:exception 235--- endtry 236--- ``` 237--- 238--- Output: "caught oops". 239--- @type string 240vim . v . exception =... 241 242--- Exit code, or `v:null` before invoking the `VimLeavePre` 243--- and `VimLeave` autocmds. See `:q`, `:x` and `:cquit`. 244--- Example: 245--- 246--- ```vim 247--- :au VimLeave * echo "Exit code is " .. v:exiting 248--- ``` 249--- @type integer? 250vim . v . exiting =... 251 252--- Reason for the current exit. Set before `QuitPre`. Reset if 253--- exit was canceled. 254--- 255--- Possible values: 256--- - "" Not exiting, or exit was canceled. 257--- - "quit" `:quit`, `:qall`, `:wq`, `ZZ`, `ZQ`, etc. 258--- - "restart" `:restart`, `ZR`. 259--- - "restart!" `:restart!`, `[count]``ZR`. 260--- 261--- Example: 262--- 263--- ```vim 264--- autocmd ExitPre * if v:exitreason ==# 'restart' | echomsg 'restarting' | endif 265--- ``` 266--- 267--- Read-only. 268--- @type string 269vim . v . exitreason =... 270 271--- Special value used to put "false" in JSON and msgpack. See 272--- `json_encode()`. This value is converted to "v:false" when used 273--- as a String (e.g. in `expr5` with string concatenation 274--- operator) and to zero when used as a Number (e.g. in `expr5` 275--- or `expr7` when used with numeric operators). Read-only. 276--- @type boolean 277vim . v [ 'false' ] =... 278 279--- What should happen after a `FileChangedShell` event was 280--- triggered. Can be used in an autocommand to tell Vim what to 281--- do with the affected buffer: 282--- reload Reload the buffer (does not work if 283--- the file was deleted). 284--- edit Reload the buffer and detect the 285--- values for options such as 286--- 'fileformat', 'fileencoding', 'binary' 287--- (does not work if the file was 288--- deleted). 289--- ask Ask the user what to do, as if there 290--- was no autocommand. Except that when 291--- only the timestamp changed nothing 292--- will happen. 293--- <empty> Nothing, the autocommand should do 294--- everything that needs to be done. 295--- The default is empty. If another (invalid) value is used then 296--- Vim behaves like it is empty, there is no warning message. 297--- @type string 298vim . v . fcs_choice =... 299 300--- The reason why the `FileChangedShell` event was triggered. 301--- Can be used in an autocommand to decide what to do and/or what 302--- to set v:fcs_choice to. Possible values: 303--- - deleted file no longer exists 304--- - conflict file contents, mode or timestamp was 305--- changed and buffer is modified 306--- - changed file contents has changed 307--- - mode mode of file changed 308--- - time only file timestamp changed 309--- @type string 310vim . v . fcs_reason =... 311 312--- When evaluating 'includeexpr': the file name that was 313--- detected. Empty otherwise. 314--- @type string 315vim . v . fname =... 316 317--- The name of the diff (patch) file. Only valid while 318--- evaluating 'patchexpr'. 319--- @type string 320vim . v . fname_diff =... 321 322--- The name of the input file. Valid while evaluating: 323--- option used for ~ 324--- 'charconvert' file to be converted 325--- 'diffexpr' original file 326--- 'patchexpr' original file 327--- And set to the swap file name for `SwapExists`. 328--- @type string 329vim . v . fname_in =... 330 331--- The name of the new version of the file. Only valid while 332--- evaluating 'diffexpr'. 333--- @type string 334vim . v . fname_new =... 335 336--- The name of the output file. Only valid while 337--- evaluating: 338--- option used for ~ 339--- 'charconvert' resulting converted file [1] 340--- 'diffexpr' output of diff 341--- 'patchexpr' resulting patched file 342--- [1] When doing conversion for a write command (e.g., ":w 343--- file") it will be equal to v:fname_in. When doing conversion 344--- for a read command (e.g., ":e file") it will be a temporary 345--- file and different from v:fname_in. 346--- @type string 347vim . v . fname_out =... 348 349--- Used for 'foldtext': dashes representing foldlevel of a closed 350--- fold. 351--- Read-only in the `sandbox`. `fold-foldtext` 352--- @type string 353vim . v . folddashes =... 354 355--- Used for 'foldtext': last line of closed fold. 356--- Read-only in the `sandbox`. `fold-foldtext` 357--- @type integer 358vim . v . foldend =... 359 360--- Used for 'foldtext': foldlevel of closed fold. 361--- Read-only in the `sandbox`. `fold-foldtext` 362--- @type integer 363vim . v . foldlevel =... 364 365--- Used for 'foldtext': first line of closed fold. 366--- Read-only in the `sandbox`. `fold-foldtext` 367--- @type integer 368vim . v . foldstart =... 369 370--- Variable that indicates whether search highlighting is on. 371--- Setting it makes sense only if 'hlsearch' is enabled. Setting 372--- this variable to zero acts like the `:nohlsearch` command, 373--- setting it to one acts like 374--- 375--- ```vim 376--- let &hlsearch = &hlsearch 377--- ``` 378--- 379--- Note that the value is restored when returning from a 380--- function. `function-search-undo`. 381--- @type integer 382vim . v . hlsearch =... 383 384--- Used for the `InsertEnter` and `InsertChange` autocommand 385--- events. Values: 386--- i Insert mode 387--- r Replace mode 388--- v Virtual Replace mode 389--- @type string 390vim . v . insertmode =... 391 392--- Key of the current item of a `Dictionary`. Only valid while 393--- evaluating the expression used with `map()` and `filter()`. 394--- Read-only. 395--- @type string 396vim . v . key =... 397 398--- The current locale setting for messages of the runtime 399--- environment. This allows Vim scripts to be aware of the 400--- current language. Technical: it's the value of LC_MESSAGES. 401--- The value is system dependent. 402--- This variable can not be set directly, use the `:language` 403--- command. 404--- It can be different from `v:ctype` when messages are desired 405--- in a different language than what is used for character 406--- encoding. See `multi-lang`. 407--- @type string 408vim . v . lang =... 409 410--- The current locale setting for time messages of the runtime 411--- environment. This allows Vim scripts to be aware of the 412--- current language. Technical: it's the value of LC_TIME. 413--- This variable can not be set directly, use the `:language` 414--- command. See `multi-lang`. 415--- @type string 416vim . v . lc_time =... 417 418--- Line number for the 'foldexpr' `fold-expr`, 'formatexpr', 419--- 'indentexpr' and 'statuscolumn' expressions, tab page number 420--- for 'guitablabel' and 'guitabtooltip'. Only valid while one of 421--- these expressions is being evaluated. Read-only when in the 422--- `sandbox`. 423--- @type integer 424vim . v . lnum =... 425 426--- Prefix for calling Lua functions from expressions. 427--- See `v:lua-call` for more information. 428--- @type any 429vim . v . lua =... 430 431--- Maximum line length. Depending on where it is used it can be 432--- screen columns, characters or bytes. The value currently is 433--- 2147483647 on all systems. 434--- @type integer 435vim . v . maxcol =... 436 437--- Column number for a mouse click obtained with `getchar()`. 438--- This is the screen column number, like with `virtcol()`. The 439--- value is zero when there was no mouse button click. 440--- @type integer 441vim . v . mouse_col =... 442 443--- Line number for a mouse click obtained with `getchar()`. 444--- This is the text line number, not the screen line number. The 445--- value is zero when there was no mouse button click. 446--- @type integer 447vim . v . mouse_lnum =... 448 449--- Window number for a mouse click obtained with `getchar()`. 450--- First window has number 1, like with `winnr()`. The value is 451--- zero when there was no mouse button click. 452--- @type integer 453vim . v . mouse_win =... 454 455--- `window-ID` for a mouse click obtained with `getchar()`. 456--- The value is zero when there was no mouse button click. 457--- @type integer 458vim . v . mouse_winid =... 459 460--- Dictionary containing msgpack types used by `msgpackparse()` 461--- and `msgpackdump()`. All types inside dictionary are fixed 462--- (not editable) empty lists. To check whether some list is one 463--- of msgpack types, use `is` operator. 464--- @type table 465vim . v . msgpack_types =... 466 467--- Special value used to put "null" in JSON and NIL in msgpack. 468--- See `json_encode()`. This value is converted to "v:null" when 469--- used as a String (e.g. in `expr5` with string concatenation 470--- operator) and to zero when used as a Number (e.g. in `expr5` 471--- or `expr7` when used with numeric operators). Read-only. 472--- In some places `v:null` can be used for a List, Dict, etc. 473--- that is not set. That is slightly different than an empty 474--- List, Dict, etc. 475--- @type vim.NIL 476vim . v . null =... 477 478--- Maximum value of a number. 479--- @type integer 480vim . v . numbermax =... 481 482--- Minimum value of a number (negative). 483--- @type integer 484vim . v . numbermin =... 485 486--- Number of bits in a Number. This is normally 64, but on some 487--- systems it may be 32. 488--- @type integer 489vim . v . numbersize =... 490 491--- List of file names that is loaded from the `shada` file on 492--- startup. These are the files that Vim remembers marks for. 493--- The length of the List is limited by the ' argument of the 494--- 'shada' option (default is 100). 495--- When the `shada` file is not used the List is empty. 496--- Also see `:oldfiles` and `c_#<`. 497--- The List can be modified, but this has no effect on what is 498--- stored in the `shada` file later. If you use values other 499--- than String this will cause trouble. 500--- @type string[] 501vim . v . oldfiles =... 502 503--- The last operator given in Normal mode. This is a single 504--- character except for commands starting with <g> or <z>, 505--- in which case it is two characters. Best used alongside 506--- `v:prevcount` and `v:register`. Useful if you want to cancel 507--- Operator-pending mode and then use the operator, e.g.: 508--- 509--- ```vim 510--- :omap O <Esc>:call MyMotion(v:operator)<CR> 511--- ``` 512--- 513--- The value remains set until another operator is entered, thus 514--- don't expect it to be empty. 515--- v:operator is not set for `:delete`, `:yank` or other Ex 516--- commands. 517--- Read-only. 518--- @type string 519vim . v . operator =... 520 521--- Command used to set the option. Valid while executing an 522--- `OptionSet` autocommand. 523--- value option was set via ~ 524--- "setlocal" `:setlocal` or `:let l:xxx` 525--- "setglobal" `:setglobal` or `:let g:xxx` 526--- "set" `:set` or `:let` 527--- "modeline" `modeline` 528--- @type string 529vim . v . option_command =... 530 531--- New value of the option. Valid while executing an `OptionSet` 532--- autocommand. 533--- @type any 534vim . v . option_new =... 535 536--- Old value of the option. Valid while executing an `OptionSet` 537--- autocommand. Depending on the command used for setting and 538--- the kind of option this is either the local old value or the 539--- global old value. 540--- @type any 541vim . v . option_old =... 542 543--- Old global value of the option. Valid while executing an 544--- `OptionSet` autocommand. 545--- @type any 546vim . v . option_oldglobal =... 547 548--- Old local value of the option. Valid while executing an 549--- `OptionSet` autocommand. 550--- @type any 551vim . v . option_oldlocal =... 552 553--- Scope of the set command. Valid while executing an 554--- `OptionSet` autocommand. Can be either "global" or "local" 555--- @type string 556vim . v . option_type =... 557 558--- The count given for the last but one Normal mode command. 559--- This is the v:count value of the previous command. Useful if 560--- you want to cancel Visual or Operator-pending mode and then 561--- use the count, e.g.: 562--- 563--- ```vim 564--- :vmap % <Esc>:call MyFilter(v:prevcount)<CR> 565--- ``` 566--- 567--- Read-only. 568--- @type integer 569vim . v . prevcount =... 570 571--- Normally zero. Set to one after using ":profile start". 572--- See `profiling`. 573--- @type integer 574vim . v . profiling =... 575 576--- The name by which Nvim was invoked (with path removed). 577--- Read-only. 578--- @type string 579vim . v . progname =... 580 581--- Absolute path to the current running Nvim. 582--- Read-only. 583--- @type string 584vim . v . progpath =... 585 586--- The name of the register in effect for the current normal mode 587--- command (regardless of whether that command actually used a 588--- register). Or for the currently executing normal mode mapping 589--- (use this in custom commands that take a register). 590--- If none is supplied it is the default register '"', unless 591--- 'clipboard' contains "unnamed" or "unnamedplus", then it is 592--- "*" or '+'. 593--- Also see `getreg()` and `setreg()` 594--- @type string 595vim . v . register =... 596 597--- Relative line number for the 'statuscolumn' expression. 598--- Read-only. 599--- @type integer 600vim . v . relnum =... 601 602--- String describing the script or function that caused the 603--- screen to scroll up. It's only set when it is empty, thus the 604--- first reason is remembered. It is set to "Unknown" for a 605--- typed command. 606--- @type string 607vim . v . scrollstart =... 608 609--- Search direction: 1 after a forward search, 0 after a 610--- backward search. It is reset to forward when directly setting 611--- the last search pattern, see `quote/`. 612--- Note that the value is restored when returning from a 613--- function. `function-search-undo`. 614--- Read-write. 615--- @type integer 616vim . v . searchforward =... 617 618--- Primary listen-address of Nvim, the first item returned by 619--- `serverlist()`. Usually this is the named pipe created by Nvim 620--- at `startup` or given by `--listen` (or the deprecated 621--- `$NVIM_LISTEN_ADDRESS` env var). 622--- 623--- See also `serverstart()` `serverstop()`. 624--- Read-only. 625--- 626--- *$NVIM* 627--- $NVIM is set to v:servername by `terminal` and `jobstart()`, 628--- and is thus a hint that the current environment is a child 629--- (direct subprocess) of Nvim. 630--- 631--- Example: a child Nvim process can detect and make requests to 632--- its parent Nvim: 633--- 634--- ```lua 635--- 636--- if vim.env.NVIM then 637--- local ok, chan = pcall(vim.fn.sockconnect, 'pipe', vim.env.NVIM, {rpc=true}) 638--- if ok and chan then 639--- local client = vim.api.nvim_get_chan_info(chan).client 640--- local rv = vim.rpcrequest(chan, 'nvim_exec_lua', [[return ... + 1]], { 41 }) 641--- vim.print(('got "%s" from parent Nvim'):format(rv)) 642--- end 643--- end 644--- ``` 645--- @type string 646vim . v . servername =... 647 648--- Result of the last shell command. When non-zero, the last 649--- shell command had an error. When zero, there was no problem. 650--- This only works when the shell returns the error code to Vim. 651--- The value -1 is often used when the command could not be 652--- executed. Read-only. 653--- Example: 654--- 655--- ```vim 656--- !mv foo bar 657--- if v:shell_error 658--- echo 'could not rename "foo" to "bar"!' 659--- endif 660--- ``` 661--- @type integer 662vim . v . shell_error =... 663 664--- The stack trace of the exception most recently caught and 665--- not finished. Refer to `getstacktrace()` for the structure of 666--- stack trace. See also `v:exception`, `v:throwpoint`, and 667--- `throw-variables`. 668--- @type table[] 669vim . v . stacktrace =... 670 671--- The reason Nvim started. Possible values: 672--- - "normal" Normal startup, yearning for life, etc. 673--- - "restart" Started by `:restart`. 674--- - "restart!" Started by `:restart!`. 675--- 676--- Read-only. 677--- @type string 678vim . v . startreason =... 679 680--- Timestamp (nanoseconds since UNIX epoch) when the Nvim process 681--- started. 682--- 683--- To see the current "uptime": 684--- 685--- ```lua 686--- vim.print(('uptime: %d seconds'):format(os.time() - (vim.v.starttime / 1e9))) 687--- ``` 688--- 689--- Read-only. 690--- @type integer 691vim . v . starttime =... 692 693--- Last given status message. 694--- Modifiable (can be set). 695--- @type string 696vim . v . statusmsg =... 697 698--- `channel-id` corresponding to stderr. The value is always 2; 699--- use this variable to make your code more descriptive. 700--- Unlike stdin and stdout (see `stdioopen()`), stderr is always 701--- open for writing. Example: 702--- 703--- ```vim 704--- :call chansend(v:stderr, "error: toaster empty\n") 705--- ``` 706--- @type integer 707vim . v . stderr =... 708 709--- `SwapExists` autocommands can set this to the selected choice 710--- for handling an existing swapfile: 711--- 'o' Open read-only 712--- 'e' Edit anyway 713--- 'r' Recover 714--- 'd' Delete swapfile 715--- 'q' Quit 716--- 'a' Abort 717--- The value should be a single-character string. An empty value 718--- results in the user being asked, as would happen when there is 719--- no SwapExists autocommand. The default is empty. 720--- @type string 721vim . v . swapchoice =... 722 723--- Normal mode command to be executed after a file has been 724--- opened. Can be used for a `SwapExists` autocommand to have 725--- another Vim open the file and jump to the right place. For 726--- example, when jumping to a tag the value is ":tag tagname\r". 727--- For ":edit +cmd file" the value is ":cmd\r". 728--- @type string 729vim . v . swapcommand =... 730 731--- Name of the swapfile found. 732--- Only valid during `SwapExists` event. 733--- Read-only. 734--- @type string 735vim . v . swapname =... 736 737--- Value of `Blob` type. Read-only. See: `type()` 738--- @type integer 739vim . v . t_blob =... 740 741--- Value of `Boolean` type. Read-only. See: `type()` 742--- @type integer 743vim . v . t_bool =... 744 745--- Value of `Dictionary` type. Read-only. See: `type()` 746--- @type integer 747vim . v . t_dict =... 748 749--- Value of `Float` type. Read-only. See: `type()` 750--- @type integer 751vim . v . t_float =... 752 753--- Value of `Funcref` type. Read-only. See: `type()` 754--- @type integer 755vim . v . t_func =... 756 757--- Value of `List` type. Read-only. See: `type()` 758--- @type integer 759vim . v . t_list =... 760 761--- Value of `Number` type. Read-only. See: `type()` 762--- @type integer 763vim . v . t_number =... 764 765--- Value of `String` type. Read-only. See: `type()` 766--- @type integer 767vim . v . t_string =... 768 769--- The value of the most recent OSC, DCS or APC control sequence 770--- sent from a process running in the embedded `terminal`. 771--- This can be read in a `TermRequest` event handler to respond 772--- to queries from embedded applications. 773--- @type string 774vim . v . termrequest =... 775 776--- The most recent OSC, DCS, APC, or recognized CSI (DA1, kitty 777--- multiple-cursors) control sequence received by Nvim from the 778--- host-terminal. Can be read in a `TermResponse` event handler 779--- after querying the terminal. 780--- @type string 781vim . v . termresponse =... 782 783--- Must be set before using `test_garbagecollect_now()`. 784--- @type integer 785vim . v . testing =... 786 787--- Full filename of the last loaded or saved session file. 788--- Empty when no session file has been saved. See `:mksession`. 789--- Modifiable (can be set). 790--- @type string 791vim . v . this_session =... 792 793--- The point where the exception most recently caught and not 794--- finished was thrown. Not set when commands are typed. See 795--- also `v:exception`, `v:stacktrace`, and `throw-variables`. 796--- Example: 797--- 798--- ```vim 799--- try 800--- throw "oops" 801--- catch /.*/ 802--- echo "Exception from" v:throwpoint 803--- endtry 804--- ``` 805--- 806--- Output: "Exception from test.vim, line 2" 807--- @type string 808vim . v . throwpoint =... 809 810--- Special value used to put "true" in JSON and msgpack. See 811--- `json_encode()`. This value is converted to "v:true" when used 812--- as a String (e.g. in `expr5` with string concatenation 813--- operator) and to one when used as a Number (e.g. in `expr5` or 814--- `expr7` when used with numeric operators). Read-only. 815--- @type boolean 816vim . v [ 'true' ] =... 817 818--- Timestamp (nanoseconds since UNIX epoch) indicating the most 819--- recent user activity, i.e. when a key is received from a UI 820--- (TUI input or `nvim_input()`). 821--- 822--- Initialized to 0 (no user activity since startup). 823--- Read-only. 824--- @type integer 825vim . v . useractive =... 826 827--- Value of the current item of a `List` or `Dictionary`. Only 828--- valid while evaluating the expression used with `map()` and 829--- `filter()`. Read-only. 830--- @type any 831vim . v . val =... 832 833--- Vim version number: major version times 100 plus minor 834--- version. Vim 5.0 is 500, Vim 5.1 is 501. 835--- Read-only. 836--- Use `has()` to check the Nvim (not Vim) version: 837--- 838--- ```vim 839--- :if has("nvim-0.2.1") 840--- ``` 841--- @type integer 842vim . v . version =... 843 844--- Like v:version, but also including the patchlevel in the last 845--- four digits. Version 8.1 with patch 123 has value 8010123. 846--- This can be used like this: 847--- ``` 848--- if v:versionlong >= 8010123 849--- ``` 850--- 851--- However, if there are gaps in the list of patches included 852--- this will not work well. This can happen if a recent patch 853--- was included into an older version, e.g. for a security fix. 854--- Use the has() function to make sure the patch is actually 855--- included. 856--- @type integer 857vim . v . versionlong =... 858 859--- 0 during startup, 1 just before `VimEnter`. 860--- See also `v:vim_did_init`, which is set earlier. 861--- Read-only. 862--- @type integer 863vim . v . vim_did_enter =... 864 865--- 0 during initialization, 1 after sourcing the user `vimrc`, 866--- just before `load-plugins`. 867--- See also `v:vim_did_enter`, which is set later. 868--- Read-only. 869--- @type integer 870vim . v . vim_did_init =... 871 872--- Virtual line number for the 'statuscolumn' expression. 873--- Negative when drawing the status column for virtual lines, zero 874--- when drawing an actual buffer line, and positive when drawing 875--- the wrapped part of a buffer line. 876--- Read-only. 877--- @type integer 878vim . v . virtnum =... 879 880--- Last given warning message. 881--- Modifiable (can be set). 882--- @type string 883vim . v . warningmsg =... 884 885--- Application-specific window "handle" which may be set by any 886--- attached UI. Defaults to zero. 887--- Note: For Nvim `windows` use `winnr()` or `win_getid()`, see 888--- `window-ID`. 889--- @type integer 890vim . v . windowid =...