robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
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.bo 8---@field [integer] vim.bo 9vim . bo =vim . bo 10 11---@class vim.wo 12---@field [integer] vim.wo 13vim . wo =vim . wo 14 15--- Allow CTRL-_ in Insert mode. This is default off, to avoid that users 16--- that accidentally type CTRL-_ instead of SHIFT-_ get into reverse 17--- Insert mode, and don't know how to get out. See 'revins'. 18--- 19--- @type boolean 20vim . o . allowrevins =false 21vim . o . ari =vim . o . allowrevins 22vim . go . allowrevins =vim . o . allowrevins 23vim . go . ari =vim . go . allowrevins 24 25--- Tells Vim what to do with characters with East Asian Width Class 26--- Ambiguous (such as Euro, Registered Sign, Copyright Sign, Greek 27--- letters, Cyrillic letters). 28--- 29--- There are currently two possible values: 30--- "single": Use the same width as characters in US-ASCII. This is 31--- expected by most users. 32--- "double": Use twice the width of ASCII characters. 33--- *E834* *E835* 34--- The value "double" cannot be used if 'listchars' or 'fillchars' 35--- contains a character that would be double width. These errors may 36--- also be given when calling setcellwidths(). 37--- 38--- The values are overruled for characters specified with 39--- `setcellwidths()`. 40--- 41--- There are a number of CJK fonts for which the width of glyphs for 42--- those characters are solely based on how many octets they take in 43--- legacy/traditional CJK encodings. In those encodings, Euro, 44--- Registered sign, Greek/Cyrillic letters are represented by two octets, 45--- therefore those fonts have "wide" glyphs for them. This is also 46--- true of some line drawing characters used to make tables in text 47--- file. Therefore, when a CJK font is used for GUI Vim or 48--- Vim is running inside a terminal (emulators) that uses a CJK font 49--- (or Vim is run inside an xterm invoked with "-cjkwidth" option.), 50--- this option should be set to "double" to match the width perceived 51--- by Vim with the width of glyphs in the font. Perhaps it also has 52--- to be set to "double" under CJK MS-Windows when the system locale is 53--- set to one of CJK locales. See Unicode Standard Annex #11 54--- (https://www.unicode.org/reports/tr11). 55--- 56--- @type 'single'|'double' 57vim . o . ambiwidth ="single" 58vim . o . ambw =vim . o . ambiwidth 59vim . go . ambiwidth =vim . o . ambiwidth 60vim . go . ambw =vim . go . ambiwidth 61 62--- This option can be set to start editing Arabic text. 63--- Setting this option will: 64--- - Set the 'rightleft' option, unless 'termbidi' is set. 65--- - Set the 'arabicshape' option, unless 'termbidi' is set. 66--- - Set the 'keymap' option to "arabic"; in Insert mode CTRL-^ toggles 67--- between typing English and Arabic key mapping. 68--- - Set the 'delcombine' option 69--- 70--- Resetting this option will: 71--- - Reset the 'rightleft' option. 72--- - Disable the use of 'keymap' (without changing its value). 73--- Note that 'arabicshape' and 'delcombine' are not reset (it is a global 74--- option). 75--- Also see `l10n-arabic.txt`. 76--- 77--- @type boolean 78vim . o . arabic =false 79vim . o . arab =vim . o . arabic 80vim . wo . arabic =vim . o . arabic 81vim . wo . arab =vim . wo . arabic 82 83--- When on and 'termbidi' is off, the required visual character 84--- corrections that need to take place for displaying the Arabic language 85--- take effect. Shaping, in essence, gets enabled; the term is a broad 86--- one which encompasses: 87--- a) the changing/morphing of characters based on their location 88--- within a word (initial, medial, final and stand-alone). 89--- b) the enabling of the ability to compose characters 90--- c) the enabling of the required combining of some characters 91--- When disabled the display shows each character's true stand-alone 92--- form. 93--- Arabic is a complex language which requires other settings, for 94--- further details see `l10n-arabic.txt`. 95--- 96--- @type boolean 97vim . o . arabicshape =true 98vim . o . arshape =vim . o . arabicshape 99vim . go . arabicshape =vim . o . arabicshape 100vim . go . arshape =vim . go . arabicshape 101 102--- When on, Nvim will change its global `current-directory` to the parent 103--- of the current file, whenever you open a file, switch buffers, delete 104--- a buffer or open/close a window. 105--- 106--- When a buffer has no name it also has no directory, thus the current 107--- directory won't change when navigating to it. 108--- 109--- Note: When this option is on some plugins may not work. 110--- 111--- Alternatively, consider using `:bcd`, `:lcd`, or `:tcd` in an autocmd, 112--- to selectively set a local (not global) directory. See `project-dir`. 113--- 114--- @type boolean 115vim . o . autochdir =false 116vim . o . acd =vim . o . autochdir 117vim . go . autochdir =vim . o . autochdir 118vim . go . acd =vim . go . autochdir 119 120--- When on, Vim shows a completion menu as you type, similar to using 121--- `i_CTRL-N`, but triggered automatically. See `ins-autocompletion`. 122--- 123--- @type boolean 124vim . o . autocomplete =false 125vim . o . ac =vim . o . autocomplete 126vim . bo . autocomplete =vim . o . autocomplete 127vim . bo . ac =vim . bo . autocomplete 128vim . go . autocomplete =vim . o . autocomplete 129vim . go . ac =vim . go . autocomplete 130 131--- Delay in milliseconds before the autocomplete menu appears after 132--- typing. If you prefer it not to open too quickly, set this value 133--- slightly above your typing speed. See `ins-autocompletion`. 134--- 135--- @type integer 136vim . o . autocompletedelay =0 137vim . o . acl =vim . o . autocompletedelay 138vim . go . autocompletedelay =vim . o . autocompletedelay 139vim . go . acl =vim . go . autocompletedelay 140 141--- Initial timeout (in milliseconds) for the decaying time-sliced 142--- completion algorithm. Starts at this value, halves for each slower 143--- source until a minimum is reached. All sources run, but slower ones 144--- are quickly de-prioritized. The default is tuned so the popup menu 145--- opens within ~200ms even with multiple slow sources on a slow system. 146--- Changing this value is rarely needed. Only 80 or higher is valid. 147--- Special case: when 'complete' contains "F" or "o" (function sources), 148--- a longer timeout is used, allowing up to ~1s for sources such as LSP 149--- servers that may sometimes take longer (e.g., while loading modules). 150--- See `ins-autocompletion`. 151--- 152--- @type integer 153vim . o . autocompletetimeout =80 154vim . o . act =vim . o . autocompletetimeout 155vim . go . autocompletetimeout =vim . o . autocompletetimeout 156vim . go . act =vim . go . autocompletetimeout 157 158--- Copy indent from current line when starting a new line (typing <CR> 159--- in Insert mode or when using the "o" or "O" command). If you do not 160--- type anything on the new line except <BS> or CTRL-D and then type 161--- <Esc>, CTRL-O or <CR>, the indent is deleted again. Moving the cursor 162--- to another line has the same effect, unless the 'I' flag is included 163--- in 'cpoptions'. 164--- When autoindent is on, formatting (with the "gq" command or when you 165--- reach 'textwidth' in Insert mode) uses the indentation of the first 166--- line. 167--- When 'smartindent' or 'cindent' is on the indent is changed in 168--- a different way. 169--- 170--- @type boolean 171vim . o . autoindent =true 172vim . o . ai =vim . o . autoindent 173vim . bo . autoindent =vim . o . autoindent 174vim . bo . ai =vim . bo . autoindent 175 176--- When a file was changed outside of Nvim, automatically read it again. 177--- Skipped if the file was deleted (so you still have the last-available 178--- text). If the file appears again, then it is read; you can `undo` to 179--- see the previous contents. `timestamp` 180--- 181--- This is driven (partially) by OS filewatcher events `uv_fs_event_t`, 182--- so buffers are updated immediately (instead of only on focus-change or 183--- shell-commands). 184--- 185--- If this option has a local value, use this command to switch back to 186--- using the global value: 187--- 188--- ```vim 189--- set autoread< 190--- ``` 191--- 192--- 193--- @type boolean 194vim . o . autoread =true 195vim . o . ar =vim . o . autoread 196vim . bo . autoread =vim . o . autoread 197vim . bo . ar =vim . bo . autoread 198vim . go . autoread =vim . o . autoread 199vim . go . ar =vim . go . autoread 200 201--- Write the contents of the file, if it has been modified, on each 202--- `:next`, `:rewind`, `:last`, `:first`, `:previous`, `:tag`, `:stop`, 203--- `:suspend`, `:!`, `:make`, `:terminal`, CTRL-] or CTRL-^ command; and 204--- when a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command 205--- switches to another file. 206--- A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is 207--- set to "hide" and `:next` is used. 208--- Note that for some commands the 'autowrite' option is not used, see 209--- 'autowriteall' for that. 210--- Some buffers will not be written, specifically when 'buftype' is 211--- "nowrite", "nofile", "terminal" or "prompt". 212--- USE WITH CARE: If you make temporary changes to a buffer that you 213--- don't want to be saved this option may cause it to be saved anyway. 214--- Renaming the buffer with ":file {name}" may help avoid this. 215--- 216--- @type boolean 217vim . o . autowrite =false 218vim . o . aw =vim . o . autowrite 219vim . go . autowrite =vim . o . autowrite 220vim . go . aw =vim . go . autowrite 221 222--- Like 'autowrite', but also used for commands `:edit`, `:enew`, 223--- `:quit`, `:qall`, `:exit`, `:xit`, `:recover` and closing the Vim 224--- window. 225--- Setting this option also implies that Vim behaves like 'autowrite' has 226--- been set. 227--- 228--- @type boolean 229vim . o . autowriteall =false 230vim . o . awa =vim . o . autowriteall 231vim . go . autowriteall =vim . o . autowriteall 232vim . go . awa =vim . go . autowriteall 233 234--- When set to "dark" or "light", adjusts the default color groups for 235--- that background type. The `TUI` or other UI sets this on startup 236--- if it can detect the background color, and re-detects it whenever a UI 237--- attaches later, unless 'background' was set explicitly. When multiple 238--- UIs are attached they share one value, decided by "last wins" (may 239--- not be the most recently-attached UI, since it depends on response 240--- speed). 241--- 242--- This option does NOT change the background color, it tells Nvim what 243--- the "inherited" (terminal/GUI) background looks like. See `:hi-normal` 244--- to set the background color explicitly. 245--- *g:colors_name* 246--- When a color scheme is loaded (the "g:colors_name" variable is set) 247--- changing 'background' will cause the color scheme to be reloaded. If 248--- the color scheme adjusts to the value of 'background' this will work. 249--- However, if the color scheme sets 'background' itself the effect may 250--- be undone. First delete the "g:colors_name" variable when needed. 251--- 252--- Historically, this option was set in the vimrc file. Example: 253--- 254--- ```vim 255--- if $TERM ==# "xterm" 256--- set background=dark 257--- endif 258--- ``` 259--- When this option is changed, the defaults for highlight groups 260--- will change. To override those defaults, place ":highlight" commands 261--- AFTER setting the 'background' option. 262--- 263--- @type 'light'|'dark' 264vim . o . background ="dark" 265vim . o . bg =vim . o . background 266vim . go . background =vim . o . background 267vim . go . bg =vim . go . background 268 269--- Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert 270--- mode. This is a list of items, separated by commas. Each item allows 271--- a way to backspace over something: 272--- value effect ~ 273--- indent allow backspacing over autoindent 274--- eol allow backspacing over line breaks (join lines) 275--- start allow backspacing over the start of insert; CTRL-W and CTRL-U 276--- stop once at the start of insert. 277--- nostop like start, except CTRL-W and CTRL-U do not stop at the start 278--- of insert. 279--- 280--- When the value is empty, Vi compatible backspacing is used, none of 281--- the ways mentioned for the items above are possible. 282--- 283--- @type string 284vim . o . backspace ="indent,eol,start" 285vim . o . bs =vim . o . backspace 286vim . go . backspace =vim . o . backspace 287vim . go . bs =vim . go . backspace 288 289--- Make a backup before overwriting a file. Leave it around after the 290--- file has been successfully written. If you do not want to keep the 291--- backup file, but you do want a backup while the file is being 292--- written, reset this option and set the 'writebackup' option (this is 293--- the default). If you do not want a backup file at all reset both 294--- options (use this if your file system is almost full). See the 295--- `backup-table` for more explanations. 296--- When the 'backupskip' pattern matches, a backup is not made anyway. 297--- When 'patchmode' is set, the backup may be renamed to become the 298--- oldest version of a file. 299--- 300--- @type boolean 301vim . o . backup =false 302vim . o . bk =vim . o . backup 303vim . go . backup =vim . o . backup 304vim . go . bk =vim . go . backup 305 306--- When writing a file and a backup is made, this option tells how it's 307--- done. This is a comma-separated list of words. 308--- 309--- The main values are: 310--- "yes" make a copy of the file and overwrite the original one 311--- "no" rename the file and write a new one 312--- "auto" one of the previous, what works best 313--- 314--- Extra values that can be combined with the ones above are: 315--- "breaksymlink" always break symlinks when writing 316--- "breakhardlink" always break hardlinks when writing 317--- 318--- Making a copy and overwriting the original file: 319--- - Takes extra time to copy the file. 320--- + When the file has special attributes, is a (hard/symbolic) link or 321--- has a resource fork, all this is preserved. 322--- - When the file is a link the backup will have the name of the link, 323--- not of the real file. 324--- 325--- Renaming the file and writing a new one: 326--- + It's fast. 327--- - Sometimes not all attributes of the file can be copied to the new 328--- file. 329--- - When the file is a link the new file will not be a link. 330--- 331--- The "auto" value is the middle way: When Vim sees that renaming the 332--- file is possible without side effects (the attributes can be passed on 333--- and the file is not a link) that is used. When problems are expected, 334--- a copy will be made. 335--- 336--- The "breaksymlink" and "breakhardlink" values can be used in 337--- combination with any of "yes", "no" and "auto". When included, they 338--- force Vim to always break either symbolic or hard links by doing 339--- exactly what the "no" option does, renaming the original file to 340--- become the backup and writing a new file in its place. This can be 341--- useful for example in source trees where all the files are symbolic or 342--- hard links and any changes should stay in the local source tree, not 343--- be propagated back to the original source. 344--- *crontab* 345--- One situation where "no" and "auto" will cause problems: A program 346--- that opens a file, invokes Vim to edit that file, and then tests if 347--- the open file was changed (through the file descriptor) will check the 348--- backup file instead of the newly created file. "crontab -e" is an 349--- example, as are several `file-watcher` daemons like inotify. In that 350--- case you probably want to switch this option. 351--- 352--- When a copy is made, the original file is truncated and then filled 353--- with the new text. This means that protection bits, owner and 354--- symbolic links of the original file are unmodified. The backup file, 355--- however, is a new file, owned by the user who edited the file. The 356--- group of the backup is set to the group of the original file. If this 357--- fails, the protection bits for the group are made the same as for 358--- others. 359--- 360--- When the file is renamed, this is the other way around: The backup has 361--- the same attributes of the original file, and the newly written file 362--- is owned by the current user. When the file was a (hard/symbolic) 363--- link, the new file will not! That's why the "auto" value doesn't 364--- rename when the file is a link. The owner and group of the newly 365--- written file will be set to the same ones as the original file, but 366--- the system may refuse to do this. In that case the "auto" value will 367--- again not rename the file. 368--- 369--- @type string 370vim . o . backupcopy ="auto" 371vim . o . bkc =vim . o . backupcopy 372vim . bo . backupcopy =vim . o . backupcopy 373vim . bo . bkc =vim . bo . backupcopy 374vim . go . backupcopy =vim . o . backupcopy 375vim . go . bkc =vim . go . backupcopy 376 377--- List of directories for the backup file, separated with commas. 378--- - The backup file will be created in the first directory in the list 379--- where this is possible. If none of the directories exist Nvim will 380--- attempt to create the last directory in the list. 381--- - Empty means that no backup file will be created ('patchmode' is 382--- impossible!). Writing may fail because of this. 383--- - A directory "." means to put the backup file in the same directory 384--- as the edited file. 385--- - A directory starting with "./" (or ".\" for MS-Windows) means to put 386--- the backup file relative to where the edited file is. The leading 387--- "." is replaced with the path name of the edited file. 388--- ("." inside a directory name has no special meaning). 389--- - Spaces after the comma are ignored, other spaces are considered part 390--- of the directory name. To have a space at the start of a directory 391--- name, precede it with a backslash. 392--- - To include a comma in a directory name precede it with a backslash. 393--- - A directory name may end in an '/'. 394--- - For Unix and Win32, if a directory ends in two path separators "//", 395--- the swap file name will be built from the complete path to the file 396--- with all path separators changed to percent '%' signs. This will 397--- ensure file name uniqueness in the backup directory. 398--- On Win32, it is also possible to end with "\\". However, When a 399--- separating comma is following, you must use "//", since "\\" will 400--- include the comma in the file name. Therefore it is recommended to 401--- use '//', instead of '\\'. 402--- - Environment variables are expanded `:set_env`. 403--- - Careful with '\' characters, type one before a space, type two to 404--- get one in the option (see `option-backslash`), for example: 405--- 406--- ```vim 407--- set bdir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces 408--- ``` 409--- 410--- See also 'backup' and 'writebackup' options. 411--- If you want to hide your backup files on Unix, consider this value: 412--- 413--- ```vim 414--- set backupdir=./.backup,~/.backup,.,/tmp 415--- ``` 416--- You must create a ".backup" directory in each directory and in your 417--- home directory for this to work properly. 418--- The use of `:set+=` and `:set-=` is preferred when adding or removing 419--- directories from the list. This avoids problems when a future version 420--- uses another default. 421--- 422--- @type string 423vim . o . backupdir =".,$XDG_STATE_HOME/nvim/backup//" 424vim . o . bdir =vim . o . backupdir 425vim . go . backupdir =vim . o . backupdir 426vim . go . bdir =vim . go . backupdir 427 428--- String which is appended to a file name to make the name of the 429--- backup file. The default is quite unusual, because this avoids 430--- accidentally overwriting existing files with a backup file. You might 431--- prefer using ".bak", but make sure that you don't have files with 432--- ".bak" that you want to keep. 433--- Only normal file name characters can be used; `/\*?[|<>` are illegal. 434--- 435--- If you like to keep a lot of backups, you could use a BufWritePre 436--- autocommand to change 'backupext' just before writing the file to 437--- include a timestamp. 438--- 439--- ```vim 440--- au BufWritePre * let &bex = '-' .. strftime("%Y%b%d%X") .. '~' 441--- ``` 442--- Use 'backupdir' to put the backup in a different directory. 443--- 444--- @type string 445vim . o . backupext ="~" 446vim . o . bex =vim . o . backupext 447vim . go . backupext =vim . o . backupext 448vim . go . bex =vim . go . backupext 449 450--- A list of file patterns. When one of the patterns matches with the 451--- name of the file which is written, no backup file is created. Both 452--- the specified file name and the full path name of the file are used. 453--- The pattern is used like with `:autocmd`, see `autocmd-pattern`. 454--- Watch out for special characters, see `option-backslash`. 455--- When $TMPDIR, $TMP or $TEMP is not defined, it is not used for the 456--- default value. "/tmp/*" is only used for Unix. 457--- 458--- WARNING: Not having a backup file means that when Vim fails to write 459--- your buffer correctly and then, for whatever reason, Vim exits, you 460--- lose both the original file and what you were writing. Only disable 461--- backups if you don't care about losing the file. 462--- 463--- Note that environment variables are not expanded. If you want to use 464--- $HOME you must expand it explicitly, e.g.: 465--- 466--- ```vim 467--- let &backupskip = escape(expand('$HOME'), '\') .. '/tmp/*' 468--- ``` 469--- Note that the default also makes sure that "crontab -e" works (when a 470--- backup would be made by renaming the original file crontab won't see 471--- the newly created file). Also see 'backupcopy' and `crontab`. 472--- 473--- @type string 474vim . o . backupskip ="/tmp/*" 475vim . o . bsk =vim . o . backupskip 476vim . go . backupskip =vim . o . backupskip 477vim . go . bsk =vim . go . backupskip 478 479--- Specifies for which events the bell will not be rung. It is a comma- 480--- separated list of items. For each item that is present, the bell will 481--- be silenced. This is most useful to specify specific events in insert 482--- mode to be silenced. 483--- You can also make it flash by using 'visualbell'. 484--- 485--- item meaning when present ~ 486--- all All events. 487--- backspace When hitting <BS> or <Del> and deleting results in an 488--- error. 489--- cursor Fail to move around using the cursor keys or 490--- <PageUp>/<PageDown> in `Insert-mode`. 491--- complete Error occurred when using `i_CTRL-X_CTRL-K` or 492--- `i_CTRL-X_CTRL-T`. 493--- copy Cannot copy char from insert mode using `i_CTRL-Y` or 494--- `i_CTRL-E`. 495--- ctrlg Unknown Char after <C-G> in Insert mode. 496--- error Other Error occurred (e.g. try to join last line) 497--- (mostly used in `Normal-mode` or `Cmdline-mode`). 498--- esc hitting <Esc> in `Normal-mode`. 499--- hangul Ignored. 500--- lang Calling the beep module for Lua/Mzscheme/TCL. 501--- mess No output available for `g<`. 502--- showmatch Error occurred for 'showmatch' function. 503--- operator Empty region error `cpo-E`. 504--- register Unknown register after <C-R> in `Insert-mode`. 505--- shell Bell from shell output `:!`. 506--- spell Error happened on spell suggest. 507--- term Bell from `:terminal` output. 508--- wildmode More matches in `cmdline-completion` available 509--- (depends on the 'wildmode' setting). 510--- 511--- This is most useful to fine tune when in Insert mode the bell should 512--- be rung. For Normal mode and Ex commands, the bell is often rung to 513--- indicate that an error occurred. It can be silenced by adding the 514--- "error" keyword. 515--- 516--- @type string 517vim . o . belloff ="all" 518vim . o . bo =vim . o . belloff 519vim . go . belloff =vim . o . belloff 520vim . go . bo =vim . go . belloff 521 522--- This option should be set before editing a binary file. You can also 523--- use the `-b` Vim argument. When this option is switched on a few 524--- options will be changed (also when it already was on): 525--- 'textwidth' will be set to 0 526--- 'wrapmargin' will be set to 0 527--- 'modeline' will be off 528--- 'expandtab' will be off 529--- Also, 'fileformat' and 'fileformats' options will not be used, the 530--- file is read and written like 'fileformat' was "unix" (a single <NL> 531--- separates lines). 532--- The 'fileencoding' and 'fileencodings' options will not be used, the 533--- file is read without conversion. 534--- NOTE: When you start editing a(nother) file while the 'bin' option is 535--- on, settings from autocommands may change the settings again (e.g., 536--- 'textwidth'), causing trouble when editing. You might want to set 537--- 'bin' again when the file has been loaded. 538--- The previous values of these options are remembered and restored when 539--- 'bin' is switched from on to off. Each buffer has its own set of 540--- saved option values. 541--- To edit a file with 'binary' set you can use the `++bin` argument. 542--- This avoids you have to do ":set bin", which would have effect for all 543--- files you edit. 544--- When writing a file the <EOL> for the last line is only written if 545--- there was one in the original file (normally Vim appends an <EOL> to 546--- the last line if there is none; this would make the file longer). See 547--- the 'endofline' option. 548--- 549--- @type boolean 550vim . o . binary =false 551vim . o . bin =vim . o . binary 552vim . bo . binary =vim . o . binary 553vim . bo . bin =vim . bo . binary 554 555--- When writing a file and the following conditions are met, a BOM (Byte 556--- Order Mark) is prepended to the file: 557--- - this option is on 558--- - the 'binary' option is off 559--- - 'fileencoding' is "utf-8", "ucs-2", "ucs-4" or one of the little/big 560--- endian variants. 561--- Some applications use the BOM to recognize the encoding of the file. 562--- Often used for UCS-2 files on MS-Windows. For other applications it 563--- causes trouble, for example: "cat file1 file2" makes the BOM of file2 564--- appear halfway through the resulting file. Gcc doesn't accept a BOM. 565--- When Vim reads a file and 'fileencodings' starts with "ucs-bom", a 566--- check for the presence of the BOM is done and 'bomb' set accordingly. 567--- Unless 'binary' is set, it is removed from the first line, so that you 568--- don't see it when editing. When you don't change the options, the BOM 569--- will be restored when writing the file. 570--- 571--- @type boolean 572vim . o . bomb =false 573vim . bo . bomb =vim . o . bomb 574 575--- This option lets you choose which characters might cause a line 576--- break if 'linebreak' is on. Only works for ASCII characters. 577--- 578--- @type string 579vim . o . breakat =" \t!@*-+;:,./?" 580vim . o . brk =vim . o . breakat 581vim . go . breakat =vim . o . breakat 582vim . go . brk =vim . go . breakat 583 584--- Every wrapped line will continue visually indented (same amount of 585--- space as the beginning of that line), thus preserving horizontal 586--- blocks of text. 587--- 588--- @type boolean 589vim . o . breakindent =false 590vim . o . bri =vim . o . breakindent 591vim . wo . breakindent =vim . o . breakindent 592vim . wo . bri =vim . wo . breakindent 593 594--- Settings for 'breakindent'. It can consist of the following optional 595--- items and must be separated by a comma: 596--- min:{n} Minimum text width that will be kept after 597--- applying 'breakindent', even if the resulting 598--- text should normally be narrower. This prevents 599--- text indented almost to the right window border 600--- occupying lots of vertical space when broken. 601--- (default: 20) 602--- shift:{n} After applying 'breakindent', the wrapped line's 603--- beginning will be shifted by the given number of 604--- characters. It permits dynamic French paragraph 605--- indentation (negative) or emphasizing the line 606--- continuation (positive). 607--- (default: 0) 608--- sbr Display the 'showbreak' value before applying the 609--- additional indent. 610--- (default: off) 611--- list:{n} Adds an additional indent for lines that match a 612--- numbered or bulleted list (using the 613--- 'formatlistpat' setting). 614--- (default: 0) 615--- list:-1 Uses the width of a match with 'formatlistpat' for 616--- indentation. 617--- column:{n} Indent at column {n}. Will overrule the other 618--- sub-options. Note: an additional indent may be 619--- added for the 'showbreak' setting. 620--- (default: off) 621--- 622--- @type string 623vim . o . breakindentopt ="" 624vim . o . briopt =vim . o . breakindentopt 625vim . wo . breakindentopt =vim . o . breakindentopt 626vim . wo . briopt =vim . wo . breakindentopt 627 628--- This option specifies what happens when a buffer is no longer 629--- displayed in a window: 630--- <empty> follow the global 'hidden' option 631--- hide hide the buffer (don't unload it), even if 'hidden' is 632--- not set 633--- unload unload the buffer, even if 'hidden' is set; the 634--- `:hide` command will also unload the buffer 635--- delete delete the buffer from the buffer list, even if 636--- 'hidden' is set; the `:hide` command will also delete 637--- the buffer, making it behave like `:bdelete` 638--- wipe wipe the buffer from the buffer list, even if 639--- 'hidden' is set; the `:hide` command will also wipe 640--- out the buffer, making it behave like `:bwipeout` 641--- 642--- CAREFUL: when "unload", "delete" or "wipe" is used changes in a buffer 643--- are lost without a warning. Also, these values may break autocommands 644--- that switch between buffers temporarily. 645--- This option is used together with 'buftype' and 'swapfile' to specify 646--- special kinds of buffers. See `special-buffers`. 647--- 648--- @type ''|'hide'|'unload'|'delete'|'wipe' 649vim . o . bufhidden ="" 650vim . o . bh =vim . o . bufhidden 651vim . bo . bufhidden =vim . o . bufhidden 652vim . bo . bh =vim . bo . bufhidden 653 654--- When this option is set, the buffer shows up in the buffer list. If 655--- it is reset it is not used for ":bnext", "ls", the Buffers menu, etc. 656--- This option is reset by Vim for buffers that are only used to remember 657--- a file name or marks. Vim sets it when starting to edit a buffer. 658--- But not when moving to a buffer with ":buffer". 659--- 660--- @type boolean 661vim . o . buflisted =true 662vim . o . bl =vim . o . buflisted 663vim . bo . buflisted =vim . o . buflisted 664vim . bo . bl =vim . bo . buflisted 665 666--- The value of this option specifies the type of a buffer: 667--- (empty) Normal buffer. 668--- acwrite Buffer will always be written with `BufWriteCmd`. 669--- help Help buffer (do not set this manually). 670--- nofile Buffer is not a file, will not be written. 671--- nowrite Buffer represents a filepath (such as a directory), 672--- but will not be written. 673--- prompt Buffer where only the last section can be edited, for 674--- use by plugins. `prompt-buffer` 675--- quickfix List of errors `:cwindow` or locations `:lwindow` 676--- terminal `terminal-emulator` buffer 677--- 678--- This option is used together with 'bufhidden' and 'swapfile' to 679--- specify special kinds of buffers. See `special-buffers`. 680--- Also see `win_gettype()`, which returns the type of the window. 681--- 682--- Be careful with changing this option, it can have many side effects! 683--- One such effect is that Vim will not check the timestamp of the file, 684--- if the file is changed by another program this will not be noticed. 685--- 686--- A "quickfix" buffer is only used for the error list and the location 687--- list. This value is set by the `:cwindow` and `:lwindow` commands and 688--- you are not supposed to change it. 689--- 690--- "nofile" and "nowrite" buffers are similar: 691--- both: The buffer is not to be written to disk, ":w" doesn't 692--- work (":w filename" does work though). 693--- both: The buffer is never considered to be 'modified'. 694--- There is no warning when the changes will be lost, for 695--- example when you quit Vim. 696--- both: A swap file is only created when using too much memory 697--- (when 'swapfile' has been reset there is never a swap 698--- file). 699--- nofile only: The buffer name is fixed, it is not handled like a 700--- file name. It is not modified in response to a `:cd` 701--- command. 702--- both: When using ":e bufname" and already editing "bufname" 703--- the buffer is made empty and autocommands are 704--- triggered as usual for `:edit`. 705--- *E676* 706--- "acwrite" implies that the buffer name is not related to a file, like 707--- "nofile", but it will be written. Thus, in contrast to "nofile" and 708--- "nowrite", ":w" does work and a modified buffer can't be abandoned 709--- without saving. For writing there must be matching `BufWriteCmd`, 710--- `FileWriteCmd` or `FileAppendCmd` autocommands. 711--- 712--- @type ''|'acwrite'|'help'|'nofile'|'nowrite'|'quickfix'|'terminal'|'prompt' 713vim . o . buftype ="" 714vim . o . bt =vim . o . buftype 715vim . bo . buftype =vim . o . buftype 716vim . bo . bt =vim . bo . buftype 717 718--- Sets a buffer "busy" status. Indicated in the default statusline. 719--- When busy status is larger then 0 busy flag is shown in statusline. 720--- The semantics of "busy" are arbitrary, typically decided by the plugin that owns the buffer. 721--- 722--- @type integer 723vim . o . busy =0 724vim . bo . busy =vim . o . busy 725 726--- Specifies details about changing the case of letters. It may contain 727--- these words, separated by a comma: 728--- internal Use internal case mapping functions, the current 729--- locale does not change the case mapping. When 730--- "internal" is omitted, the towupper() and towlower() 731--- system library functions are used when available. 732--- keepascii For the ASCII characters (0x00 to 0x7f) use the US 733--- case mapping, the current locale is not effective. 734--- This probably only matters for Turkish. 735--- 736--- @type string 737vim . o . casemap ="internal,keepascii" 738vim . o . cmp =vim . o . casemap 739vim . go . casemap =vim . o . casemap 740vim . go . cmp =vim . go . casemap 741 742--- When on, `:cd`, `:tcd`, `:lcd` and `:bcd` without an argument changes the 743--- current working directory to the `$HOME` directory like in Unix. 744--- When off, those commands just print the current directory name. 745--- 746--- @type boolean 747vim . o . cdhome =true 748vim . o . cdh =vim . o . cdhome 749vim . go . cdhome =vim . o . cdhome 750vim . go . cdh =vim . go . cdhome 751 752--- This is a list of directories which will be searched when using the 753--- `:cd`, `:tcd`, `:lcd` and `:bcd` commands, provided that the directory being 754--- searched for has a relative path, not an absolute part starting with 755--- "/", "./" or "../", the 'cdpath' option is not used then. 756--- The 'cdpath' option's value has the same form and semantics as 757--- 'path'. Also see `file-searching`. 758--- The default value is taken from $CDPATH, with a "," prepended to look 759--- in the current directory first. 760--- If the default value taken from $CDPATH is not what you want, include 761--- a modified version of the following command in your vimrc file to 762--- override it: 763--- 764--- ```vim 765--- let &cdpath = ',' .. substitute(substitute($CDPATH, '[, ]', '\\\0', 'g'), ':', ',', 'g') 766--- ``` 767--- Environment variables are expanded `:set_env`. 768--- (parts of 'cdpath' can be passed to the shell to expand file names). 769--- 770--- @type string 771vim . o . cdpath =",," 772vim . o . cd =vim . o . cdpath 773vim . go . cdpath =vim . o . cdpath 774vim . go . cd =vim . go . cdpath 775 776--- The key used in Command-line Mode to open the command-line window. 777--- Only non-printable keys are allowed. 778--- The key can be specified as a single character, but it is difficult to 779--- type. The preferred way is to use `key-notation` (e.g. <Up>, <C-F>) or 780--- a letter preceded with a caret (e.g. `^F` is CTRL-F). Examples: 781--- 782--- ```vim 783--- set cedit=^Y 784--- set cedit=<Esc> 785--- ``` 786--- `Nvi` also has this option, but it only uses the first character. 787--- See `cmdwin`. 788--- 789--- @type string 790vim . o . cedit ="\6" 791vim . go . cedit =vim . o . cedit 792 793--- `channel` connected to the buffer, or 0 if no channel is connected. 794--- In a `:terminal` buffer this is the terminal channel. 795--- Read-only. 796--- 797--- @type integer 798vim . o . channel =0 799vim . bo . channel =vim . o . channel 800 801--- An expression that is used for character encoding conversion. It is 802--- evaluated when a file that is to be read or has been written has a 803--- different encoding from what is desired. 804--- 'charconvert' is not used when the internal iconv() function is 805--- supported and is able to do the conversion. Using iconv() is 806--- preferred, because it is much faster. 807--- 'charconvert' is not used when reading stdin `--`, because there is no 808--- file to convert from. You will have to save the text in a file first. 809--- The expression must return zero, false or an empty string for success, 810--- non-zero or true for failure. 811--- See `encoding-names` for possible encoding names. 812--- Additionally, names given in 'fileencodings' and 'fileencoding' are 813--- used. 814--- Conversion between "latin1", "unicode", "ucs-2", "ucs-4" and "utf-8" 815--- is done internally by Vim, 'charconvert' is not used for this. 816--- Also used for Unicode conversion. 817--- Example: 818--- 819--- ```lua 820--- vim.o.charconvert = function() 821--- vim.fn.system(('recode %s..%s <%s >%s'):format( 822--- vim.v.charconvert_from, vim.v.charconvert_to, 823--- vim.v.fname_in, vim.v.fname_out)) 824--- return vim.v.shell_error 825--- end 826--- ``` 827--- The related Vim variables are: 828--- v:charconvert_from name of the current encoding 829--- v:charconvert_to name of the desired encoding 830--- v:fname_in name of the input file 831--- v:fname_out name of the output file 832--- Note that v:fname_in and v:fname_out will never be the same. 833--- 834--- The advantage of using a function call without arguments is that it is 835--- faster, see `expr-option-function`. 836--- 837--- If the 'charconvert' expression starts with s: or `<SID>`, then it is 838--- replaced with the script ID (`local-function`). Example: 839--- 840--- ```vim 841--- set charconvert=s:MyConvert() 842--- set charconvert=<SID>SomeConvert() 843--- ``` 844--- Otherwise the expression is evaluated in the context of the script 845--- where the option was set, thus script-local items are available. 846--- 847--- @type string|function 848vim . o . charconvert ="" 849vim . o . ccv =vim . o . charconvert 850vim . go . charconvert =vim . o . charconvert 851vim . go . ccv =vim . go . charconvert 852 853--- Number of quickfix lists that should be remembered for the quickfix 854--- stack. Must be between 1 and 100. If the option is set to a value 855--- that is lower than the amount of entries in the quickfix list stack, 856--- entries will be removed starting from the oldest one. If the current 857--- quickfix list was removed, then the quickfix list at top of the stack 858--- (the most recently created) will be used in its place. For additional 859--- info, see `quickfix-stack`. 860--- 861--- @type integer 862vim . o . chistory =10 863vim . o . chi =vim . o . chistory 864vim . go . chistory =vim . o . chistory 865vim . go . chi =vim . go . chistory 866 867--- Enables automatic C program indenting. See 'cinkeys' to set the keys 868--- that trigger reindenting in insert mode and 'cinoptions' to set your 869--- preferred indent style. 870--- If 'indentexpr' is not empty, it overrules 'cindent'. 871--- If 'lisp' is not on and both 'indentexpr' and 'equalprg' are empty, 872--- the "=" operator indents using this algorithm rather than calling an 873--- external program. 874--- See `C-indenting`. 875--- When you don't like the way 'cindent' works, try the 'smartindent' 876--- option or 'indentexpr'. 877--- 878--- @type boolean 879vim . o . cindent =false 880vim . o . cin =vim . o . cindent 881vim . bo . cindent =vim . o . cindent 882vim . bo . cin =vim . bo . cindent 883 884--- A list of keys that, when typed in Insert mode, cause reindenting of 885--- the current line. Only used if 'cindent' is on and 'indentexpr' is 886--- empty. 887--- For the format of this option see `cinkeys-format`. 888--- See `C-indenting`. 889--- 890--- @type string 891vim . o . cinkeys ="0{,0},0),0],:,0#,!^F,o,O,e" 892vim . o . cink =vim . o . cinkeys 893vim . bo . cinkeys =vim . o . cinkeys 894vim . bo . cink =vim . bo . cinkeys 895 896--- The 'cinoptions' affect the way 'cindent' reindents lines in a C 897--- program. See `cinoptions-values` for the values of this option, and 898--- `C-indenting` for info on C indenting in general. 899--- 900--- @type string 901vim . o . cinoptions ="" 902vim . o . cino =vim . o . cinoptions 903vim . bo . cinoptions =vim . o . cinoptions 904vim . bo . cino =vim . bo . cinoptions 905 906--- Keywords that are interpreted as a C++ scope declaration by `cino-g`. 907--- Useful e.g. for working with the Qt framework that defines additional 908--- scope declarations "signals", "public slots" and "private slots": 909--- 910--- ```vim 911--- set cinscopedecls+=signals,public\ slots,private\ slots 912--- ``` 913--- 914--- 915--- @type string 916vim . o . cinscopedecls ="public,protected,private" 917vim . o . cinsd =vim . o . cinscopedecls 918vim . bo . cinscopedecls =vim . o . cinscopedecls 919vim . bo . cinsd =vim . bo . cinscopedecls 920 921--- These keywords start an extra indent in the next line when 922--- 'smartindent' or 'cindent' is set. For 'cindent' this is only done at 923--- an appropriate place (inside {}). 924--- Note that 'ignorecase' isn't used for 'cinwords'. If case doesn't 925--- matter, include the keyword both the uppercase and lowercase: 926--- "if,If,IF". 927--- 928--- @type string 929vim . o . cinwords ="if,else,while,do,for,switch" 930vim . o . cinw =vim . o . cinwords 931vim . bo . cinwords =vim . o . cinwords 932vim . bo . cinw =vim . bo . cinwords 933 934--- This option is a list of comma-separated names. 935--- These names are recognized: 936--- 937--- *clipboard-unnamed* 938--- unnamed When included, Vim will use the clipboard register "*" 939--- for all yank, delete, change and put operations which 940--- would normally go to the unnamed register. When a 941--- register is explicitly specified, it will always be 942--- used regardless of whether "unnamed" is in 'clipboard' 943--- or not. The clipboard register can always be 944--- explicitly accessed using the "* notation. Also see 945--- `clipboard`. 946--- 947--- *clipboard-unnamedplus* 948--- unnamedplus A variant of the "unnamed" flag which uses the 949--- clipboard register "+" (`quoteplus`) instead of 950--- register "*" for all yank, delete, change and put 951--- operations which would normally go to the unnamed 952--- register. When "unnamed" is also included to the 953--- option, yank and delete operations (but not put) 954--- will additionally copy the text into register 955--- "*". See `clipboard`. 956--- 957--- @type string 958vim . o . clipboard ="" 959vim . o . cb =vim . o . clipboard 960vim . go . clipboard =vim . o . clipboard 961vim . go . cb =vim . go . clipboard 962 963--- Number of screen lines to use for the command-line. Helps avoiding 964--- `hit-enter` prompts. 965--- The value of this option is stored with the tabpage, so that each 966--- tabpage can have a different value. 967--- 968--- When 'cmdheight' is zero, there is no command-line unless it is being 969--- used. The command-line will cover the last line of the screen when 970--- shown. 971--- 972--- WARNING: `cmdheight=0` is EXPERIMENTAL. Works better with `ui2` enabled. 973--- 974--- @type integer 975vim . o . cmdheight =1 976vim . o . ch =vim . o . cmdheight 977vim . go . cmdheight =vim . o . cmdheight 978vim . go . ch =vim . go . cmdheight 979 980--- Number of screen lines to use for the command-line window. `cmdwin` 981--- 982--- @type integer 983vim . o . cmdwinheight =7 984vim . o . cwh =vim . o . cmdwinheight 985vim . go . cmdwinheight =vim . o . cmdwinheight 986vim . go . cwh =vim . go . cmdwinheight 987 988--- 'colorcolumn' is a comma-separated list of screen columns that are 989--- highlighted with ColorColumn `hl-ColorColumn`. Useful to align 990--- text. Will make screen redrawing slower. 991--- The screen column can be an absolute number, or a number preceded with 992--- '+' or '-', which is added to or subtracted from 'textwidth'. 993--- 994--- ```vim 995--- 996--- set cc=+1 " highlight column after 'textwidth' 997--- set cc=+1,+2,+3 " highlight three columns after 'textwidth' 998--- hi ColorColumn ctermbg=lightgrey guibg=lightgrey 999--- ``` 1000--- 1001--- When 'textwidth' is zero then the items with '-' and '+' are not used. 1002--- A maximum of 256 columns are highlighted. 1003--- 1004--- @type string 1005vim . o . colorcolumn ="" 1006vim . o . cc =vim . o . colorcolumn 1007vim . wo . colorcolumn =vim . o . colorcolumn 1008vim . wo . cc =vim . wo . colorcolumn 1009 1010--- Number of columns of the screen. Normally this is set by the terminal 1011--- initialization and does not have to be set by hand. 1012--- When Vim is running in the GUI or in a resizable window, setting this 1013--- option will cause the window size to be changed. When you only want 1014--- to use the size for the GUI, put the command in your `ginit.vim` file. 1015--- When you set this option and Vim is unable to change the physical 1016--- number of columns of the display, the display may be messed up. For 1017--- the GUI it is always possible and Vim limits the number of columns to 1018--- what fits on the screen. You can use this command to get the widest 1019--- window possible: 1020--- 1021--- ```vim 1022--- set columns=9999 1023--- ``` 1024--- Minimum value is 12, maximum value is 10000. 1025--- 1026--- @type integer 1027vim . o . columns =80 1028vim . o . co =vim . o . columns 1029vim . go . columns =vim . o . columns 1030vim . go . co =vim . go . columns 1031 1032--- A comma-separated list of strings that can start a comment line. See 1033--- `format-comments`. See `option-backslash` about using backslashes to 1034--- insert a space. 1035--- 1036--- @type string 1037vim . o . comments ="s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•" 1038vim . o . com =vim . o . comments 1039vim . bo . comments =vim . o . comments 1040vim . bo . com =vim . bo . comments 1041 1042--- A template for a comment. The "%s" in the value is replaced with the 1043--- comment text, and should be padded with a space when possible. 1044--- Used for `commenting` and to add markers for folding, see `fold-marker`. 1045--- 1046--- @type string 1047vim . o . commentstring ="" 1048vim . o . cms =vim . o . commentstring 1049vim . bo . commentstring =vim . o . commentstring 1050vim . bo . cms =vim . bo . commentstring 1051 1052--- This option controls how completion `ins-completion` behaves when 1053--- using CTRL-P, CTRL-N, or `ins-autocompletion`. It is also used for 1054--- whole-line completion `i_CTRL-X_CTRL-L`. It indicates the type of 1055--- completion and the places to scan. It is a comma-separated list of 1056--- flags: 1057--- . scan the current buffer ('wrapscan' is ignored) 1058--- w scan buffers from other windows 1059--- b scan other loaded buffers that are in the buffer list 1060--- u scan the unloaded buffers that are in the buffer list 1061--- U scan the buffers that are not in the buffer list 1062--- k scan the files given with the 'dictionary' option 1063--- kspell use the currently active spell checking `spell` 1064--- k{dict} scan the file {dict}. Several "k" flags can be given, 1065--- patterns are valid too. For example: 1066--- 1067--- ```vim 1068--- set cpt=k/usr/dict/*,k~/spanish 1069--- ``` 1070--- s scan the files given with the 'thesaurus' option 1071--- s{tsr} scan the file {tsr}. Several "s" flags can be given, patterns 1072--- are valid too. 1073--- i scan current and included files 1074--- d scan current and included files for defined name or macro 1075--- `i_CTRL-X_CTRL-D` 1076--- ] tag completion 1077--- t same as "]" 1078--- f scan the buffer names (as opposed to buffer contents) 1079--- F{func} call the function {func}. Multiple "F" flags may be 1080--- specified. Refer to `complete-functions` for details on how 1081--- the function is invoked and what it should return. The value 1082--- can be the name of a function or a `Funcref`. For `Funcref` 1083--- values, spaces must be escaped with a backslash ('\'), and 1084--- commas with double backslashes ('\\') (see `option-backslash`). 1085--- Unlike other sources, functions can provide completions 1086--- starting from a non-keyword character before the cursor, and 1087--- their start position for replacing text may differ from other 1088--- sources. If the Dict returned by the {func} includes 1089--- `{"refresh": "always"}`, the function will be invoked again 1090--- whenever the leading text changes. 1091--- If generating matches is potentially slow, call 1092--- `complete_check()` periodically to keep Vim responsive. This 1093--- is especially important for `ins-autocompletion`. 1094--- F equivalent to using "F{func}", where the function is taken 1095--- from the 'completefunc' option. 1096--- o equivalent to using "F{func}", where the function is taken 1097--- from the 'omnifunc' option. 1098--- 1099--- Unloaded buffers are not loaded, thus their autocmds `:autocmd` are 1100--- not executed, this may lead to unexpected completions from some files 1101--- (gzipped files for example). Unloaded buffers are not scanned for 1102--- whole-line completion. 1103--- 1104--- CTRL-N, CTRL-P, and `ins-autocompletion` can be used for any 1105--- 'iskeyword'-based completion (dictionary `i_CTRL-X_CTRL-K`, included 1106--- patterns `i_CTRL-X_CTRL-I`, tags `i_CTRL-X_CTRL-]`, and normal 1107--- expansions). With the "F" and "o" flags in 'complete', non-keywords 1108--- can also be completed. 1109--- 1110--- An optional match limit can be specified for a completion source by 1111--- appending a caret ("^") followed by a {count} to the source flag. 1112--- For example: ".^9,w,u,t^5" limits matches from the current buffer to 9 1113--- and from tags to 5. Other sources remain unlimited. 1114--- Note: The match limit takes effect only during forward completion 1115--- (CTRL-N) and is ignored during backward completion (CTRL-P). 1116--- 1117--- This option cannot be set in a modeline when 'modelineexpr' is off. 1118--- 1119--- @type string 1120vim . o . complete =".,w,b,u,t" 1121vim . o . cpt =vim . o . complete 1122vim . bo . complete =vim . o . complete 1123vim . bo . cpt =vim . bo . complete 1124 1125--- This option specifies a function to be used for Insert mode completion 1126--- with CTRL-X CTRL-U. `i_CTRL-X_CTRL-U` 1127--- See `complete-functions` for an explanation of how the function is 1128--- invoked and what it should return. The value can be the name of a 1129--- function, a `lambda` or a `Funcref`. See `option-value-function` for 1130--- more information. 1131--- 1132--- @type string|function 1133vim . o . completefunc ="" 1134vim . o . cfu =vim . o . completefunc 1135vim . bo . completefunc =vim . o . completefunc 1136vim . bo . cfu =vim . bo . completefunc 1137 1138--- A comma-separated list of strings that controls the alignment and 1139--- display order of items in the popup menu during Insert mode 1140--- completion. The supported values are "abbr", "kind", and "menu". 1141--- These values allow customizing how `complete-items` are shown in the 1142--- popup menu. Note: must always contain those three values in any 1143--- order. 1144--- 1145--- @type string 1146vim . o . completeitemalign ="abbr,kind,menu" 1147vim . o . cia =vim . o . completeitemalign 1148vim . go . completeitemalign =vim . o . completeitemalign 1149vim . go . cia =vim . go . completeitemalign 1150 1151--- A comma-separated list of options for Insert mode completion 1152--- `ins-completion`. The supported values are: 1153--- 1154--- fuzzy Enable `fuzzy-matching` for completion candidates. This 1155--- allows for more flexible and intuitive matching, where 1156--- characters can be skipped and matches can be found even 1157--- if the exact sequence is not typed (disabled for thesaurus 1158--- completion `compl-thesaurus`). 1159--- 1160--- longest 1161--- When 'autocomplete' is not active, only the longest common 1162--- prefix of the matches is inserted (disabled for thesaurus 1163--- completion `compl-thesaurus`). If the popup menu is 1164--- displayed, you can use CTRL-L to add more characters. 1165--- Whether case is ignored depends on the type of completion. 1166--- For buffer text the 'ignorecase' option applies. 1167--- 1168--- When 'autocomplete' is active and no completion item is 1169--- selected, the longest common prefix of the matches is 1170--- inserted after the cursor. The prefix is taken either 1171--- from all displayed items or only from items in the current 1172--- buffer. The inserted text is highlighted with 1173--- `hl-PreInsert`, and the cursor position does not change 1174--- (similar to `"preinsert"`). Press CTRL-Y to accept. 1175--- See also `preinserted()`. 1176--- 1177--- menu Use a popup menu to show the possible completions. The 1178--- menu is only shown when there is more than one match. 1179--- `ins-completion-menu` 1180--- 1181--- menuone Use the popup menu also when there is only one match. 1182--- Useful when there is additional information about the 1183--- match, e.g., what file it comes from. 1184--- 1185--- nearest Matches are listed based on their proximity to the cursor 1186--- position, unlike the default behavior, which only 1187--- considers proximity for matches appearing below the 1188--- cursor. This applies only to matches from the current 1189--- buffer. No effect if "fuzzy" is present. 1190--- 1191--- noinsert Do not insert any text for a match until the user selects 1192--- a match from the menu. Only works in combination with 1193--- "menu" or "menuone". No effect if "longest" is present. 1194--- 1195--- noselect Same as "noinsert", except that no menu item is 1196--- pre-selected. Takes precedence over "noinsert". Enabled 1197--- automatically when 'autocomplete' is on, unless 1198--- "preinsert" is also enabled. 1199--- 1200--- nosort Disable sorting of completion candidates based on fuzzy 1201--- scores when "fuzzy" is enabled. Candidates will appear 1202--- in their original order. 1203--- 1204--- popup Show extra information about the currently selected 1205--- completion in a popup window. Only works in combination 1206--- with "menu" or "menuone". Overrides "preview". 1207--- 1208--- preinsert 1209--- Inserts the text of the first completion candidate beyond 1210--- the current leader, highlighted with `hl-PreInsert`. 1211--- The cursor does not move. 1212--- Requires "fuzzy" to be unset, and either "menuone" in 1213--- 'completeopt' or 'autocomplete' enabled. When 1214--- 'autocomplete' is enabled, this does not work if 1215--- 'ignorecase' is set without 'infercase'. 1216--- See also `preinserted()`. 1217--- 1218--- preselect 1219--- When one of `complete-items` has its "preselect" field set 1220--- (e.g., as indicated by an LSP server), select the first 1221--- such item in the `popupmenu-completion`. Takes precedence 1222--- over "noselect". 1223--- 1224--- Unlike the implicit selection behavior (when "noselect" is 1225--- not set), this preserves the original sort order and 1226--- navigates to the preselect item rather than always 1227--- selecting the first item. 1228--- 1229--- preview Show extra information about the currently selected 1230--- completion in the preview window. Only works in 1231--- combination with "menu" or "menuone". 1232--- 1233--- Only "fuzzy", "longest", "popup", "preinsert", "preselect" and 1234--- "preview" have an effect when 'autocomplete' is enabled. 1235--- 1236--- This option does not apply to `cmdline-completion`. See 'wildoptions' 1237--- for that. 1238--- 1239--- @type string 1240vim . o . completeopt ="menu,popup" 1241vim . o . cot =vim . o . completeopt 1242vim . bo . completeopt =vim . o . completeopt 1243vim . bo . cot =vim . bo . completeopt 1244vim . go . completeopt =vim . o . completeopt 1245vim . go . cot =vim . go . completeopt 1246 1247--- only modifiable in MS-Windows 1248--- When this option is set it overrules 'shellslash' for completion: 1249--- - When this option is set to "slash", a forward slash is used for path 1250--- completion in insert mode. This is useful when editing HTML tag, or 1251--- Makefile with 'noshellslash' on MS-Windows. 1252--- - When this option is set to "backslash", backslash is used. This is 1253--- useful when editing a batch file with 'shellslash' set on 1254--- MS-Windows. 1255--- - When this option is empty, same character is used as for 1256--- 'shellslash'. 1257--- For Insert mode completion the buffer-local value is used. For 1258--- command line completion the global value is used. 1259--- 1260--- @type ''|'slash'|'backslash' 1261vim . o . completeslash ="" 1262vim . o . csl =vim . o . completeslash 1263vim . bo . completeslash =vim . o . completeslash 1264vim . bo . csl =vim . bo . completeslash 1265 1266--- Like 'autocompletetimeout', but applies to `i_CTRL-N` and `i_CTRL-P` 1267--- completion. Value of 0 disables the timeout; positive values allowed. 1268--- 1269--- @type integer 1270vim . o . completetimeout =0 1271vim . o . cto =vim . o . completetimeout 1272vim . go . completetimeout =vim . o . completetimeout 1273vim . go . cto =vim . go . completetimeout 1274 1275--- Sets the modes in which text in the cursor line can also be concealed. 1276--- When the current mode is listed then concealing happens just like in 1277--- other lines. 1278--- n Normal mode 1279--- v Visual mode 1280--- i Insert mode 1281--- c Command line editing, for 'incsearch' 1282--- 1283--- 'v' applies to all lines in the Visual area, not only the cursor. 1284--- A useful value is "nc". This is used in help files. So long as you 1285--- are moving around text is concealed, but when starting to insert text 1286--- or selecting a Visual area the concealed text is displayed, so that 1287--- you can see what you are doing. 1288--- Keep in mind that the cursor position is not always where it's 1289--- displayed. E.g., when moving vertically it may change column. 1290--- 1291--- @type string 1292vim . o . concealcursor ="" 1293vim . o . cocu =vim . o . concealcursor 1294vim . wo . concealcursor =vim . o . concealcursor 1295vim . wo . cocu =vim . wo . concealcursor 1296 1297--- Determine how text with the "conceal" syntax attribute `:syn-conceal` 1298--- is shown: 1299--- 1300--- Value Effect ~ 1301--- 0 Text is shown normally 1302--- 1 Each block of concealed text is replaced with one 1303--- character. If the syntax item does not have a custom 1304--- replacement character defined (see `:syn-cchar`) the 1305--- character defined in 'listchars' is used. 1306--- It is highlighted with the "Conceal" highlight group. 1307--- 2 Concealed text is completely hidden unless it has a 1308--- custom replacement character defined (see 1309--- `:syn-cchar`). 1310--- 3 Concealed text is completely hidden. 1311--- 1312--- Note: in the cursor line concealed text is not hidden, so that you can 1313--- edit and copy the text. This can be changed with the 'concealcursor' 1314--- option. 1315--- 1316--- @type integer 1317vim . o . conceallevel =0 1318vim . o . cole =vim . o . conceallevel 1319vim . wo . conceallevel =vim . o . conceallevel 1320vim . wo . cole =vim . wo . conceallevel 1321 1322--- When 'confirm' is on, certain operations that would normally 1323--- fail because of unsaved changes to a buffer, e.g. ":q" and ":e", 1324--- instead raise a dialog asking if you wish to save the current 1325--- file(s). You can still use a ! to unconditionally `abandon` a buffer. 1326--- If 'confirm' is off you can still activate confirmation for one 1327--- command only (this is most useful in mappings) with the `:confirm` 1328--- command. 1329--- Also see the `confirm()` function and the 'v' flag in 'guioptions'. 1330--- 1331--- @type boolean 1332vim . o . confirm =false 1333vim . o . cf =vim . o . confirm 1334vim . go . confirm =vim . o . confirm 1335vim . go . cf =vim . go . confirm 1336 1337--- Copy the structure of the existing lines indent when autoindenting a 1338--- new line. Normally the new indent is reconstructed by a series of 1339--- tabs followed by spaces as required (unless 'expandtab' is enabled, 1340--- in which case only spaces are used). Enabling this option makes the 1341--- new line copy whatever characters were used for indenting on the 1342--- existing line. 'expandtab' has no effect on these characters, a Tab 1343--- remains a Tab. If the new indent is greater than on the existing 1344--- line, the remaining space is filled in the normal manner. 1345--- See 'preserveindent'. 1346--- 1347--- @type boolean 1348vim . o . copyindent =false 1349vim . o . ci =vim . o . copyindent 1350vim . bo . copyindent =vim . o . copyindent 1351vim . bo . ci =vim . bo . copyindent 1352 1353--- A sequence of single character flags. When a character is present 1354--- this indicates Vi-compatible behavior. This is used for things where 1355--- not being Vi-compatible is mostly or sometimes preferred. 1356--- 'cpoptions' stands for "compatible-options". 1357--- Commas can be added for readability. 1358--- To avoid problems with flags that are added in the future, use the 1359--- "+=" and "-=" feature of ":set" `add-option-flags`. 1360--- 1361--- contains behavior ~ 1362--- *cpo-a* 1363--- a When included, a ":read" command with a file name 1364--- argument will set the alternate file name for the 1365--- current window. 1366--- *cpo-A* 1367--- A When included, a ":write" command with a file name 1368--- argument will set the alternate file name for the 1369--- current window. 1370--- *cpo-b* 1371--- b "\|" in a ":map" command is recognized as the end of 1372--- the map command. The '\' is included in the mapping, 1373--- the text after the '|' is interpreted as the next 1374--- command. Use a CTRL-V instead of a backslash to 1375--- include the '|' in the mapping. Applies to all 1376--- mapping, abbreviation, menu and autocmd commands. 1377--- See also `map_bar`. 1378--- *cpo-B* 1379--- B A backslash has no special meaning in mappings, 1380--- abbreviations, user commands and the "to" part of the 1381--- menu commands. Remove this flag to be able to use a 1382--- backslash like a CTRL-V. For example, the command 1383--- ":map X \\<Esc>" results in X being mapped to: 1384--- 'B' included: "\^[" (^[ is a real <Esc>) 1385--- 'B' excluded: "<Esc>" (5 characters) 1386--- *cpo-c* 1387--- c Searching continues at the end of any match at the 1388--- cursor position, but not further than the start of the 1389--- next line. When not present searching continues 1390--- one character from the cursor position. With 'c' 1391--- "abababababab" only gets three matches when repeating 1392--- "/abab", without 'c' there are five matches. 1393--- *cpo-C* 1394--- C Do not concatenate sourced lines that start with a 1395--- backslash. See `line-continuation`. 1396--- *cpo-d* 1397--- d Using "./" in the 'tags' option doesn't mean to use 1398--- the tags file relative to the current file, but the 1399--- tags file in the current directory. 1400--- *cpo-D* 1401--- D Can't use CTRL-K to enter a digraph after Normal mode 1402--- commands with a character argument, like `r`, `f` and 1403--- `t`. 1404--- *cpo-e* 1405--- e When executing a register with ":@r", always add a 1406--- <CR> to the last line, also when the register is not 1407--- linewise. If this flag is not present, the register 1408--- is not linewise and the last line does not end in a 1409--- <CR>, then the last line is put on the command-line 1410--- and can be edited before hitting <CR>. 1411--- *cpo-E* 1412--- E It is an error when using "y", "d", "c", "g~", "gu" or 1413--- "gU" on an Empty region. The operators only work when 1414--- at least one character is to be operated on. Example: 1415--- This makes "y0" fail in the first column. 1416--- *cpo-f* 1417--- f When included, a ":read" command with a file name 1418--- argument will set the file name for the current 1419--- buffer, if the current buffer doesn't have a file name 1420--- yet. 1421--- *cpo-F* 1422--- F When included, a ":write" command with a file name 1423--- argument will set the file name for the current 1424--- buffer, if the current buffer doesn't have a file name 1425--- yet. Also see `cpo-P`. 1426--- *cpo-i* 1427--- i When included, interrupting the reading of a file will 1428--- leave it modified. 1429--- *cpo-I* 1430--- I When moving the cursor up or down just after inserting 1431--- indent for 'autoindent', do not delete the indent. 1432--- *cpo-J* 1433--- J A `sentence` has to be followed by two spaces after 1434--- the '.', '!' or '?'. A <Tab> is not recognized as 1435--- white space. 1436--- *cpo-K* 1437--- K Don't wait for a key code to complete when it is 1438--- halfway through a mapping. This breaks mapping 1439--- <F1><F1> when only part of the second <F1> has been 1440--- read. It enables cancelling the mapping by typing 1441--- <F1><Esc>. 1442--- *cpo-l* 1443--- l Backslash in a [] range in a search pattern is taken 1444--- literally, only "\]", "\^", "\-" and "\\" are special. 1445--- See `/[]` 1446--- 'l' included: "/[ \t]" finds <Space>, '\' and 't' 1447--- 'l' excluded: "/[ \t]" finds <Space> and <Tab> 1448--- *cpo-L* 1449--- L When the 'list' option is set, 'wrapmargin', 1450--- 'textwidth', 'softtabstop' and Virtual Replace mode 1451--- (see `gR`) count a <Tab> as two characters, instead of 1452--- the normal behavior of a <Tab>. 1453--- *cpo-m* 1454--- m When included, a showmatch will always wait half a 1455--- second. When not included, a showmatch will wait half 1456--- a second or until a character is typed. 'showmatch' 1457--- *cpo-M* 1458--- M When excluded, "%" matching will take backslashes into 1459--- account. Thus in "( \( )" and "\( ( \)" the outer 1460--- parenthesis match. When included "%" ignores 1461--- backslashes, which is Vi compatible. 1462--- *cpo-n* 1463--- n When included, the column used for 'number' and 1464--- 'relativenumber' will also be used for text of wrapped 1465--- lines. 1466--- *cpo-o* 1467--- o Line offset to search command is not remembered for 1468--- next search. 1469--- *cpo-O* 1470--- O Don't complain if a file is being overwritten, even 1471--- when it didn't exist when editing it. This is a 1472--- protection against a file unexpectedly created by 1473--- someone else. Vi didn't complain about this. 1474--- *cpo-P* 1475--- P When included, a ":write" command that appends to a 1476--- file will set the file name for the current buffer, if 1477--- the current buffer doesn't have a file name yet and 1478--- the 'F' flag is also included `cpo-F`. 1479--- *cpo-q* 1480--- q When joining multiple lines leave the cursor at the 1481--- position where it would be when joining two lines. 1482--- *cpo-r* 1483--- r Redo ("." command) uses "/" to repeat a search 1484--- command, instead of the actually used search string. 1485--- *cpo-R* 1486--- R Remove marks from filtered lines. Without this flag 1487--- marks are kept like `:keepmarks` was used. 1488--- *cpo-s* 1489--- s Set buffer options when entering the buffer for the 1490--- first time. This is like it is in Vim version 3.0. 1491--- And it is the default. If not present the options are 1492--- set when the buffer is created. 1493--- *cpo-S* 1494--- S Set buffer options always when entering a buffer 1495--- (except 'readonly', 'fileformat', 'filetype' and 1496--- 'syntax'). This is the (most) Vi compatible setting. 1497--- The options are set to the values in the current 1498--- buffer. When you change an option and go to another 1499--- buffer, the value is copied. Effectively makes the 1500--- buffer options global to all buffers. 1501--- 1502--- 's' 'S' copy buffer options 1503--- no no when buffer created 1504--- yes no when buffer first entered (default) 1505--- X yes each time when buffer entered (vi comp.) 1506--- *cpo-t* 1507--- t Search pattern for the tag command is remembered for 1508--- "n" command. Otherwise Vim only puts the pattern in 1509--- the history for search pattern, but doesn't change the 1510--- last used search pattern. 1511--- *cpo-u* 1512--- u Undo is Vi compatible. See `undo-two-ways`. 1513--- *cpo-v* 1514--- v Backspaced characters remain visible on the screen in 1515--- Insert mode. Without this flag the characters are 1516--- erased from the screen right away. With this flag the 1517--- screen newly typed text overwrites backspaced 1518--- characters. 1519--- *cpo-W* 1520--- W Don't overwrite a readonly file. When omitted, ":w!" 1521--- overwrites a readonly file, if possible. 1522--- *cpo-x* 1523--- x <Esc> on the command-line executes the command-line. 1524--- The default in Vim is to abandon the command-line, 1525--- because <Esc> normally aborts a command. `c_<Esc>` 1526--- *cpo-X* 1527--- X When using a count with "R" the replaced text is 1528--- deleted only once. Also when repeating "R" with "." 1529--- and a count. 1530--- *cpo-y* 1531--- y A yank command can be redone with ".". Think twice if 1532--- you really want to use this, it may break some 1533--- plugins, since most people expect "." to only repeat a 1534--- change. 1535--- *cpo-Z* 1536--- Z When using "w!" while the 'readonly' option is set, 1537--- don't reset 'readonly'. 1538--- *cpo-!* 1539--- ! When redoing a filter command, use the last used 1540--- external command, whatever it was. Otherwise the last 1541--- used -filter- command is used. 1542--- *cpo-$* 1543--- $ When making a change to one line, don't redisplay the 1544--- line, but put a '$' at the end of the changed text. 1545--- The changed text will be overwritten when you type the 1546--- new text. The line is redisplayed if you type any 1547--- command that moves the cursor from the insertion 1548--- point. 1549--- *cpo-%* 1550--- % Vi-compatible matching is done for the "%" command. 1551--- Does not recognize "#if", "#endif", etc. 1552--- Does not recognize "/*" and "*/". 1553--- Parens inside single and double quotes are also 1554--- counted, causing a string that contains a paren to 1555--- disturb the matching. For example, in a line like 1556--- "if (strcmp("foo(", s))" the first paren does not 1557--- match the last one. When this flag is not included, 1558--- parens inside single and double quotes are treated 1559--- specially. When matching a paren outside of quotes, 1560--- everything inside quotes is ignored. When matching a 1561--- paren inside quotes, it will find the matching one (if 1562--- there is one). This works very well for C programs. 1563--- This flag is also used for other features, such as 1564--- C-indenting. 1565--- *cpo-+* 1566--- + When included, a ":write file" command will reset the 1567--- 'modified' flag of the buffer, even though the buffer 1568--- itself may still be different from its file. 1569--- *cpo->* 1570--- > When appending to a register, put a line break before 1571--- the appended text. 1572--- *cpo-;* 1573--- ; When using `,` or `;` to repeat the last `t` search 1574--- and the cursor is right in front of the searched 1575--- character, the cursor won't move. When not included, 1576--- the cursor would skip over it and jump to the 1577--- following occurrence. 1578--- *cpo-~* 1579--- ~ When included, don't resolve symbolic links when 1580--- changing directory with `:cd`, `:tcd`, `:lcd`, or `:bcd`. 1581--- This preserves the symbolic link path in buffer names 1582--- and when displaying the current directory. When 1583--- excluded (default), symbolic links are resolved to 1584--- their target paths. 1585--- *cpo-_* 1586--- _ When using `cw` on a word, do not include the 1587--- whitespace following the word in the motion. 1588--- 1589--- @type string 1590vim . o . cpoptions ="aABceFs_" 1591vim . o . cpo =vim . o . cpoptions 1592vim . go . cpoptions =vim . o . cpoptions 1593vim . go . cpo =vim . go . cpoptions 1594 1595--- When this option is set, as the cursor in the current 1596--- window moves other cursorbound windows (windows that also have 1597--- this option set) move their cursors to the corresponding line and 1598--- column. This option is useful for viewing the 1599--- differences between two versions of a file (see 'diff'); in diff mode, 1600--- inserted and deleted lines (though not characters within a line) are 1601--- taken into account. 1602--- 1603--- @type boolean 1604vim . o . cursorbind =false 1605vim . o . crb =vim . o . cursorbind 1606vim . wo . cursorbind =vim . o . cursorbind 1607vim . wo . crb =vim . wo . cursorbind 1608 1609--- Highlight the screen column of the cursor with CursorColumn 1610--- `hl-CursorColumn`. Useful to align text. Will make screen redrawing 1611--- slower. 1612--- If you only want the highlighting in the current window you can use 1613--- these autocommands: 1614--- 1615--- ```vim 1616--- au WinLeave * set nocursorline nocursorcolumn 1617--- au WinEnter * set cursorline cursorcolumn 1618--- ``` 1619--- 1620--- 1621--- @type boolean 1622vim . o . cursorcolumn =false 1623vim . o . cuc =vim . o . cursorcolumn 1624vim . wo . cursorcolumn =vim . o . cursorcolumn 1625vim . wo . cuc =vim . wo . cursorcolumn 1626 1627--- Highlighting used for the line the cursor is on: 1628--- 1629--- CursorLine the text line `hl-CursorLine` 1630--- CursorLineFold the fold column `hl-CursorLineFold` 1631--- CursorLineSign the sign column `hl-CursorLineSign` 1632--- CursorLineNr the line number, when 'cursorlineopt' contains 1633--- "number" `hl-CursorLineNr` 1634--- 1635--- Useful to easily spot the cursor. Will make screen redrawing slower. 1636--- When Visual mode is active the highlighting isn't used to make it 1637--- easier to see the selected text. 1638--- 1639--- @type boolean 1640vim . o . cursorline =false 1641vim . o . cul =vim . o . cursorline 1642vim . wo . cursorline =vim . o . cursorline 1643vim . wo . cul =vim . wo . cursorline 1644 1645--- Comma-separated list of settings for how 'cursorline' is displayed. 1646--- Valid values: 1647--- "line" Highlight the text line of the cursor with 1648--- CursorLine `hl-CursorLine`. 1649--- "screenline" Highlight only the screen line of the cursor with 1650--- CursorLine `hl-CursorLine`. 1651--- "number" Highlight the line number of the cursor with 1652--- CursorLineNr `hl-CursorLineNr`. 1653--- 1654--- Special value: 1655--- "both" Alias for the values "line,number". 1656--- 1657--- "line" and "screenline" cannot be used together. 1658--- 1659--- @type string 1660vim . o . cursorlineopt ="both" 1661vim . o . culopt =vim . o . cursorlineopt 1662vim . wo . cursorlineopt =vim . o . cursorlineopt 1663vim . wo . culopt =vim . wo . cursorlineopt 1664 1665--- These values can be used: 1666--- msg Error messages that would otherwise be omitted will be given 1667--- anyway. 1668--- throw Error messages that would otherwise be omitted will be given 1669--- anyway and also throw an exception and set `v:errmsg`. 1670--- beep A message will be given when otherwise only a beep would be 1671--- produced. 1672--- The values can be combined, separated by a comma. 1673--- "msg" and "throw" are useful for debugging 'foldexpr', 'formatexpr' or 1674--- 'indentexpr'. 1675--- 1676--- @type string 1677vim . o . debug ="" 1678vim . go . debug =vim . o . debug 1679 1680--- Pattern to be used to find a macro definition. It is a search 1681--- pattern, just like for the "/" command. This option is used for the 1682--- commands like "[i" and "[d" `include-search`. The 'isident' option is 1683--- used to recognize the defined name after the match: 1684--- ``` 1685--- {match with 'define'}{non-ID chars}{defined name}{non-ID char} 1686--- ``` 1687--- See `option-backslash` about inserting backslashes to include a space 1688--- or backslash. 1689--- For C++ this value would be useful, to include const type declarations: 1690--- ``` 1691--- ^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\) 1692--- ``` 1693--- You can also use "\ze" just before the name and continue the pattern 1694--- to check what is following. E.g. for Javascript, if a function is 1695--- defined with `func_name = function(args)`: 1696--- ``` 1697--- ^\s*\ze\i\+\s*=\s*function( 1698--- ``` 1699--- If the function is defined with `func_name : function() {...`: 1700--- ``` 1701--- ^\s*\ze\i\+\s*[:]\s*(*function\s*( 1702--- ``` 1703--- When using the ":set" command, you need to double the backslashes! 1704--- To avoid that use `:let` with a single quote string: 1705--- 1706--- ```vim 1707--- let &l:define = '^\s*\ze\k\+\s*=\s*function(' 1708--- ``` 1709--- 1710--- 1711--- @type string 1712vim . o . define ="" 1713vim . o . def =vim . o . define 1714vim . bo . define =vim . o . define 1715vim . bo . def =vim . bo . define 1716vim . go . define =vim . o . define 1717vim . go . def =vim . go . define 1718 1719--- If editing Unicode and this option is set, backspace and Normal mode 1720--- "x" delete each combining character on its own. When it is off (the 1721--- default) the character along with its combining characters are 1722--- deleted. 1723--- Note: When 'delcombine' is set "xx" may work differently from "2x"! 1724--- 1725--- This is useful for Arabic, Hebrew and many other languages where one 1726--- may have combining characters overtop of base characters, and want 1727--- to remove only the combining ones. 1728--- 1729--- @type boolean 1730vim . o . delcombine =false 1731vim . o . deco =vim . o . delcombine 1732vim . go . delcombine =vim . o . delcombine 1733vim . go . deco =vim . go . delcombine 1734 1735--- List of file names, separated by commas, that are used to lookup words 1736--- for keyword completion commands `i_CTRL-X_CTRL-K`. Each file should 1737--- contain a list of words. This can be one word per line, or several 1738--- words per line, separated by non-keyword characters (white space is 1739--- preferred). Maximum line length is 510 bytes. 1740--- 1741--- When this option is empty or an entry "spell" is present, and spell 1742--- checking is enabled, words in the word lists for the currently active 1743--- 'spelllang' are used. See `spell`. 1744--- 1745--- To include a comma in a file name precede it with a backslash. Spaces 1746--- after a comma are ignored, otherwise spaces are included in the file 1747--- name. See `option-backslash` about using backslashes. 1748--- Environment variables are expanded `:set_env`. 1749--- This has nothing to do with the `Dictionary` variable type. 1750--- Where to find a list of words? 1751--- - BSD/macOS include the "/usr/share/dict/words" file. 1752--- - Try "apt install spell" to get the "/usr/share/dict/words" file on 1753--- apt-managed systems (Debian/Ubuntu). 1754--- The use of `:set+=` and `:set-=` is preferred when adding or removing 1755--- directories from the list. This avoids problems when a future version 1756--- uses another default. 1757--- Backticks cannot be used in this option for security reasons. 1758--- 1759--- @type string 1760vim . o . dictionary ="" 1761vim . o . dict =vim . o . dictionary 1762vim . bo . dictionary =vim . o . dictionary 1763vim . bo . dict =vim . bo . dictionary 1764vim . go . dictionary =vim . o . dictionary 1765vim . go . dict =vim . go . dictionary 1766 1767--- Join the current window in the group of windows that shows differences 1768--- between files. See `diff-mode`. 1769--- 1770--- @type boolean 1771vim . o . diff =false 1772vim . wo . diff =vim . o . diff 1773 1774--- List of {address} in each buffer, separated by commas, that are 1775--- considered anchors when used for diffing. It's valid to specify "$+1" 1776--- for 1 past the last line. "%" cannot be used for this option. There 1777--- can be at most 20 anchors set for each buffer. 1778--- 1779--- Each anchor line splits the buffer (the split happens above the 1780--- anchor), with each part being diff'ed separately before the final 1781--- result is joined. When more than one {address} are provided, the 1782--- anchors will be sorted internally by line number. If using buffer 1783--- local options, each buffer should have the same number of anchors 1784--- (extra anchors will be ignored). This option is only used when 1785--- 'diffopt' has "anchor" set. See `diff-anchors` for more details and 1786--- examples. 1787--- *E1550* 1788--- If some of the {address} do not resolve to a line in each buffer (e.g. 1789--- a pattern search that does not match anything), none of the anchors 1790--- will be used. 1791--- *E1562* 1792--- Diff anchors can only be used when there are no hidden diff buffers. 1793--- 1794--- @type string 1795vim . o . diffanchors ="" 1796vim . o . dia =vim . o . diffanchors 1797vim . bo . diffanchors =vim . o . diffanchors 1798vim . bo . dia =vim . bo . diffanchors 1799vim . go . diffanchors =vim . o . diffanchors 1800vim . go . dia =vim . go . diffanchors 1801 1802--- Expression which is evaluated to obtain a diff file (either ed-style 1803--- or unified-style) from two versions of a file. See `diff-diffexpr`. 1804--- 1805--- @type string|function 1806vim . o . diffexpr ="" 1807vim . o . dex =vim . o . diffexpr 1808vim . go . diffexpr =vim . o . diffexpr 1809vim . go . dex =vim . go . diffexpr 1810 1811--- Option settings for diff mode. It can consist of the following items. 1812--- All are optional. Items must be separated by a comma. 1813--- 1814--- algorithm:{text} Use the specified diff algorithm with the 1815--- internal diff engine. Currently supported 1816--- algorithms are: 1817--- myers the default algorithm 1818--- minimal spend extra time to generate the 1819--- smallest possible diff 1820--- patience patience diff algorithm 1821--- histogram histogram diff algorithm 1822--- 1823--- anchor Anchor specific lines in each buffer to be 1824--- aligned with each other if 'diffanchors' is 1825--- set. See `diff-anchors`. 1826--- 1827--- closeoff When a window is closed where 'diff' is set 1828--- and there is only one window remaining in the 1829--- same tabpage with 'diff' set, execute 1830--- `:diffoff` in that window. This undoes a 1831--- `:diffsplit` command. 1832--- 1833--- context:{n} Use a context of {n} lines between a change 1834--- and a fold that contains unchanged lines. 1835--- When omitted a context of six lines is used. 1836--- When using zero the context is actually one, 1837--- since folds require a line in between, also 1838--- for a deleted line. Set it to a very large 1839--- value (999999) to disable folding completely. 1840--- See `fold-diff`. 1841--- 1842--- filler Show filler lines, to keep the text 1843--- synchronized with a window that has inserted 1844--- lines at the same position. Mostly useful 1845--- when windows are side-by-side and 'scrollbind' 1846--- is set. 1847--- 1848--- foldcolumn:{n} Set the 'foldcolumn' option to {n} when 1849--- starting diff mode. Without this 2 is used. 1850--- 1851--- followwrap Follow the 'wrap' option and leave as it is. 1852--- 1853--- horizontal Start diff mode with horizontal splits (unless 1854--- explicitly specified otherwise). 1855--- 1856--- hiddenoff Do not use diff mode for a buffer when it 1857--- becomes hidden. 1858--- 1859--- iblank Ignore changes where lines are all blank. 1860--- Adds the "-B" flag to the "diff" command if 1861--- 'diffexpr' is empty. Check the documentation 1862--- of the "diff" command for what this does 1863--- exactly. 1864--- NOTE: the diff windows will get out of sync, 1865--- because no differences between blank lines are 1866--- taken into account. 1867--- 1868--- icase Ignore changes in case of text. "a" and "A" 1869--- are considered the same. Adds the "-i" flag 1870--- to the "diff" command if 'diffexpr' is empty. 1871--- 1872--- indent-heuristic 1873--- Use the indent heuristic for the internal 1874--- diff library. 1875--- 1876--- inline:{text} Highlight inline differences within a change. 1877--- See `view-diffs`. Supported values are: 1878--- 1879--- none Do not perform inline highlighting. 1880--- simple Highlight from first different 1881--- character to the last one in each 1882--- line. This is the default if no 1883--- `inline:` value is set. 1884--- char Use internal diff to perform a 1885--- character-wise diff and highlight the 1886--- difference. 1887--- word Use internal diff to perform a 1888--- `word`-wise diff and highlight the 1889--- difference. Non-alphanumeric 1890--- multi-byte characters such as emoji 1891--- and CJK characters are considered 1892--- individual words. Small gaps of 1893--- non-word characters (5 bytes or less) 1894--- between changes are merged into a 1895--- single highlight block. 1896--- 1897--- internal Use the internal diff library. This is 1898--- ignored when 'diffexpr' is set. *E960* 1899--- When running out of memory when writing a 1900--- buffer or the diff is larger than 1 GB this 1901--- item will be ignored for diffs involving that 1902--- buffer. Set the 'verbose' option to see when 1903--- this happens. 1904--- 1905--- iwhite Ignore changes in amount of white space. Adds 1906--- the "-b" flag to the "diff" command if 1907--- 'diffexpr' is empty. Check the documentation 1908--- of the "diff" command for what this does 1909--- exactly. It should ignore adding trailing 1910--- white space, but not leading white space. 1911--- 1912--- iwhiteall Ignore all white space changes. Adds 1913--- the "-w" flag to the "diff" command if 1914--- 'diffexpr' is empty. Check the documentation 1915--- of the "diff" command for what this does 1916--- exactly. 1917--- 1918--- iwhiteeol Ignore white space changes at end of line. 1919--- Adds the "-Z" flag to the "diff" command if 1920--- 'diffexpr' is empty. Check the documentation 1921--- of the "diff" command for what this does 1922--- exactly. 1923--- 1924--- linematch:{n} Align and mark changes between the most 1925--- similar lines between the buffers. When the 1926--- total number of lines in the diff hunk exceeds 1927--- {n}, the lines will not be aligned because for 1928--- very large diff hunks there will be a 1929--- noticeable lag. A reasonable setting is 1930--- "linematch:60", as this will enable alignment 1931--- for a 2 buffer diff hunk of 30 lines each, or 1932--- a 3 buffer diff hunk of 20 lines each. 1933--- Implicitly sets "filler" when this is set. 1934--- 1935--- vertical Start diff mode with vertical splits (unless 1936--- explicitly specified otherwise). 1937--- 1938--- Examples: 1939--- 1940--- ```vim 1941--- set diffopt=internal,filler,context:4 1942--- set diffopt= 1943--- set diffopt=internal,filler,foldcolumn:3 1944--- set diffopt-=internal " do NOT use the internal diff parser 1945--- ``` 1946--- 1947--- 1948--- @type string 1949vim . o . diffopt ="internal,filler,closeoff,indent-heuristic,inline:char,linematch:40" 1950vim . o . dip =vim . o . diffopt 1951vim . go . diffopt =vim . o . diffopt 1952vim . go . dip =vim . go . diffopt 1953 1954--- Enable the entering of digraphs in Insert mode with {char1} <BS> 1955--- {char2}. See `digraphs`. 1956--- 1957--- @type boolean 1958vim . o . digraph =false 1959vim . o . dg =vim . o . digraph 1960vim . go . digraph =vim . o . digraph 1961vim . go . dg =vim . go . digraph 1962 1963--- List of directory names for the swap file, separated with commas. 1964--- 1965--- Possible items: 1966--- - The swap file will be created in the first directory where this is 1967--- possible. If it is not possible in any directory, but last 1968--- directory listed in the option does not exist, it is created. 1969--- - Empty means that no swap file will be used (recovery is 1970--- impossible!) and no `E303` error will be given. 1971--- - A directory "." means to put the swap file in the same directory as 1972--- the edited file. On Unix, a dot is prepended to the file name, so 1973--- it doesn't show in a directory listing. On MS-Windows the "hidden" 1974--- attribute is set and a dot prepended if possible. 1975--- - A directory starting with "./" (or ".\" for MS-Windows) means to put 1976--- the swap file relative to where the edited file is. The leading "." 1977--- is replaced with the path name of the edited file. 1978--- - For Unix and Win32, if a directory ends in two path separators "//", 1979--- the swap file name will be built from the complete path to the file 1980--- with all path separators replaced by percent '%' signs (including 1981--- the colon following the drive letter on Win32). This will ensure 1982--- file name uniqueness in the preserve directory. 1983--- On Win32, it is also possible to end with "\\". However, When a 1984--- separating comma is following, you must use "//", since "\\" will 1985--- include the comma in the file name. Therefore it is recommended to 1986--- use '//', instead of '\\'. 1987--- - Spaces after the comma are ignored, other spaces are considered part 1988--- of the directory name. To have a space at the start of a directory 1989--- name, precede it with a backslash. 1990--- - To include a comma in a directory name precede it with a backslash. 1991--- - A directory name may end in an ':' or '/'. 1992--- - Environment variables are expanded `:set_env`. 1993--- - Careful with '\' characters, type one before a space, type two to 1994--- get one in the option (see `option-backslash`), for example: 1995--- 1996--- ```vim 1997--- set dir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces 1998--- ``` 1999--- 2000--- Editing the same file twice will result in a warning. Using "/tmp" on 2001--- is discouraged: if the system crashes you lose the swap file. And 2002--- others on the computer may be able to see the files. 2003--- Use `:set+=` and `:set-=` when adding or removing directories from the 2004--- list, this avoids problems if the Nvim default is changed. 2005--- 2006--- @type string 2007vim . o . directory ="$XDG_STATE_HOME/nvim/swap//" 2008vim . o . dir =vim . o . directory 2009vim . go . directory =vim . o . directory 2010vim . go . dir =vim . go . directory 2011 2012--- Change the way text is displayed. This is a comma-separated list of 2013--- flags: 2014--- lastline When included, as much as possible of the last line 2015--- in a window will be displayed. "@@@" is put in the 2016--- last columns of the last screen line to indicate the 2017--- rest of the line is not displayed. 2018--- truncate Like "lastline", but "@@@" is displayed in the first 2019--- column of the last screen line. Overrules "lastline". 2020--- uhex Show unprintable characters hexadecimal as <xx> 2021--- instead of using ^C and ~C. 2022--- msgsep Obsolete flag. Allowed but takes no effect. `msgsep` 2023--- 2024--- When neither "lastline" nor "truncate" is included, a last line that 2025--- doesn't fit is replaced with "@" lines. 2026--- 2027--- The "@" character can be changed by setting the "lastline" item in 2028--- 'fillchars'. The character is highlighted with `hl-NonText`. 2029--- 2030--- @type string 2031vim . o . display ="lastline" 2032vim . o . dy =vim . o . display 2033vim . go . display =vim . o . display 2034vim . go . dy =vim . go . display 2035 2036--- Tells when the 'equalalways' option applies: 2037--- ver vertically, width of windows is not affected 2038--- hor horizontally, height of windows is not affected 2039--- both width and height of windows is affected 2040--- 2041--- @type 'both'|'ver'|'hor' 2042vim . o . eadirection ="both" 2043vim . o . ead =vim . o . eadirection 2044vim . go . eadirection =vim . o . eadirection 2045vim . go . ead =vim . go . eadirection 2046 2047--- When on all Unicode emoji characters are considered to be full width. 2048--- This excludes "text emoji" characters, which are normally displayed as 2049--- single width. However, such "text emoji" are treated as full-width 2050--- emoji if they are followed by the U+FE0F variant selector. 2051--- 2052--- Unfortunately there is no good specification for this and it has been 2053--- determined on trial-and-error basis. Use the `setcellwidths()` 2054--- function to change the behavior. 2055--- 2056--- @type boolean 2057vim . o . emoji =true 2058vim . o . emo =vim . o . emoji 2059vim . go . emoji =vim . o . emoji 2060vim . go . emo =vim . go . emoji 2061 2062--- String-encoding used internally and for `RPC` communication. 2063--- Always UTF-8. 2064--- 2065--- See 'fileencoding' to control file-content encoding. 2066--- 2067--- @type string 2068vim . o . encoding ="utf-8" 2069vim . o . enc =vim . o . encoding 2070vim . go . encoding =vim . o . encoding 2071vim . go . enc =vim . go . encoding 2072 2073--- Indicates that a CTRL-Z character was found at the end of the file 2074--- when reading it. Normally only happens when 'fileformat' is "dos". 2075--- When writing a file and this option is off and the 'binary' option 2076--- is on, or 'fixeol' option is off, no CTRL-Z will be written at the 2077--- end of the file. 2078--- See `eol-and-eof` for example settings. 2079--- 2080--- @type boolean 2081vim . o . endoffile =false 2082vim . o . eof =vim . o . endoffile 2083vim . bo . endoffile =vim . o . endoffile 2084vim . bo . eof =vim . bo . endoffile 2085 2086--- When writing a file and this option is off and the 'binary' option 2087--- is on, or 'fixeol' option is off, no <EOL> will be written for the 2088--- last line in the file. This option is automatically set or reset when 2089--- starting to edit a new file, depending on whether file has an <EOL> 2090--- for the last line in the file. Normally you don't have to set or 2091--- reset this option. 2092--- When 'binary' is off and 'fixeol' is on the value is not used when 2093--- writing the file. When 'binary' is on or 'fixeol' is off it is used 2094--- to remember the presence of a <EOL> for the last line in the file, so 2095--- that when you write the file the situation from the original file can 2096--- be kept. But you can change it if you want to. 2097--- See `eol-and-eof` for example settings. 2098--- 2099--- @type boolean 2100vim . o . endofline =true 2101vim . o . eol =vim . o . endofline 2102vim . bo . endofline =vim . o . endofline 2103vim . bo . eol =vim . bo . endofline 2104 2105--- When on, all the windows are automatically made the same size after 2106--- splitting or closing a window. This also happens the moment the 2107--- option is switched on. When off, splitting a window will reduce the 2108--- size of the current window and leave the other windows the same. When 2109--- closing a window the extra lines are given to the window next to it 2110--- (depending on 'splitbelow' and 'splitright'). 2111--- When mixing vertically and horizontally split windows, a minimal size 2112--- is computed and some windows may be larger if there is room. The 2113--- 'eadirection' option tells in which direction the size is affected. 2114--- Changing the height and width of a window can be avoided by setting 2115--- 'winfixheight' and 'winfixwidth', respectively. 2116--- If a window size is specified when creating a new window sizes are 2117--- currently not equalized (it's complicated, but may be implemented in 2118--- the future). 2119--- 2120--- @type boolean 2121vim . o . equalalways =true 2122vim . o . ea =vim . o . equalalways 2123vim . go . equalalways =vim . o . equalalways 2124vim . go . ea =vim . go . equalalways 2125 2126--- External program to use for "=" command. When this option is empty 2127--- the internal formatting functions are used; either 'lisp', 'cindent' 2128--- or 'indentexpr'. 2129--- Environment variables are expanded `:set_env`. See `option-backslash` 2130--- about including spaces and backslashes. 2131--- 2132--- @type string 2133vim . o . equalprg ="" 2134vim . o . ep =vim . o . equalprg 2135vim . bo . equalprg =vim . o . equalprg 2136vim . bo . ep =vim . bo . equalprg 2137vim . go . equalprg =vim . o . equalprg 2138vim . go . ep =vim . go . equalprg 2139 2140--- Ring the bell (beep or screen flash) for error messages. This only 2141--- makes a difference for error messages, the bell will be used always 2142--- for a lot of errors without a message (e.g., hitting <Esc> in Normal 2143--- mode). See 'visualbell' to make the bell behave like a screen flash 2144--- or do nothing. See 'belloff' to finetune when to ring the bell. 2145--- 2146--- @type boolean 2147vim . o . errorbells =false 2148vim . o . eb =vim . o . errorbells 2149vim . go . errorbells =vim . o . errorbells 2150vim . go . eb =vim . go . errorbells 2151 2152--- Name of the errorfile for the QuickFix mode (see `:cf`). 2153--- When the "-q" command-line argument is used, 'errorfile' is set to the 2154--- following argument. See `-q`. 2155--- NOT used for the ":make" command. See 'makeef' for that. 2156--- Environment variables are expanded `:set_env`. 2157--- See `option-backslash` about including spaces and backslashes. 2158--- 2159--- @type string 2160vim . o . errorfile ="errors.err" 2161vim . o . ef =vim . o . errorfile 2162vim . go . errorfile =vim . o . errorfile 2163vim . go . ef =vim . go . errorfile 2164 2165--- Scanf-like description of the format for the lines in the error file 2166--- (see `errorformat`). 2167--- 2168--- @type string 2169vim . o . errorformat ="%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-Gg%\\?make[%*\\d]: *** [%f:%l:%m,%-Gg%\\?make: *** [%f:%l:%m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory %*[`']%f',%X%*\\a[%*\\d]: Leaving directory %*[`']%f',%D%*\\a: Entering directory %*[`']%f',%X%*\\a: Leaving directory %*[`']%f',%DMaking %*\\a in %f,%f|%l| %m" 2170vim . o . efm =vim . o . errorformat 2171vim . bo . errorformat =vim . o . errorformat 2172vim . bo . efm =vim . bo . errorformat 2173vim . go . errorformat =vim . o . errorformat 2174vim . go . efm =vim . go . errorformat 2175 2176--- A list of autocommand event names, which are to be ignored. 2177--- When set to "all" or when "all" is one of the items, all autocommand 2178--- events are ignored, autocommands will not be executed. 2179--- Otherwise this is a comma-separated list of event names. Example: 2180--- 2181--- ```vim 2182--- set ei=WinEnter,WinLeave 2183--- ``` 2184--- 2185--- To ignore all but some events, a "-" prefix can be used: 2186--- 2187--- ```vim 2188--- :set ei=all,-WinLeave 2189--- ``` 2190--- 2191--- 2192--- @type string 2193vim . o . eventignore ="" 2194vim . o . ei =vim . o . eventignore 2195vim . go . eventignore =vim . o . eventignore 2196vim . go . ei =vim . go . eventignore 2197 2198--- Similar to 'eventignore' but applies to a particular window and its 2199--- buffers, for which window and buffer related autocommands can be 2200--- ignored indefinitely without affecting the global 'eventignore'. 2201--- 2202--- Note: The following events are considered to happen outside of a 2203--- window context and thus cannot be ignored by 'eventignorewin': 2204--- 2205--- `ChanClose`, 2206--- `ChanInfo`, 2207--- `ChanOpen`, 2208--- `CmdAtom`, 2209--- `CmdUndefined`, 2210--- `CmdlineChanged`, 2211--- `CmdlineEnter`, 2212--- `CmdlineLeave`, 2213--- `CmdlineLeavePre`, 2214--- `CmdwinEnter`, 2215--- `CmdwinLeave`, 2216--- `ColorScheme`, 2217--- `ColorSchemePre`, 2218--- `CompleteChanged`, 2219--- `CompleteDone`, 2220--- `CompleteDonePre`, 2221--- `DiagnosticChanged`, 2222--- `DiffUpdated`, 2223--- `DirChanged`, 2224--- `DirChangedPre`, 2225--- `ExitPre`, 2226--- `FocusGained`, 2227--- `FocusLost`, 2228--- `FuncUndefined`, 2229--- `LspAttach`, 2230--- `LspDetach`, 2231--- `LspNotify`, 2232--- `LspProgress`, 2233--- `LspRequest`, 2234--- `LspTokenUpdate`, 2235--- `MarkSet`, 2236--- `MenuPopup`, 2237--- `ModeChanged`, 2238--- `OptionSet`, 2239--- `PackChanged`, 2240--- `PackChangedPre`, 2241--- `Progress`, 2242--- `QuickFixCmdPost`, 2243--- `QuickFixCmdPre`, 2244--- `QuitPre`, 2245--- `RemoteReply`, 2246--- `SafeState`, 2247--- `SessionLoadPost`, 2248--- `SessionLoadPre`, 2249--- `SessionWritePost`, 2250--- `SessionWritePre`, 2251--- `ShellCmdPost`, 2252--- `Signal`, 2253--- `SourceCmd`, 2254--- `SourcePost`, 2255--- `SourcePre`, 2256--- `SpellFileMissing`, 2257--- `StdinReadPost`, 2258--- `StdinReadPre`, 2259--- `SwapExists`, 2260--- `Syntax`, 2261--- `TabClosed`, 2262--- `TabClosedPre`, 2263--- `TabEnter`, 2264--- `TabLeave`, 2265--- `TabMoved`, 2266--- `TabNew`, 2267--- `TabNewEntered`, 2268--- `TermClose`, 2269--- `TermEnter`, 2270--- `TermLeave`, 2271--- `TermOpen`, 2272--- `TermRequest`, 2273--- `TermResponse`, 2274--- `UIEnter`, 2275--- `UILeave`, 2276--- `User`, 2277--- `VimEnter`, 2278--- `VimLeave`, 2279--- `VimLeavePre`, 2280--- `VimResized`, 2281--- `VimResume`, 2282--- `VimSuspend`, 2283--- `WinNew`, 2284--- `WinNewPre` 2285--- 2286--- @type string 2287vim . o . eventignorewin ="" 2288vim . o . eiw =vim . o . eventignorewin 2289vim . wo . eventignorewin =vim . o . eventignorewin 2290vim . wo . eiw =vim . wo . eventignorewin 2291 2292--- In Insert mode: Use the appropriate number of spaces to insert a 2293--- <Tab>. Spaces are used in indents with the '>' and '<' commands and 2294--- when 'autoindent' is on. To insert a real tab when 'expandtab' is 2295--- on, use CTRL-V<Tab>. See also `:retab` and `ins-expandtab`. 2296--- 2297--- @type boolean 2298vim . o . expandtab =false 2299vim . o . et =vim . o . expandtab 2300vim . bo . expandtab =vim . o . expandtab 2301vim . bo . et =vim . bo . expandtab 2302 2303--- Enables project-local configuration. Nvim will execute any .nvim.lua, 2304--- .nvimrc, or .exrc file found in the `current-directory` and all parent 2305--- directories (ordered upwards), if the files are in the `trust` list. 2306--- Use `:trust` to manage trusted files. See also `vim.secure.read()`. 2307--- 2308--- Unset 'exrc' to stop further searching of 'exrc' files in parent 2309--- directories, similar to `editorconfig.root`. 2310--- 2311--- To get its own location, a Lua exrc file can use `debug.getinfo()`. 2312--- See `lua-script-location`. 2313--- 2314--- Compare 'exrc' to `editorconfig`: 2315--- - 'exrc' can execute any code; editorconfig only specifies settings. 2316--- - 'exrc' is Nvim-specific; editorconfig works in other editors. 2317--- 2318--- To achieve project-local LSP configuration: 2319--- 1. Enable 'exrc'. 2320--- 2. Place LSP configs at ".nvim/lsp/*.lua" in your project root. 2321--- 3. Create ".nvim.lua" in your project root directory with this line: 2322--- 2323--- ```lua 2324--- vim.cmd[[set runtimepath+=.nvim]] 2325--- ``` 2326--- 2327--- 2328--- @type boolean 2329vim . o . exrc =false 2330vim . o . ex =vim . o . exrc 2331vim . go . exrc =vim . o . exrc 2332vim . go . ex =vim . go . exrc 2333 2334--- File-content encoding for the current buffer. Conversion is done with 2335--- iconv() or as specified with 'charconvert'. 2336--- 2337--- When 'fileencoding' is not UTF-8, conversion will be done when 2338--- writing the file. For reading see below. 2339--- When 'fileencoding' is empty, the file will be saved with UTF-8 2340--- encoding (no conversion when reading or writing a file). 2341--- 2342--- WARNING: Conversion to a non-Unicode encoding can cause loss of 2343--- information! 2344--- 2345--- See `encoding-names` for the possible values. Additionally, values may be 2346--- specified that can be handled by the converter, see 2347--- `mbyte-conversion`. 2348--- 2349--- When reading a file 'fileencoding' will be set from 'fileencodings'. 2350--- To read a file in a certain encoding it won't work by setting 2351--- 'fileencoding', use the `++enc` argument. One exception: when 2352--- 'fileencodings' is empty the value of 'fileencoding' is used. 2353--- For a new file the global value of 'fileencoding' is used. 2354--- 2355--- Prepending "8bit-" and "2byte-" has no meaning here, they are ignored. 2356--- When the option is set, the value is converted to lowercase. Thus 2357--- you can set it with uppercase values too. '_' characters are 2358--- replaced with '-'. If a name is recognized from the list at 2359--- `encoding-names`, it is replaced by the standard name. For example 2360--- "ISO8859-2" becomes "iso-8859-2". 2361--- 2362--- When this option is set, after starting to edit a file, the 'modified' 2363--- option is set, because the file would be different when written. 2364--- 2365--- Keep in mind that changing 'fenc' from a modeline happens 2366--- AFTER the text has been read, thus it applies to when the file will be 2367--- written. If you do set 'fenc' in a modeline, you might want to set 2368--- 'nomodified' to avoid not being able to ":q". 2369--- 2370--- This option cannot be changed when 'modifiable' is off. 2371--- 2372--- @type string 2373vim . o . fileencoding ="" 2374vim . o . fenc =vim . o . fileencoding 2375vim . bo . fileencoding =vim . o . fileencoding 2376vim . bo . fenc =vim . bo . fileencoding 2377 2378--- This is a list of character encodings considered when starting to edit 2379--- an existing file. When a file is read, Vim tries to use the first 2380--- mentioned character encoding. If an error is detected, the next one 2381--- in the list is tried. When an encoding is found that works, 2382--- 'fileencoding' is set to it. If all fail, 'fileencoding' is set to 2383--- an empty string, which means that UTF-8 is used. 2384--- WARNING: Conversion can cause loss of information! You can use 2385--- the `++bad` argument to specify what is done with characters 2386--- that can't be converted. 2387--- For an empty file or a file with only ASCII characters most encodings 2388--- will work and the first entry of 'fileencodings' will be used (except 2389--- "ucs-bom", which requires the BOM to be present). If you prefer 2390--- another encoding use an BufReadPost autocommand event to test if your 2391--- preferred encoding is to be used. Example: 2392--- 2393--- ```vim 2394--- au BufReadPost * if search('\S', 'w') == 0 | 2395--- \ set fenc=iso-2022-jp | endif 2396--- ``` 2397--- This sets 'fileencoding' to "iso-2022-jp" if the file does not contain 2398--- non-blank characters. 2399--- When the `++enc` argument is used then the value of 'fileencodings' is 2400--- not used. 2401--- Note that 'fileencodings' is not used for a new file, the global value 2402--- of 'fileencoding' is used instead. You can set it with: 2403--- 2404--- ```vim 2405--- setglobal fenc=iso-8859-2 2406--- ``` 2407--- This means that a non-existing file may get a different encoding than 2408--- an empty file. 2409--- The special value "ucs-bom" can be used to check for a Unicode BOM 2410--- (Byte Order Mark) at the start of the file. It must not be preceded 2411--- by "utf-8" or another Unicode encoding for this to work properly. 2412--- An entry for an 8-bit encoding (e.g., "latin1") should be the last, 2413--- because Vim cannot detect an error, thus the encoding is always 2414--- accepted. 2415--- The special value "default" can be used for the encoding from the 2416--- environment. It is useful when your environment uses a non-latin1 2417--- encoding, such as Russian. 2418--- When a file contains an illegal UTF-8 byte sequence it won't be 2419--- recognized as "utf-8". You can use the `8g8` command to find the 2420--- illegal byte sequence. 2421--- WRONG VALUES: WHAT'S WRONG: 2422--- latin1,utf-8 "latin1" will always be used 2423--- utf-8,ucs-bom,latin1 BOM won't be recognized in a utf-8 2424--- file 2425--- cp1250,latin1 "cp1250" will always be used 2426--- If 'fileencodings' is empty, 'fileencoding' is not modified. 2427--- See 'fileencoding' for the possible values. 2428--- Setting this option does not have an effect until the next time a file 2429--- is read. 2430--- 2431--- @type string 2432vim . o . fileencodings ="ucs-bom,utf-8,default,latin1" 2433vim . o . fencs =vim . o . fileencodings 2434vim . go . fileencodings =vim . o . fileencodings 2435vim . go . fencs =vim . go . fileencodings 2436 2437--- This gives the <EOL> of the current buffer, which is used for 2438--- reading/writing the buffer from/to a file: 2439--- dos <CR><NL> 2440--- unix <NL> 2441--- mac <CR> 2442--- When "dos" is used, CTRL-Z at the end of a file is ignored. 2443--- See `file-formats` and `file-read`. 2444--- For the character encoding of the file see 'fileencoding'. 2445--- When 'binary' is set, the value of 'fileformat' is ignored, file I/O 2446--- works like it was set to "unix". 2447--- This option is set automatically when starting to edit a file and 2448--- 'fileformats' is not empty and 'binary' is off. 2449--- When this option is set, after starting to edit a file, the 'modified' 2450--- option is set, because the file would be different when written. 2451--- This option cannot be changed when 'modifiable' is off. 2452--- 2453--- @type 'unix'|'dos'|'mac' 2454vim . o . fileformat ="unix" 2455vim . o . ff =vim . o . fileformat 2456vim . bo . fileformat =vim . o . fileformat 2457vim . bo . ff =vim . bo . fileformat 2458 2459--- This gives the end-of-line (<EOL>) formats that will be tried when 2460--- starting to edit a new buffer and when reading a file into an existing 2461--- buffer: 2462--- - When empty, the format defined with 'fileformat' will be used 2463--- always. It is not set automatically. 2464--- - When set to one name, that format will be used whenever a new buffer 2465--- is opened. 'fileformat' is set accordingly for that buffer. The 2466--- 'fileformats' name will be used when a file is read into an existing 2467--- buffer, no matter what 'fileformat' for that buffer is set to. 2468--- - When more than one name is present, separated by commas, automatic 2469--- <EOL> detection will be done when reading a file. When starting to 2470--- edit a file, a check is done for the <EOL>: 2471--- 1. If all lines end in <CR><NL>, and 'fileformats' includes "dos", 2472--- 'fileformat' is set to "dos". 2473--- 2. If a <NL> is found and 'fileformats' includes "unix", 2474--- 'fileformat' is set to "unix". Note that when a <NL> is found 2475--- without a preceding <CR>, "unix" is preferred over "dos". 2476--- 3. If 'fileformat' has not yet been set, and if a <CR> is found, and 2477--- if 'fileformats' includes "mac", 'fileformat' is set to "mac". 2478--- This means that "mac" is only chosen when: 2479--- "unix" is not present or no <NL> is found in the file, and 2480--- "dos" is not present or no <CR><NL> is found in the file. 2481--- Except: if "unix" was chosen, but there is a <CR> before 2482--- the first <NL>, and there appear to be more <CR>s than <NL>s in 2483--- the first few lines, "mac" is used. 2484--- 4. If 'fileformat' is still not set, the first name from 2485--- 'fileformats' is used. 2486--- When reading a file into an existing buffer, the same is done, but 2487--- this happens like 'fileformat' has been set appropriately for that 2488--- file only, the option is not changed. 2489--- When 'binary' is set, the value of 'fileformats' is not used. 2490--- 2491--- When Vim starts up with an empty buffer the first item is used. You 2492--- can overrule this by setting 'fileformat' in your .vimrc. 2493--- 2494--- For systems with a Dos-like <EOL> (<CR><NL>), when reading files that 2495--- are ":source"ed and for vimrc files, automatic <EOL> detection may be 2496--- done: 2497--- - When 'fileformats' is empty, there is no automatic detection. Dos 2498--- format will be used. 2499--- - When 'fileformats' is set to one or more names, automatic detection 2500--- is done. This is based on the first <NL> in the file: If there is a 2501--- <CR> in front of it, Dos format is used, otherwise Unix format is 2502--- used. 2503--- Also see `file-formats`. 2504--- 2505--- @type string 2506vim . o . fileformats ="unix,dos" 2507vim . o . ffs =vim . o . fileformats 2508vim . go . fileformats =vim . o . fileformats 2509vim . go . ffs =vim . go . fileformats 2510 2511--- When set, case is ignored when using file and directory names. 2512--- 2513--- This option is on by default on systems where the filesystem is 2514--- traditionally case-insensitive (for example MS-Windows and macOS). 2515--- However, Vim cannot determine at runtime whether a particular 2516--- filesystem is case-sensitive or case-insensitive. 2517--- 2518--- See 'wildignorecase' for only ignoring case when doing completion. 2519--- 2520--- @type boolean 2521vim . o . fileignorecase =false 2522vim . o . fic =vim . o . fileignorecase 2523vim . go . fileignorecase =vim . o . fileignorecase 2524vim . go . fic =vim . go . fileignorecase 2525 2526--- When this option is set, the FileType autocommand event is triggered. 2527--- All autocommands that match with the value of this option will be 2528--- executed. Thus the value of 'filetype' is used in place of the file 2529--- name. 2530--- Otherwise this option does not always reflect the current file type. 2531--- This option is normally set when the file type is detected. To enable 2532--- this use the ":filetype on" command. `:filetype` 2533--- Setting this option to a different value is most useful in a modeline, 2534--- for a file for which the file type is not automatically recognized. 2535--- Example, for in an IDL file: >c 2536--- /* vim: set filetype=idl : */ 2537--- ``` 2538--- `FileType` `filetypes` 2539--- When a dot appears in the value then this separates two filetype 2540--- names, it should therefore not be used for a filetype. Example: >c 2541--- /* vim: set filetype=c.doxygen : */ 2542--- ``` 2543--- This will use the "c" filetype first, then the "doxygen" filetype. 2544--- This works both for filetype plugins and for syntax files. More than 2545--- one dot may appear. 2546--- This option is not copied to another buffer, independent of the 's' or 2547--- 'S' flag in 'cpoptions'. 2548--- Only alphanumeric characters, '-' and '_' can be used (and a '.' is 2549--- allowed as delimiter when combining different filetypes). 2550--- 2551--- @type string 2552vim . o . filetype ="" 2553vim . o . ft =vim . o . filetype 2554vim . bo . filetype =vim . o . filetype 2555vim . bo . ft =vim . bo . filetype 2556 2557--- Characters to fill the statuslines, vertical separators, special 2558--- lines in the window and truncated text in the `ins-completion-menu`. 2559--- It is a comma-separated list of items. Each item has a name, a colon 2560--- and the value of that item: `E1511` 2561--- 2562--- item default Used for ~ 2563--- stl ' ' statusline of the current window 2564--- stlnc ' ' statusline of the non-current windows 2565--- wbr ' ' window bar 2566--- horiz '─' or '-' horizontal separators `:split` 2567--- horizup '┴' or '-' upwards facing horizontal separator 2568--- horizdown '┬' or '-' downwards facing horizontal separator 2569--- vert '│' or '|' vertical separators `:vsplit` 2570--- vertleft '┤' or '|' left facing vertical separator 2571--- vertright '├' or '|' right facing vertical separator 2572--- verthoriz '┼' or '+' overlapping vertical and horizontal 2573--- separator 2574--- fold '·' or '-' filling 'foldtext' 2575--- foldopen '-' mark the beginning of a fold 2576--- foldclose '+' show a closed fold 2577--- foldsep '│' or '|' open fold middle marker 2578--- foldinner none character to show instead of the 2579--- numeric foldlevel when it would be 2580--- repeated in a narrow 'foldcolumn' 2581--- diff '-' deleted lines of the 'diff' option 2582--- msgsep ' ' message separator 'display' 2583--- eob '~' empty lines at the end of a buffer 2584--- lastline '@' 'display' contains lastline/truncate 2585--- trunc '>' truncated text in the 2586--- `ins-completion-menu`. 2587--- truncrl '<' same as "trunc" in 'rightleft' mode 2588--- 2589--- Any one that is omitted will fall back to the default. 2590--- 2591--- Note that "horiz", "horizup", "horizdown", "vertleft", "vertright" and 2592--- "verthoriz" are only used when 'laststatus' is 3, since only vertical 2593--- window separators are used otherwise. 2594--- 2595--- If 'ambiwidth' is "double" then "horiz", "horizup", "horizdown", 2596--- "vert", "vertleft", "vertright", "verthoriz", "foldsep" and "fold" 2597--- default to single-byte alternatives. 2598--- 2599--- Example: 2600--- 2601--- ```vim 2602--- set fillchars=stl:\ ,stlnc:\ ,vert:│,fold:·,diff:- 2603--- ``` 2604--- 2605--- All items support single-byte and multibyte characters. But 2606--- double-width characters are not supported. `E1512` 2607--- 2608--- The highlighting used for these items: 2609--- item highlight group ~ 2610--- stl StatusLine `hl-StatusLine` 2611--- stlnc StatusLineNC `hl-StatusLineNC` 2612--- wbr WinBar `hl-WinBar` or `hl-WinBarNC` 2613--- horiz WinSeparator `hl-WinSeparator` 2614--- horizup WinSeparator `hl-WinSeparator` 2615--- horizdown WinSeparator `hl-WinSeparator` 2616--- vert WinSeparator `hl-WinSeparator` 2617--- vertleft WinSeparator `hl-WinSeparator` 2618--- vertright WinSeparator `hl-WinSeparator` 2619--- verthoriz WinSeparator `hl-WinSeparator` 2620--- fold Folded `hl-Folded` 2621--- foldopen FoldColumn `hl-FoldColumn` 2622--- foldclose FoldColumn `hl-FoldColumn` 2623--- foldsep FoldColumn `hl-FoldColumn` 2624--- diff DiffDelete `hl-DiffDelete` 2625--- msgsep MsgSeparator `hl-MsgSeparator` 2626--- eob EndOfBuffer `hl-EndOfBuffer` 2627--- lastline NonText `hl-NonText` 2628--- trunc one of the many Popup menu highlighting groups like 2629--- `hl-PmenuSel` 2630--- truncrl same as "trunc" 2631--- 2632--- @type string 2633vim . o . fillchars ="" 2634vim . o . fcs =vim . o . fillchars 2635vim . wo . fillchars =vim . o . fillchars 2636vim . wo . fcs =vim . wo . fillchars 2637vim . go . fillchars =vim . o . fillchars 2638vim . go . fcs =vim . go . fillchars 2639 2640--- Function that is called to obtain the filename(s) for the `:find` 2641--- command. When this option is empty, the internal `file-searching` 2642--- mechanism is used. 2643--- 2644--- The value can be the name of a function, a `lambda` or a `Funcref`. 2645--- See `option-value-function` for more information. 2646--- 2647--- The function is called with two arguments. The first argument is a 2648--- `String` and is the `:find` command argument. The second argument is 2649--- a `Boolean` and is set to `v:true` when the function is called to get 2650--- a List of command-line completion matches for the `:find` command. 2651--- The function should return a List, which is handled similarly to the 2652--- return value of a `:command-completion-customlist` function. 2653--- 2654--- The function can process all the directories specified in 'path'. 2655--- 2656--- If a match is found, the function should return a `List` containing 2657--- one or more file names. If a match is not found, the function 2658--- should return an empty List. 2659--- 2660--- If any errors are encountered during the function invocation, an 2661--- empty List is used as the return value. 2662--- 2663--- It is not allowed to change text or jump to another window while 2664--- executing the 'findfunc' `textlock`. 2665--- 2666--- 2667--- Examples: 2668--- 2669--- ```lua 2670--- -- Use vim.fn.glob() 2671--- vim.o.findfunc = function(cmdarg, cmdcomplete) 2672--- local pat = cmdcomplete and (cmdarg .. '*') or cmdarg 2673--- return vim.fn.glob(pat, false, true) 2674--- end 2675--- 2676--- -- Use the "git ls-files" output 2677--- vim.o.findfunc = function(cmdarg, cmdcomplete) 2678--- local fnames = vim.fn.systemlist('git ls-files') 2679--- return vim.tbl_filter(function(v) 2680--- return v:lower():find(cmdarg:lower(), 1, true) ~= nil 2681--- end, fnames) 2682--- end 2683--- ``` 2684--- 2685--- 2686--- @type string|function 2687vim . o . findfunc ="" 2688vim . o . ffu =vim . o . findfunc 2689vim . bo . findfunc =vim . o . findfunc 2690vim . bo . ffu =vim . bo . findfunc 2691vim . go . findfunc =vim . o . findfunc 2692vim . go . ffu =vim . go . findfunc 2693 2694--- When writing a file and this option is on, <EOL> at the end of file 2695--- will be restored if missing. Turn this option off if you want to 2696--- preserve the situation from the original file. 2697--- When the 'binary' option is set the value of this option doesn't 2698--- matter. 2699--- See the 'endofline' option. 2700--- See `eol-and-eof` for example settings. 2701--- 2702--- @type boolean 2703vim . o . fixendofline =true 2704vim . o . fixeol =vim . o . fixendofline 2705vim . bo . fixendofline =vim . o . fixendofline 2706vim . bo . fixeol =vim . bo . fixendofline 2707 2708--- When set to "all", a fold is closed when the cursor isn't in it and 2709--- its level is higher than 'foldlevel'. Useful if you want folds to 2710--- automatically close when moving out of them. 2711--- 2712--- @type string 2713vim . o . foldclose ="" 2714vim . o . fcl =vim . o . foldclose 2715vim . go . foldclose =vim . o . foldclose 2716vim . go . fcl =vim . go . foldclose 2717 2718--- When and how to draw the foldcolumn. Valid values are: 2719--- "auto": resize to the minimum amount of folds to display. 2720--- "auto:[1-9]": resize to accommodate multiple folds up to the 2721--- selected level 2722--- "0": to disable foldcolumn 2723--- "[1-9]": to display a fixed number of columns 2724--- See `folding`. 2725--- 2726--- @type 'auto'|'auto:1'|'auto:2'|'auto:3'|'auto:4'|'auto:5'|'auto:6'|'auto:7'|'auto:8'|'auto:9'|'0'|'1'|'2'|'3'|'4'|'5'|'6'|'7'|'8'|'9' 2727vim . o . foldcolumn ="0" 2728vim . o . fdc =vim . o . foldcolumn 2729vim . wo . foldcolumn =vim . o . foldcolumn 2730vim . wo . fdc =vim . wo . foldcolumn 2731 2732--- When off, all folds are open. This option can be used to quickly 2733--- switch between showing all text unfolded and viewing the text with 2734--- folds (including manually opened or closed folds). It can be toggled 2735--- with the `zi` command. The 'foldcolumn' will remain blank when 2736--- 'foldenable' is off. 2737--- This option is set by commands that create a new fold or close a fold. 2738--- See `folding`. 2739--- 2740--- @type boolean 2741vim . o . foldenable =true 2742vim . o . fen =vim . o . foldenable 2743vim . wo . foldenable =vim . o . foldenable 2744vim . wo . fen =vim . wo . foldenable 2745 2746--- The expression used for when 'foldmethod' is "expr". It is evaluated 2747--- for each line to obtain its fold level. The context is set to the 2748--- script where 'foldexpr' was set, script-local items can be accessed. 2749--- See `fold-expr` for the usage. 2750--- 2751--- The expression will be evaluated in the `sandbox` if set from a 2752--- modeline, see `sandbox-option`. 2753--- This option can't be set from a `modeline` when the 'diff' option is 2754--- on or the 'modelineexpr' option is off. 2755--- 2756--- It is not allowed to change text or jump to another window while 2757--- evaluating 'foldexpr' `textlock`. 2758--- 2759--- @type string|function 2760vim . o . foldexpr ="0" 2761vim . o . fde =vim . o . foldexpr 2762vim . wo . foldexpr =vim . o . foldexpr 2763vim . wo . fde =vim . wo . foldexpr 2764 2765--- Used only when 'foldmethod' is "indent". Lines starting with 2766--- characters in 'foldignore' will get their fold level from surrounding 2767--- lines. White space is skipped before checking for this character. 2768--- The default "#" works well for C programs. See `fold-indent`. 2769--- 2770--- @type string 2771vim . o . foldignore ="#" 2772vim . o . fdi =vim . o . foldignore 2773vim . wo . foldignore =vim . o . foldignore 2774vim . wo . fdi =vim . wo . foldignore 2775 2776--- Sets the fold level: Folds with a higher level will be closed. 2777--- Setting this option to zero will close all folds. Higher numbers will 2778--- close fewer folds. 2779--- This option is set by commands like `zm`, `zM` and `zR`. 2780--- See `fold-foldlevel`. 2781--- 2782--- @type integer 2783vim . o . foldlevel =0 2784vim . o . fdl =vim . o . foldlevel 2785vim . wo . foldlevel =vim . o . foldlevel 2786vim . wo . fdl =vim . wo . foldlevel 2787 2788--- Sets 'foldlevel' when starting to edit another buffer in a window. 2789--- Useful to always start editing with all folds closed (value zero), 2790--- some folds closed (one) or no folds closed (99). 2791--- This is done before reading any modeline, thus a setting in a modeline 2792--- overrules this option. Starting to edit a file for `diff-mode` also 2793--- ignores this option and closes all folds. 2794--- It is also done before BufReadPre autocommands, to allow an autocmd to 2795--- overrule the 'foldlevel' value for specific files. 2796--- When the value is negative, it is not used. 2797--- 2798--- @type integer 2799vim . o . foldlevelstart =- 1 2800vim . o . fdls =vim . o . foldlevelstart 2801vim . go . foldlevelstart =vim . o . foldlevelstart 2802vim . go . fdls =vim . go . foldlevelstart 2803 2804--- The start and end marker used when 'foldmethod' is "marker". There 2805--- must be one comma, which separates the start and end marker. The 2806--- marker is a literal string (a regular expression would be too slow). 2807--- See `fold-marker`. 2808--- 2809--- @type string 2810vim . o . foldmarker ="{{{,}}}" 2811vim . o . fmr =vim . o . foldmarker 2812vim . wo . foldmarker =vim . o . foldmarker 2813vim . wo . fmr =vim . wo . foldmarker 2814 2815--- The kind of folding used for the current window. Possible values: 2816--- `fold-manual` manual Folds are created manually. 2817--- `fold-indent` indent Lines with equal indent form a fold. 2818--- `fold-expr` expr 'foldexpr' gives the fold level of a line. 2819--- `fold-marker` marker Markers are used to specify folds. 2820--- `fold-syntax` syntax Syntax highlighting items specify folds. 2821--- `fold-diff` diff Fold text that is not changed. 2822--- 2823--- @type 'manual'|'expr'|'marker'|'indent'|'syntax'|'diff' 2824vim . o . foldmethod ="manual" 2825vim . o . fdm =vim . o . foldmethod 2826vim . wo . foldmethod =vim . o . foldmethod 2827vim . wo . fdm =vim . wo . foldmethod 2828 2829--- Sets the number of screen lines above which a fold can be displayed 2830--- closed. Also for manually closed folds. With the default value of 2831--- one a fold can only be closed if it takes up two or more screen lines. 2832--- Set to zero to be able to close folds of just one screen line. 2833--- Note that this only has an effect on what is displayed. After using 2834--- "zc" to close a fold, which is displayed open because it's smaller 2835--- than 'foldminlines', a following "zc" may close a containing fold. 2836--- 2837--- @type integer 2838vim . o . foldminlines =1 2839vim . o . fml =vim . o . foldminlines 2840vim . wo . foldminlines =vim . o . foldminlines 2841vim . wo . fml =vim . wo . foldminlines 2842 2843--- Sets the maximum nesting of folds for the "indent" and "syntax" 2844--- methods. This avoids that too many folds will be created. Using more 2845--- than 20 doesn't work, because the internal limit is 20. 2846--- 2847--- @type integer 2848vim . o . foldnestmax =20 2849vim . o . fdn =vim . o . foldnestmax 2850vim . wo . foldnestmax =vim . o . foldnestmax 2851vim . wo . fdn =vim . wo . foldnestmax 2852 2853--- Specifies for which type of commands folds will be opened, if the 2854--- command moves the cursor into a closed fold. It is a comma-separated 2855--- list of items. 2856--- NOTE: When the command is part of a mapping this option is not used. 2857--- Add the `zv` command to the mapping to get the same effect. 2858--- (rationale: the mapping may want to control opening folds itself) 2859--- 2860--- item commands ~ 2861--- all any 2862--- block (, {, [[, [{, etc. 2863--- hor horizontal movements: "l", "w", "fx", etc. 2864--- insert any command in Insert mode 2865--- jump far jumps: "G", "gg", etc. 2866--- mark jumping to a mark: "'m", CTRL-O, etc. 2867--- percent "%" 2868--- quickfix ":cn", ":crew", ":make", etc. 2869--- search search for a pattern: "/", "n", "*", "gd", etc. 2870--- (not for a search pattern in a ":" command) 2871--- Also for `[s` and `]s`. 2872--- tag jumping to a tag: ":ta", CTRL-T, etc. 2873--- undo undo or redo: "u" and CTRL-R 2874--- When a movement command is used for an operator (e.g., "dl" or "y%") 2875--- this option is not used. This means the operator will include the 2876--- whole closed fold. 2877--- Note that vertical movements are not here, because it would make it 2878--- very difficult to move onto a closed fold. 2879--- In insert mode the folds containing the cursor will always be open 2880--- when text is inserted. 2881--- To close folds you can re-apply 'foldlevel' with the `zx` command or 2882--- set the 'foldclose' option to "all". 2883--- 2884--- @type string 2885vim . o . foldopen ="block,hor,mark,percent,quickfix,search,tag,undo" 2886vim . o . fdo =vim . o . foldopen 2887vim . go . foldopen =vim . o . foldopen 2888vim . go . fdo =vim . go . foldopen 2889 2890--- An expression which is used to specify the text displayed for a closed 2891--- fold. The context is set to the script where 'foldexpr' was set, 2892--- script-local items can be accessed. See `fold-foldtext` for the 2893--- usage. 2894--- 2895--- The expression will be evaluated in the `sandbox` if set from a 2896--- modeline, see `sandbox-option`. 2897--- This option cannot be set in a modeline when 'modelineexpr' is off. 2898--- 2899--- It is not allowed to change text or jump to another window while 2900--- evaluating 'foldtext' `textlock`. 2901--- 2902--- When set to an empty string, foldtext is disabled, and the line 2903--- is displayed normally with highlighting and no line wrapping. 2904--- 2905--- @type string|function 2906vim . o . foldtext ="foldtext()" 2907vim . o . fdt =vim . o . foldtext 2908vim . wo . foldtext =vim . o . foldtext 2909vim . wo . fdt =vim . wo . foldtext 2910 2911--- Enables `multicursor` follow-mode: cursor-relative motions performed 2912--- by the primary cursor, cascade to all cursors `mcursor`. Toggled by 2913--- `q=` (buffer-local). 2914--- 2915--- @type boolean 2916vim . o . follow =false 2917vim . bo . follow =vim . o . follow 2918 2919--- Expression which is evaluated to format a range of lines for the `gq` 2920--- operator or automatic formatting (see 'formatoptions'). When this 2921--- option is empty 'formatprg' is used. 2922--- 2923--- The `v:lnum` variable holds the first line to be formatted. 2924--- The `v:count` variable holds the number of lines to be formatted. 2925--- The `v:char` variable holds the character that is going to be 2926--- inserted if the expression is being evaluated due to 2927--- automatic formatting. This can be empty. Don't insert 2928--- it yet! 2929--- 2930--- Example: 2931--- 2932--- ```vim 2933--- set formatexpr=mylang#Format() 2934--- ``` 2935--- This will invoke the mylang#Format() function in the 2936--- autoload/mylang.vim file in 'runtimepath'. `autoload` 2937--- 2938--- The advantage of using a function call without arguments is that it is 2939--- faster, see `expr-option-function`. 2940--- 2941--- The expression is also evaluated when 'textwidth' is set and adding 2942--- text beyond that limit. This happens under the same conditions as 2943--- when internal formatting is used. Make sure the cursor is kept in the 2944--- same spot relative to the text then! The `mode()` function will 2945--- return "i" or "R" in this situation. 2946--- 2947--- When the expression evaluates to non-zero Vim will fall back to using 2948--- the internal format mechanism. 2949--- 2950--- If the expression starts with s: or `<SID>`, then it is replaced with 2951--- the script ID (`local-function`). Example: 2952--- 2953--- ```vim 2954--- set formatexpr=s:MyFormatExpr() 2955--- set formatexpr=<SID>SomeFormatExpr() 2956--- ``` 2957--- Otherwise, the expression is evaluated in the context of the script 2958--- where the option was set, thus script-local items are available. 2959--- 2960--- The expression will be evaluated in the `sandbox` when set from a 2961--- modeline, see `sandbox-option`. That stops the option from working, 2962--- since changing the buffer text is not allowed. 2963--- This option cannot be set in a modeline when 'modelineexpr' is off. 2964--- 2965--- @type string|function 2966vim . o . formatexpr ="" 2967vim . o . fex =vim . o . formatexpr 2968vim . bo . formatexpr =vim . o . formatexpr 2969vim . bo . fex =vim . bo . formatexpr 2970 2971--- A pattern that is used to recognize a list header. This is used for 2972--- the "n" flag in 'formatoptions'. 2973--- The pattern must match exactly the text that will be the indent for 2974--- the line below it. You can use `/\ze` to mark the end of the match 2975--- while still checking more characters. There must be a character 2976--- following the pattern, when it matches the whole line it is handled 2977--- like there is no match. 2978--- The default recognizes a number, followed by an optional punctuation 2979--- character and white space. 2980--- 2981--- @type string 2982vim . o . formatlistpat ="^\\s*\\d\\+[\\]:.)}\\t ]\\s*" 2983vim . o . flp =vim . o . formatlistpat 2984vim . bo . formatlistpat =vim . o . formatlistpat 2985vim . bo . flp =vim . bo . formatlistpat 2986 2987--- This is a sequence of letters which describes how automatic 2988--- formatting is to be done. 2989--- See `fo-table` for possible values and `gq` for how to format text. 2990--- Commas can be inserted for readability. 2991--- To avoid problems with flags that are added in the future, use the 2992--- "+=" and "-=" feature of ":set" `add-option-flags`. 2993--- 2994--- @type string 2995vim . o . formatoptions ="tcqj" 2996vim . o . fo =vim . o . formatoptions 2997vim . bo . formatoptions =vim . o . formatoptions 2998vim . bo . fo =vim . bo . formatoptions 2999 3000--- External program used to format lines with `gq`. Ignored if 3001--- 'formatexpr' is set. 3002--- 3003--- If empty, the internal `C-indenting` function will be used. 3004--- 3005--- The program must take input on stdin and produce output on stdout. The 3006--- Unix program "fmt" is such a program. Environment variables are 3007--- expanded `:set_env`. See `option-backslash` about including spaces 3008--- and backslashes. 3009--- 3010--- @type string 3011vim . o . formatprg ="" 3012vim . o . fp =vim . o . formatprg 3013vim . bo . formatprg =vim . o . formatprg 3014vim . bo . fp =vim . bo . formatprg 3015vim . go . formatprg =vim . o . formatprg 3016vim . go . fp =vim . go . formatprg 3017 3018--- When on, the OS function fsync() will be called after saving a file 3019--- (`:write`, `writefile()`, …), `swap-file`, `undo-persistence` and `shada-file`. 3020--- This flushes the file to disk, ensuring that it is safely written. 3021--- Slow on some systems: writing buffers, quitting Nvim, and other 3022--- operations may sometimes take a few seconds. 3023--- 3024--- Files are ALWAYS flushed ('fsync' is ignored) when: 3025--- - `CursorHold` event is triggered 3026--- - `:preserve` is called 3027--- - system signals low battery life 3028--- - Nvim exits abnormally 3029--- 3030--- This is a `global-local` option, so it can be set per buffer, for 3031--- example when writing to a slow filesystem. 3032--- 3033--- @type boolean 3034vim . o . fsync =true 3035vim . o . fs =vim . o . fsync 3036vim . bo . fsync =vim . o . fsync 3037vim . bo . fs =vim . bo . fsync 3038vim . go . fsync =vim . o . fsync 3039vim . go . fs =vim . go . fsync 3040 3041--- Format to recognize for the ":grep" command output. 3042--- This is a scanf-like string that uses the same format as the 3043--- 'errorformat' option: see `errorformat`. 3044--- 3045--- Defaults to "%f:%l:%c:%m" if ripgrep ('grepprg') is available. 3046--- 3047--- @type string 3048vim . o . grepformat ="%f:%l:%m,%f:%l%m,%f %l%m" 3049vim . o . gfm =vim . o . grepformat 3050vim . bo . grepformat =vim . o . grepformat 3051vim . bo . gfm =vim . bo . grepformat 3052vim . go . grepformat =vim . o . grepformat 3053vim . go . gfm =vim . go . grepformat 3054 3055--- Program to use for the `:grep` command. 3056--- Note: if you change this then you must also update 'grepformat'. 3057--- 3058--- May contain "%" and "#" characters, are expanded per `cmdline-special`. 3059--- The placeholder "$*" specifies where the arguments will be included. 3060--- Environment variables are expanded `:set_env`. See `option-backslash` 3061--- about including spaces and backslashes. 3062--- 3063--- Special value: When 'grepprg' is set to "internal" the `:grep` command 3064--- works like `:vimgrep`, `:lgrep` like `:lvimgrep`, `:grepadd` like 3065--- `:vimgrepadd` and `:lgrepadd` like `:lvimgrepadd`. 3066--- 3067--- See also `:make_makeprg`, most of the comments there apply to 'grepprg'. 3068--- 3069--- Defaults to: 3070--- - "rg --vimgrep -uu " if ripgrep is available (`:checkhealth`), 3071--- - "grep -HIn $* /dev/null" on Unix, 3072--- - "findstr /n $* nul" on Windows. 3073--- 3074--- Ripgrep may perform additional filtering such as using .gitignore rules 3075--- and skipping hidden files. This is disabled by default (via "-u") to 3076--- more closely match the behaviour of standard grep. 3077--- You can make ripgrep match Vim's case handling using the 3078--- -i/--ignore-case and -S/--smart-case options. Handle `OptionSet` to 3079--- dynamically update 'grepprg' when e.g. 'ignorecase' is changed. 3080--- 3081--- @type string 3082vim . o . grepprg ="grep -HIn $* /dev/null" 3083vim . o . gp =vim . o . grepprg 3084vim . bo . grepprg =vim . o . grepprg 3085vim . bo . gp =vim . bo . grepprg 3086vim . go . grepprg =vim . o . grepprg 3087vim . go . gp =vim . go . grepprg 3088 3089--- Configures the cursor style for each mode. Works in the GUI and many 3090--- terminals. See `tui-cursor-shape`. 3091--- 3092--- To disable cursor-styling, reset the option: 3093--- 3094--- ```vim 3095--- set guicursor= 3096--- ``` 3097--- To enable mode shapes, "Cursor" highlight, and blinking: 3098--- 3099--- ```vim 3100--- set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50 3101--- \,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor 3102--- \,sm:block-blinkwait175-blinkoff150-blinkon175 3103--- ``` 3104--- The option is a comma-separated list of parts. Each part consists of a 3105--- mode-list and an argument-list: 3106--- mode-list:argument-list,mode-list:argument-list,.. 3107--- The mode-list is a dash separated list of these modes: 3108--- n Normal mode 3109--- v Visual mode 3110--- ve Visual mode with 'selection' "exclusive" (same as 'v', 3111--- if not specified) 3112--- o Operator-pending mode 3113--- i Insert mode 3114--- r Replace mode 3115--- c Command-line Normal (append) mode 3116--- ci Command-line Insert mode 3117--- cr Command-line Replace mode 3118--- sm showmatch in Insert mode 3119--- t Terminal mode 3120--- a all modes 3121--- The argument-list is a dash separated list of these arguments: 3122--- hor{N} horizontal bar, {N} percent of the character height 3123--- ver{N} vertical bar, {N} percent of the character width 3124--- block block cursor, fills the whole character 3125--- - Only one of the above three should be present. 3126--- - Default is "block" for each mode. 3127--- blinkwait{N} *cursor-blinking* 3128--- blinkon{N} 3129--- blinkoff{N} 3130--- blink times for cursor: blinkwait is the delay before 3131--- the cursor starts blinking, blinkon is the time that 3132--- the cursor is shown and blinkoff is the time that the 3133--- cursor is not shown. Times are in msec. When one of 3134--- the numbers is zero, there is no blinking. E.g.: 3135--- 3136--- ```vim 3137--- set guicursor=n:blinkon0 3138--- ``` 3139--- 3140--- Default is "blinkon0" for each mode. 3141--- {group-name} 3142--- Highlight group that decides the color and font of the 3143--- cursor. 3144--- In the `TUI`: 3145--- - `inverse`/reverse and no group-name are interpreted 3146--- as "host-terminal default cursor colors" which 3147--- typically means "inverted bg and fg colors". 3148--- - `ctermfg` and `guifg` are ignored. 3149--- {group-name}/{group-name} 3150--- Two highlight group names, the first is used when 3151--- no language mappings are used, the other when they 3152--- are. `language-mapping` 3153--- 3154--- Examples of parts: 3155--- n-c-v:block-nCursor In Normal, Command-line and Visual mode, use a 3156--- block cursor with colors from the "nCursor" 3157--- highlight group 3158--- n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20 3159--- In Normal et al. modes, use a block cursor 3160--- with the default colors defined by the host 3161--- terminal. In Insert-like modes, use 3162--- a vertical bar cursor with colors from 3163--- "Cursor" highlight group. In Replace-like 3164--- modes, use an underline cursor with 3165--- default colors. 3166--- i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150 3167--- In Insert and Command-line Insert mode, use a 3168--- 30% vertical bar cursor with colors from the 3169--- "iCursor" highlight group. Blink a bit 3170--- faster. 3171--- 3172--- The 'a' mode is different. It will set the given argument-list for 3173--- all modes. It does not reset anything to defaults. This can be used 3174--- to do a common setting for all modes. For example, to switch off 3175--- blinking: "a:blinkon0" 3176--- 3177--- Examples of cursor highlighting: 3178--- 3179--- ```vim 3180--- highlight Cursor gui=reverse guifg=NONE guibg=NONE 3181--- " Note: gui=reverse overrides colors. 3182--- highlight Cursor gui=NONE guifg=bg guibg=fg 3183--- ``` 3184--- 3185--- 3186--- @type string 3187vim . o . guicursor ="n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20,t:block-blinkon500-blinkoff500-TermCursor" 3188vim . o . gcr =vim . o . guicursor 3189vim . go . guicursor =vim . o . guicursor 3190vim . go . gcr =vim . go . guicursor 3191 3192--- This is a list of fonts which will be used for the GUI version of Vim. 3193--- In its simplest form the value is just one font name. When 3194--- the font cannot be found you will get an error message. To try other 3195--- font names a list can be specified, font names separated with commas. 3196--- The first valid font is used. 3197--- 3198--- Spaces after a comma are ignored. To include a comma in a font name 3199--- precede it with a backslash. Setting an option requires an extra 3200--- backslash before a space and a backslash. See also 3201--- `option-backslash`. For example: 3202--- 3203--- ```vim 3204--- set guifont=Screen15,\ 7x13,font\\,with\\,commas 3205--- ``` 3206--- will make Vim try to use the font "Screen15" first, and if it fails it 3207--- will try to use "7x13" and then "font,with,commas" instead. 3208--- 3209--- If none of the fonts can be loaded, Vim will keep the current setting. 3210--- If an empty font list is given, Vim will try using other resource 3211--- settings (for X, it will use the Vim.font resource), and finally it 3212--- will try some builtin default which should always be there ("7x13" in 3213--- the case of X). The font names given should be "normal" fonts. Vim 3214--- will try to find the related bold and italic fonts. 3215--- 3216--- For Win32 and Mac OS: 3217--- 3218--- ```vim 3219--- set guifont=* 3220--- ``` 3221--- will bring up a font requester, where you can pick the font you want. 3222--- 3223--- The font name depends on the GUI used. 3224--- 3225--- For Mac OSX you can use something like this: 3226--- 3227--- ```vim 3228--- set guifont=Monaco:h10 3229--- ``` 3230--- *E236* 3231--- Note that the fonts must be mono-spaced (all characters have the same 3232--- width). 3233--- 3234--- To preview a font on X11, you might be able to use the "xfontsel" 3235--- program. The "xlsfonts" program gives a list of all available fonts. 3236--- 3237--- For the Win32 GUI *E244* *E245* 3238--- - takes these options in the font name: 3239--- hXX - height is XX (points, can be floating-point) 3240--- wXX - width is XX (points, can be floating-point) 3241--- b - bold 3242--- i - italic 3243--- u - underline 3244--- s - strikeout 3245--- cXX - character set XX. Valid charsets are: ANSI, ARABIC, 3246--- BALTIC, CHINESEBIG5, DEFAULT, EASTEUROPE, GB2312, GREEK, 3247--- HANGEUL, HEBREW, JOHAB, MAC, OEM, RUSSIAN, SHIFTJIS, 3248--- SYMBOL, THAI, TURKISH, VIETNAMESE ANSI and BALTIC. 3249--- Normally you would use "cDEFAULT". 3250--- 3251--- Use a ':' to separate the options. 3252--- - A '_' can be used in the place of a space, so you don't need to use 3253--- backslashes to escape the spaces. 3254--- - Examples: 3255--- 3256--- ```vim 3257--- set guifont=courier_new:h12:w5:b:cRUSSIAN 3258--- set guifont=Andale_Mono:h7.5:w4.5 3259--- ``` 3260--- 3261--- 3262--- @type string 3263vim . o . guifont ="DFLT_GFN" 3264vim . o . gfn =vim . o . guifont 3265vim . go . guifont =vim . o . guifont 3266vim . go . gfn =vim . go . guifont 3267 3268--- Comma-separated list of fonts to be used for double-width characters. 3269--- The first font that can be loaded is used. 3270--- Note: The size of these fonts must be exactly twice as wide as the one 3271--- specified with 'guifont' and the same height. 3272--- 3273--- When 'guifont' has a valid font and 'guifontwide' is empty Vim will 3274--- attempt to set 'guifontwide' to a matching double-width font. 3275--- 3276--- @type string 3277vim . o . guifontwide ="" 3278vim . o . gfw =vim . o . guifontwide 3279vim . go . guifontwide =vim . o . guifontwide 3280vim . go . gfw =vim . go . guifontwide 3281 3282--- Name of the main help file. All distributed help files should be 3283--- placed together in one directory. Additionally, all "doc" directories 3284--- in 'runtimepath' will be used. 3285--- Environment variables are expanded `:set_env`. For example: 3286--- "$VIMRUNTIME/doc/help.txt". If $VIMRUNTIME is not set, $VIM is also 3287--- tried. Also see `$VIMRUNTIME` and `option-backslash` about including 3288--- spaces and backslashes. 3289--- 3290--- @type string 3291vim . o . helpfile ="$VIMRUNTIME/doc/help.txt" 3292vim . o . hf =vim . o . helpfile 3293vim . go . helpfile =vim . o . helpfile 3294vim . go . hf =vim . go . helpfile 3295 3296--- Minimal initial height of the help window when it is opened with the 3297--- ":help" command. The initial height of the help window is half of the 3298--- current window, or (when the 'ea' option is on) the same as other 3299--- windows. When the height is less than 'helpheight', the height is 3300--- set to 'helpheight'. Set to zero to disable. 3301--- 3302--- @type integer 3303vim . o . helpheight =20 3304vim . o . hh =vim . o . helpheight 3305vim . go . helpheight =vim . o . helpheight 3306vim . go . hh =vim . go . helpheight 3307 3308--- Comma-separated list of languages. Vim will use the first language 3309--- for which the desired help can be found. The English help will always 3310--- be used as a last resort. You can add "en" to prefer English over 3311--- another language, but that will only find tags that exist in that 3312--- language and not in the English help. 3313--- Example: 3314--- 3315--- ```vim 3316--- set helplang=de,it 3317--- ``` 3318--- This will first search German, then Italian and finally English help 3319--- files. 3320--- When using `CTRL-]` and ":help!" in a non-English help file Vim will 3321--- try to find the tag in the current language before using this option. 3322--- See `help-translated`. 3323--- 3324--- @type string 3325vim . o . helplang ="" 3326vim . o . hlg =vim . o . helplang 3327vim . go . helplang =vim . o . helplang 3328vim . go . hlg =vim . go . helplang 3329 3330--- When off a buffer is unloaded (including loss of undo information) 3331--- when it is `abandon`ed. When on a buffer becomes hidden when it is 3332--- `abandon`ed. A buffer displayed in another window does not become 3333--- hidden, of course. 3334--- 3335--- Commands that move through the buffer list sometimes hide a buffer 3336--- although the 'hidden' option is off when these three are true: 3337--- - the buffer is modified 3338--- - 'autowrite' is off or writing is not possible 3339--- - the '!' flag was used 3340--- Also see `windows`. 3341--- 3342--- To hide a specific buffer use the 'bufhidden' option. 3343--- 'hidden' is set for one command with ":hide {command}" `:hide`. 3344--- 3345--- @type boolean 3346vim . o . hidden =true 3347vim . o . hid =vim . o . hidden 3348vim . go . hidden =vim . o . hidden 3349vim . go . hid =vim . go . hidden 3350 3351--- A history of ":" commands, and a history of previous search patterns 3352--- is remembered. This option decides how many entries may be stored in 3353--- each of these histories (see `cmdline-editing` and 'messagesopt' for 3354--- the number of messages to remember). 3355--- The maximum value is 10000. 3356--- 3357--- @type integer 3358vim . o . history =10000 3359vim . o . hi =vim . o . history 3360vim . go . history =vim . o . history 3361vim . go . hi =vim . go . history 3362 3363--- When there is a previous search pattern, highlight all its matches. 3364--- The `hl-Search` highlight group determines the highlighting for all 3365--- matches not under the cursor while the `hl-CurSearch` highlight group 3366--- (if defined) determines the highlighting for the match under the 3367--- cursor. If `hl-CurSearch` is not defined, then `hl-Search` is used for 3368--- both. Note that only the matching text is highlighted, any offsets 3369--- are not applied. 3370--- See also: 'incsearch' and `:match`. 3371--- When you get bored looking at the highlighted matches, you can turn it 3372--- off with `:nohlsearch`. This does not change the option value, as 3373--- soon as you use a search command, the highlighting comes back. 3374--- 'redrawtime' specifies the maximum time spent on finding matches. 3375--- When the search pattern can match an end-of-line, Vim will try to 3376--- highlight all of the matched text. However, this depends on where the 3377--- search starts. This will be the first line in the window or the first 3378--- line below a closed fold. A match in a previous line which is not 3379--- drawn may not continue in a newly drawn line. 3380--- You can specify whether the highlight status is restored on startup 3381--- with the 'h' flag in 'shada' `shada-h`. 3382--- 3383--- @type boolean 3384vim . o . hlsearch =true 3385vim . o . hls =vim . o . hlsearch 3386vim . go . hlsearch =vim . o . hlsearch 3387vim . go . hls =vim . go . hlsearch 3388 3389--- When on, the icon text of the window will be set to the value of 3390--- 'iconstring' (if it is not empty), or to the name of the file 3391--- currently being edited. Only the last part of the name is used. 3392--- Overridden by the 'iconstring' option. 3393--- Only works if the terminal supports setting window icons. 3394--- 3395--- @type boolean 3396vim . o . icon =false 3397vim . go . icon =vim . o . icon 3398 3399--- When this option is not empty, it will be used for the icon text of 3400--- the window. This happens only when the 'icon' option is on. 3401--- Only works if the terminal supports setting window icon text 3402--- When this option contains printf-style '%' items, they will be 3403--- expanded according to the rules used for 'statusline'. See 3404--- 'titlestring' for example settings. 3405--- This option cannot be set in a modeline when 'modelineexpr' is off. 3406--- 3407--- @type string 3408vim . o . iconstring ="" 3409vim . go . iconstring =vim . o . iconstring 3410 3411--- Ignore case in search patterns, `cmdline-completion`, when 3412--- searching in the tags file, `expr-==` and for Insert-mode completion 3413--- `ins-completion`. 3414--- Also see 'smartcase' and 'tagcase'. 3415--- Can be overruled by using "\c" or "\C" in the pattern, see 3416--- `/ignorecase`. 3417--- 3418--- @type boolean 3419vim . o . ignorecase =false 3420vim . o . ic =vim . o . ignorecase 3421vim . go . ignorecase =vim . o . ignorecase 3422vim . go . ic =vim . go . ignorecase 3423 3424--- Specifies whether :lmap or an Input Method (IM) is to be used in 3425--- Insert mode. Valid values: 3426--- 0 :lmap is off and IM is off 3427--- 1 :lmap is ON and IM is off 3428--- 2 :lmap is off and IM is ON 3429--- To always reset the option to zero when leaving Insert mode with <Esc> 3430--- this can be used: 3431--- 3432--- ```vim 3433--- inoremap <ESC> <ESC>:set iminsert=0<CR> 3434--- ``` 3435--- This makes :lmap and IM turn off automatically when leaving Insert 3436--- mode. 3437--- Note that this option changes when using CTRL-^ in Insert mode 3438--- `i_CTRL-^`. 3439--- The value is set to 1 when setting 'keymap' to a valid keymap name. 3440--- It is also used for the argument of commands like "r" and "f". 3441--- 3442--- @type integer 3443vim . o . iminsert =0 3444vim . o . imi =vim . o . iminsert 3445vim . bo . iminsert =vim . o . iminsert 3446vim . bo . imi =vim . bo . iminsert 3447 3448--- Specifies whether :lmap or an Input Method (IM) is to be used when 3449--- entering a search pattern. Valid values: 3450--- -1 the value of 'iminsert' is used, makes it look like 3451--- 'iminsert' is also used when typing a search pattern 3452--- 0 :lmap is off and IM is off 3453--- 1 :lmap is ON and IM is off 3454--- 2 :lmap is off and IM is ON 3455--- Note that this option changes when using CTRL-^ in Command-line mode 3456--- `c_CTRL-^`. 3457--- The value is set to 1 when it is not -1 and setting the 'keymap' 3458--- option to a valid keymap name. 3459--- 3460--- @type integer 3461vim . o . imsearch =- 1 3462vim . o . ims =vim . o . imsearch 3463vim . bo . imsearch =vim . o . imsearch 3464vim . bo . ims =vim . bo . imsearch 3465 3466--- When nonempty, shows the effects of `:substitute`, `:smagic`, 3467--- `:snomagic` and user commands with the `:command-preview` flag as you 3468--- type. 3469--- 3470--- Possible values: 3471--- nosplit Shows the effects of a command incrementally in the 3472--- buffer. 3473--- split Like "nosplit", but also shows partial off-screen 3474--- results in a preview window. 3475--- 3476--- If the preview for built-in commands is too slow (exceeds 3477--- 'redrawtime') then 'inccommand' is automatically disabled until 3478--- `Command-line-mode` is done. 3479--- 3480--- @type 'nosplit'|'split'|'' 3481vim . o . inccommand ="nosplit" 3482vim . o . icm =vim . o . inccommand 3483vim . go . inccommand =vim . o . inccommand 3484vim . go . icm =vim . go . inccommand 3485 3486--- Pattern to be used to find an include command. It is a search 3487--- pattern, just like for the "/" command (See `pattern`). This option 3488--- is used for the commands "[i", "]I", "[d", etc. 3489--- Normally the 'isfname' option is used to recognize the file name that 3490--- comes after the matched pattern. But if "\zs" appears in the pattern 3491--- then the text matched from "\zs" to the end, or until "\ze" if it 3492--- appears, is used as the file name. Use this to include characters 3493--- that are not in 'isfname', such as a space. You can then use 3494--- 'includeexpr' to process the matched text. 3495--- See `option-backslash` about including spaces and backslashes. 3496--- 3497--- @type string 3498vim . o . include ="" 3499vim . o . inc =vim . o . include 3500vim . bo . include =vim . o . include 3501vim . bo . inc =vim . bo . include 3502vim . go . include =vim . o . include 3503vim . go . inc =vim . go . include 3504 3505--- Expression to be used to transform the string found with the 'include' 3506--- option to a file name. Mostly useful to change "." to "/" for Java: 3507--- 3508--- ```vim 3509--- setlocal includeexpr=substitute(v:fname,'\\.','/','g') 3510--- ``` 3511--- The "v:fname" variable will be set to the file name that was detected. 3512--- Note the double backslash: the `:set` command first halves them, then 3513--- one remains in the value, where "\." matches a dot literally. For 3514--- simple character replacements `tr()` avoids the need for escaping: 3515--- 3516--- ```vim 3517--- setlocal includeexpr=tr(v:fname,'.','/') 3518--- ``` 3519--- 3520--- Also used for the `gf` command if an unmodified file name can't be 3521--- found. Allows doing "gf" on the name after an 'include' statement. 3522--- Note: Not used for `<cfile>`. 3523--- 3524--- If the expression starts with s: or `<SID>`, then it is replaced with 3525--- the script ID (`local-function`). Example: 3526--- 3527--- ```vim 3528--- setlocal includeexpr=s:MyIncludeExpr() 3529--- setlocal includeexpr=<SID>SomeIncludeExpr() 3530--- ``` 3531--- Otherwise, the expression is evaluated in the context of the script 3532--- where the option was set, thus script-local items are available. 3533--- 3534--- It is more efficient if the value is just a function call without 3535--- arguments, see `expr-option-function`. 3536--- 3537--- The expression will be evaluated in the `sandbox` when set from a 3538--- modeline, see `sandbox-option`. 3539--- This option cannot be set in a modeline when 'modelineexpr' is off. 3540--- 3541--- It is not allowed to change text or jump to another window while 3542--- evaluating 'includeexpr' `textlock`. 3543--- 3544--- @type string|function 3545vim . o . includeexpr ="" 3546vim . o . inex =vim . o . includeexpr 3547vim . bo . includeexpr =vim . o . includeexpr 3548vim . bo . inex =vim . bo . includeexpr 3549 3550--- While typing a search command, show where the pattern, as it was typed 3551--- so far, matches. The matched string is highlighted. If the pattern 3552--- is invalid or not found, nothing is shown. The screen will be updated 3553--- often, this is only useful on fast terminals. 3554--- Note that the match will be shown, but the cursor will return to its 3555--- original position when no match is found and when pressing <Esc>. You 3556--- still need to finish the search command with <Enter> to move the 3557--- cursor to the match. 3558--- You can use the CTRL-G and CTRL-T keys to move to the next and 3559--- previous match. `c_CTRL-G` `c_CTRL-T` 3560--- Vim only searches for about half a second. With a complicated 3561--- pattern and/or a lot of text the match may not be found. This is to 3562--- avoid that Vim hangs while you are typing the pattern. 3563--- The `hl-IncSearch` highlight group determines the highlighting. 3564--- When 'hlsearch' is on, all matched strings are highlighted too while 3565--- typing a search command. See also: 'hlsearch'. 3566--- If you don't want to turn 'hlsearch' on, but want to highlight all 3567--- matches while searching, you can turn on and off 'hlsearch' with 3568--- autocmd. Example: 3569--- 3570--- ```vim 3571--- augroup vimrc-incsearch-highlight 3572--- autocmd! 3573--- autocmd CmdlineEnter [\/\?] :set hlsearch 3574--- autocmd CmdlineLeave [\/\?] :set nohlsearch 3575--- augroup END 3576--- ``` 3577--- 3578--- CTRL-L can be used to add one character from after the current match 3579--- to the command line. If 'ignorecase' and 'smartcase' are set and the 3580--- command line has no uppercase characters, the added character is 3581--- converted to lowercase. 3582--- CTRL-R CTRL-W can be used to add the word at the end of the current 3583--- match, excluding the characters that were already typed (starting from 3584--- the beginning of the word). 3585--- 3586--- @type boolean 3587vim . o . incsearch =true 3588vim . o . is =vim . o . incsearch 3589vim . go . incsearch =vim . o . incsearch 3590vim . go . is =vim . go . incsearch 3591 3592--- Expression which is evaluated to obtain the proper indent for a line. 3593--- It is used when a new line is created, for the `=` operator and 3594--- in Insert mode as specified with the 'indentkeys' option. 3595--- When this option is not empty, it overrules the 'cindent' and 3596--- 'smartindent' indenting. When 'lisp' is set, this option is 3597--- only used when 'lispoptions' contains "expr:1". 3598--- The expression is evaluated with `v:lnum` set to the line number for 3599--- which the indent is to be computed. The cursor is also in this line 3600--- when the expression is evaluated (but it may be moved around). 3601--- 3602--- If the expression starts with s: or `<SID>`, then it is replaced with 3603--- the script ID (`local-function`). Example: 3604--- 3605--- ```vim 3606--- set indentexpr=s:MyIndentExpr() 3607--- set indentexpr=<SID>SomeIndentExpr() 3608--- ``` 3609--- Otherwise, the expression is evaluated in the context of the script 3610--- where the option was set, thus script-local items are available. 3611--- 3612--- The advantage of using a function call without arguments is that it is 3613--- faster, see `expr-option-function`. 3614--- 3615--- The expression must return the number of spaces worth of indent. It 3616--- can return "-1" to keep the current indent (this means 'autoindent' is 3617--- used for the indent). 3618--- Functions useful for computing the indent are `indent()`, `cindent()` 3619--- and `lispindent()`. 3620--- The evaluation of the expression must not have side effects! It must 3621--- not change the text, jump to another window, etc. Afterwards the 3622--- cursor position is always restored, thus the cursor may be moved. 3623--- Normally this option would be set to call a function: 3624--- 3625--- ```vim 3626--- set indentexpr=GetMyIndent() 3627--- ``` 3628--- Error messages will be suppressed, unless the 'debug' option contains 3629--- "msg". 3630--- See `indent-expression`. 3631--- 3632--- The expression will be evaluated in the `sandbox` when set from a 3633--- modeline, see `sandbox-option`. 3634--- This option cannot be set in a modeline when 'modelineexpr' is off. 3635--- 3636--- It is not allowed to change text or jump to another window while 3637--- evaluating 'indentexpr' `textlock`. 3638--- 3639--- @type string|function 3640vim . o . indentexpr ="" 3641vim . o . inde =vim . o . indentexpr 3642vim . bo . indentexpr =vim . o . indentexpr 3643vim . bo . inde =vim . bo . indentexpr 3644 3645--- A list of keys that, when typed in Insert mode, cause reindenting of 3646--- the current line. Only happens if 'indentexpr' isn't empty. 3647--- The format is identical to 'cinkeys', see `indentkeys-format`. 3648--- See `C-indenting` and `indent-expression`. 3649--- 3650--- @type string 3651vim . o . indentkeys ="0{,0},0),0],:,0#,!^F,o,O,e" 3652vim . o . indk =vim . o . indentkeys 3653vim . bo . indentkeys =vim . o . indentkeys 3654vim . bo . indk =vim . bo . indentkeys 3655 3656--- When doing keyword completion in insert mode `ins-completion`, and 3657--- 'ignorecase' is also on, the case of the match is adjusted depending 3658--- on the typed text. If the typed text contains a lowercase letter 3659--- where the match has an upper case letter, the completed part is made 3660--- lowercase. If the typed text has no lowercase letters and the match 3661--- has a lowercase letter where the typed text has an uppercase letter, 3662--- and there is a letter before it, the completed part is made uppercase. 3663--- With 'noinfercase' the match is used as-is. 3664--- 3665--- @type boolean 3666vim . o . infercase =false 3667vim . o . inf =vim . o . infercase 3668vim . bo . infercase =vim . o . infercase 3669vim . bo . inf =vim . bo . infercase 3670 3671--- The characters specified by this option are included in file names and 3672--- path names. Filenames are used for commands like "gf", "[i" and in 3673--- the tags file. It is also used for "\f" in a `pattern`. 3674--- Multi-byte characters 256 and above are always included, only the 3675--- characters up to 255 are specified with this option. 3676--- For UTF-8 the characters 0xa0 to 0xff are included as well. 3677--- Think twice before adding white space to this option. Although a 3678--- space may appear inside a file name, the effect will be that Vim 3679--- doesn't know where a file name starts or ends when doing completion. 3680--- It most likely works better without a space in 'isfname'. 3681--- 3682--- Note that on systems using a backslash as path separator, Vim tries to 3683--- do its best to make it work as you would expect. That is a bit 3684--- tricky, since Vi originally used the backslash to escape special 3685--- characters. Vim will not remove a backslash in front of a normal file 3686--- name character on these systems, but it will on Unix and alikes. The 3687--- '&' and '^' are not included by default, because these are special for 3688--- cmd.exe. 3689--- 3690--- The format of this option is a list of parts, separated with commas. 3691--- Each part can be a single character number or a range. A range is two 3692--- character numbers with '-' in between. A character number can be a 3693--- decimal number between 0 and 255 or the ASCII character itself (does 3694--- not work for digits). Example: 3695--- "_,-,128-140,#-43" (include '_' and '-' and the range 3696--- 128 to 140 and '#' to 43) 3697--- If a part starts with '^', the following character number or range 3698--- will be excluded from the option. The option is interpreted from left 3699--- to right. Put the excluded character after the range where it is 3700--- included. To include '^' itself use it as the last character of the 3701--- option or the end of a range. Example: 3702--- "^a-z,#,^" (exclude 'a' to 'z', include '#' and '^') 3703--- If the character is '@', all characters where isalpha() returns TRUE 3704--- are included. Normally these are the characters a to z and A to Z, 3705--- plus accented characters. To include '@' itself use "@-@". Examples: 3706--- "@,^a-z" All alphabetic characters, excluding lower 3707--- case ASCII letters. 3708--- "a-z,A-Z,@-@" All letters plus the '@' character. 3709--- A comma can be included by using it where a character number is 3710--- expected. Example: 3711--- "48-57,,,_" Digits, comma and underscore. 3712--- A comma can be excluded by prepending a '^'. Example: 3713--- " -~,^,,9" All characters from space to '~', excluding 3714--- comma, plus <Tab>. 3715--- See `option-backslash` about including spaces and backslashes. 3716--- 3717--- @type string 3718vim . o . isfname ="@,48-57,/,.,-,_,+,,,#,$,%,~,=" 3719vim . o . isf =vim . o . isfname 3720vim . go . isfname =vim . o . isfname 3721vim . go . isf =vim . go . isfname 3722 3723--- The characters given by this option are included in identifiers. 3724--- Identifiers are used in recognizing environment variables and after a 3725--- match of the 'define' option. It is also used for "\i" in a 3726--- `pattern`. See 'isfname' for a description of the format of this 3727--- option. For '@' only characters up to 255 are used. 3728--- Careful: If you change this option, it might break expanding 3729--- environment variables. E.g., when '/' is included and Vim tries to 3730--- expand "$HOME/.local/state/nvim/shada/main.shada". Maybe you should 3731--- change 'iskeyword' instead. 3732--- 3733--- @type string 3734vim . o . isident ="@,48-57,_,192-255" 3735vim . o . isi =vim . o . isident 3736vim . go . isident =vim . o . isident 3737vim . go . isi =vim . go . isident 3738 3739--- Keywords are used in searching and recognizing with many commands: 3740--- "w", "*", "[i", etc. It is also used for "\k" in a `pattern`. See 3741--- 'isfname' for a description of the format of this option. For '@' 3742--- characters above 255 check the "word" character class (any character 3743--- that is categorized as a letter, number or emoji according to the 3744--- Unicode general category). 3745--- 3746--- Note that there is a difference between the "\k" character class and 3747--- the `word` motion. The former matches any word character, while the 3748--- latter stops at a change of the character class. 3749--- 3750--- For C programs you could use "a-z,A-Z,48-57,_,.,-,>". 3751--- For a help file it is set to all non-blank printable characters except 3752--- "*", '"' and '|' (so that CTRL-] on a command finds the help for that 3753--- command). 3754--- When the 'lisp' option is on the '-' character is always included. 3755--- This option also influences syntax highlighting, unless the syntax 3756--- uses `:syn-iskeyword`. 3757--- 3758--- @type string 3759vim . o . iskeyword ="@,48-57,_,192-255" 3760vim . o . isk =vim . o . iskeyword 3761vim . bo . iskeyword =vim . o . iskeyword 3762vim . bo . isk =vim . bo . iskeyword 3763 3764--- Insert two spaces after a '.', '?' and '!' with a join command. 3765--- Otherwise only one space is inserted. 3766--- 3767--- @type boolean 3768vim . o . joinspaces =false 3769vim . o . js =vim . o . joinspaces 3770vim . go . joinspaces =vim . o . joinspaces 3771vim . go . js =vim . go . joinspaces 3772 3773--- List of words that change the behavior of the `jumplist`. 3774--- stack Make the jumplist behave like the tagstack. 3775--- Relative location of entries in the jumplist is 3776--- preserved at the cost of discarding subsequent entries 3777--- when navigating backwards in the jumplist and then 3778--- jumping to a location. `jumplist-stack` 3779--- 3780--- view When moving through the jumplist, `changelist`, 3781--- `alternate-file`, using `mark-motions` or when popping 3782--- the `tagstack` try to restore the `mark-view` in which 3783--- the action occurred. 3784--- 3785--- clean Remove unloaded buffers from the jumplist. 3786--- 3787--- @type string 3788vim . o . jumpoptions ="clean" 3789vim . o . jop =vim . o . jumpoptions 3790vim . go . jumpoptions =vim . o . jumpoptions 3791vim . go . jop =vim . go . jumpoptions 3792 3793--- Name of a keyboard mapping. See `mbyte-keymap`. 3794--- Setting this option to a valid keymap name has the side effect of 3795--- setting 'iminsert' to one, so that the keymap becomes effective. 3796--- 'imsearch' is also set to one, unless it was -1 3797--- Only alphanumeric characters, '.', '-' and '_' can be used. 3798--- 3799--- @type string 3800vim . o . keymap ="" 3801vim . o . kmp =vim . o . keymap 3802vim . bo . keymap =vim . o . keymap 3803vim . bo . kmp =vim . bo . keymap 3804 3805--- List of comma-separated words, which enable special things that keys 3806--- can do. These values can be used: 3807--- startsel Using a shifted special key starts selection (either 3808--- Select mode or Visual mode, depending on "key" being 3809--- present in 'selectmode'). 3810--- stopsel Using a not-shifted special key stops selection. 3811--- Special keys in this context are the cursor keys, <End>, <Home>, 3812--- <PageUp> and <PageDown>. 3813--- 3814--- @type string 3815vim . o . keymodel ="" 3816vim . o . km =vim . o . keymodel 3817vim . go . keymodel =vim . o . keymodel 3818vim . go . km =vim . go . keymodel 3819 3820--- Program to use for the `K` command. Environment variables are 3821--- expanded `:set_env`. 3822--- 3823--- Special cases: 3824--- - ":help" opens the `word` at cursor using `:help`. (Note that 3825--- previously setting the global option to the empty value did this, 3826--- which is now deprecated.) 3827--- - ":help!" performs `:help!` (DWIM) on the `WORD` at cursor. 3828--- - If the value starts with ":", it is invoked as an Ex command 3829--- and [count] is passed as the first argument, if present. 3830--- - If "man" or "man -s", [count] is the manpage section number. 3831--- 3832--- See `option-backslash` about including spaces and backslashes. 3833--- 3834--- Example: 3835--- 3836--- ```vim 3837--- set keywordprg=:help! 3838--- set keywordprg=man\ -s 3839--- set keywordprg=:Man 3840--- ``` 3841--- 3842--- 3843--- @type string 3844vim . o . keywordprg =":Man" 3845vim . o . kp =vim . o . keywordprg 3846vim . bo . keywordprg =vim . o . keywordprg 3847vim . bo . kp =vim . bo . keywordprg 3848vim . go . keywordprg =vim . o . keywordprg 3849vim . go . kp =vim . go . keywordprg 3850 3851--- This option allows switching your keyboard into a special language 3852--- mode. When you are typing text in Insert mode the characters are 3853--- inserted directly. When in Normal mode the 'langmap' option takes 3854--- care of translating these special characters to the original meaning 3855--- of the key. This means you don't have to change the keyboard mode to 3856--- be able to execute Normal mode commands. 3857--- This is the opposite of the 'keymap' option, where characters are 3858--- mapped in Insert mode. 3859--- Also consider setting 'langremap' to off, to prevent 'langmap' from 3860--- applying to characters resulting from a mapping. 3861--- 3862--- Example (for Greek, in UTF-8): *greek* 3863--- 3864--- ```vim 3865--- set langmap=ΑA,ΒB,ΨC,ΔD,ΕE,ΦF,ΓG,ΗH,ΙI,ΞJ,ΚK,ΛL,ΜM,ΝN,ΟO,ΠP,QQ,ΡR,ΣS,ΤT,ΘU,ΩV,WW,ΧX,ΥY,ΖZ,αa,βb,ψc,δd,εe,φf,γg,ηh,ιi,ξj,κk,λl,μm,νn,οo,πp,qq,ρr,σs,τt,θu,ωv,ςw,χx,υy,ζz 3866--- ``` 3867--- Example (exchanges meaning of z and y for commands): 3868--- 3869--- ```vim 3870--- set langmap=zy,yz,ZY,YZ 3871--- ``` 3872--- 3873--- The 'langmap' option is a list of parts, separated with commas. Each 3874--- part can be in one of two forms: 3875--- 1. A list of pairs. Each pair is a "from" character immediately 3876--- followed by the "to" character. Examples: "aA", "aAbBcC". 3877--- 2. A list of "from" characters, a semicolon and a list of "to" 3878--- characters. Example: "abc;ABC" 3879--- Example: "aA,fgh;FGH,cCdDeE" 3880--- Special characters need to be preceded with a backslash. These are 3881--- ";", ',', '"', '|' and backslash itself. 3882--- 3883--- This will allow you to activate vim actions without having to switch 3884--- back and forth between the languages. Your language characters will 3885--- be understood as normal vim English characters (according to the 3886--- langmap mappings) in the following cases: 3887--- o Normal/Visual mode (commands, buffer/register names, user mappings) 3888--- o Insert/Replace Mode: Register names after CTRL-R 3889--- o Insert/Replace Mode: Mappings 3890--- Characters entered in Command-line mode will NOT be affected by 3891--- this option. Note that this option can be changed at any time 3892--- allowing to switch between mappings for different languages/encodings. 3893--- Use a mapping to avoid having to type it each time! 3894--- 3895--- @type string 3896vim . o . langmap ="" 3897vim . o . lmap =vim . o . langmap 3898vim . go . langmap =vim . o . langmap 3899vim . go . lmap =vim . go . langmap 3900 3901--- Language to use for menu translation. Tells which file is loaded 3902--- from the "lang" directory in 'runtimepath': 3903--- 3904--- ```vim 3905--- "lang/menu_" .. &langmenu .. ".vim" 3906--- ``` 3907--- (without the spaces). For example, to always use the Dutch menus, no 3908--- matter what $LANG is set to: 3909--- 3910--- ```vim 3911--- set langmenu=nl_NL.ISO_8859-1 3912--- ``` 3913--- When 'langmenu' is empty, `v:lang` is used. 3914--- Only normal file name characters can be used, `/\*?[|<>` are illegal. 3915--- If your $LANG is set to a non-English language but you do want to use 3916--- the English menus: 3917--- 3918--- ```vim 3919--- set langmenu=none 3920--- ``` 3921--- This option must be set before loading menus, switching on filetype 3922--- detection or syntax highlighting. Once the menus are defined setting 3923--- this option has no effect. But you could do this: 3924--- 3925--- ```vim 3926--- source $VIMRUNTIME/delmenu.vim 3927--- set langmenu=de_DE.ISO_8859-1 3928--- source $VIMRUNTIME/menu.vim 3929--- ``` 3930--- Warning: This deletes all menus that you defined yourself! 3931--- 3932--- @type string 3933vim . o . langmenu ="" 3934vim . o . lm =vim . o . langmenu 3935vim . go . langmenu =vim . o . langmenu 3936vim . go . lm =vim . go . langmenu 3937 3938--- When off, setting 'langmap' does not apply to characters resulting 3939--- from a mapping. If setting 'langmap' disables some of your mappings, 3940--- make sure this option is off. 3941--- 3942--- @type boolean 3943vim . o . langremap =false 3944vim . o . lrm =vim . o . langremap 3945vim . go . langremap =vim . o . langremap 3946vim . go . lrm =vim . go . langremap 3947 3948--- The value of this option influences when the last window will have a 3949--- status line: 3950--- 0: never 3951--- 1: only if there are at least two windows 3952--- 2: always 3953--- 3: always and ONLY the last window 3954--- 3955--- Here "last window" means the last window in a column, i.e. the bottom- 3956--- most one, just above the command line. 3957--- 3958--- The screen looks nicer with a status line if you have several 3959--- windows, but it takes another screen line. `status-line` 3960--- 3961--- @type integer 3962vim . o . laststatus =2 3963vim . o . ls =vim . o . laststatus 3964vim . go . laststatus =vim . o . laststatus 3965vim . go . ls =vim . go . laststatus 3966 3967--- When this option is set, the screen will not be redrawn while 3968--- executing macros, registers and other commands that have not been 3969--- typed. Also, updating the window title is postponed. To force an 3970--- update use `:redraw`. 3971--- This may occasionally cause display errors. It is only meant to be 3972--- set temporarily when performing an operation where redrawing may cause 3973--- flickering or cause a slowdown. 3974--- 3975--- @type boolean 3976vim . o . lazyredraw =false 3977vim . o . lz =vim . o . lazyredraw 3978vim . go . lazyredraw =vim . o . lazyredraw 3979vim . go . lz =vim . go . lazyredraw 3980 3981--- Like 'chistory', but for the location list stack associated with a 3982--- window. If the option is changed in either the location list window 3983--- itself or the window that is associated with the location list stack, 3984--- the new value will also be applied to the other one. This means this 3985--- value will always be the same for a given location list window and its 3986--- corresponding window. See `quickfix-stack` for additional info. 3987--- 3988--- @type integer 3989vim . o . lhistory =10 3990vim . o . lhi =vim . o . lhistory 3991vim . wo . lhistory =vim . o . lhistory 3992vim . wo . lhi =vim . wo . lhistory 3993 3994--- If on, Vim will wrap long lines at a character in 'breakat' rather 3995--- than at the last character that fits on the screen. Unlike 3996--- 'wrapmargin' and 'textwidth', this does not insert <EOL>s in the file, 3997--- it only affects the way the file is displayed, not its contents. 3998--- If 'breakindent' is set, line is visually indented. Then, the value 3999--- of 'showbreak' is used to put in front of wrapped lines. This option 4000--- is not used when the 'wrap' option is off. 4001--- Note that <Tab> characters after an <EOL> are mostly not displayed 4002--- with the right amount of white space. 4003--- 4004--- @type boolean 4005vim . o . linebreak =false 4006vim . o . lbr =vim . o . linebreak 4007vim . wo . linebreak =vim . o . linebreak 4008vim . wo . lbr =vim . wo . linebreak 4009 4010--- Number of lines of the Vim window. 4011--- Normally you don't need to set this. It is done automatically by the 4012--- terminal initialization code. 4013--- When Vim is running in the GUI or in a resizable window, setting this 4014--- option will cause the window size to be changed. When you only want 4015--- to use the size for the GUI, put the command in your `gvimrc` file. 4016--- Vim limits the number of lines to what fits on the screen. You can 4017--- use this command to get the tallest window possible: 4018--- 4019--- ```vim 4020--- set lines=999 4021--- ``` 4022--- Minimum value is 2, maximum value is 1000. 4023--- 4024--- @type integer 4025vim . o . lines =24 4026vim . go . lines =vim . o . lines 4027 4028--- only in the GUI 4029--- Number of pixel lines inserted between characters. Useful if the font 4030--- uses the full character cell height, making lines touch each other. 4031--- When non-zero there is room for underlining. 4032--- With some fonts there can be too much room between lines (to have 4033--- space for ascents and descents). Then it makes sense to set 4034--- 'linespace' to a negative value. This may cause display problems 4035--- though! 4036--- 4037--- @type integer 4038vim . o . linespace =0 4039vim . o . lsp =vim . o . linespace 4040vim . go . linespace =vim . o . linespace 4041vim . go . lsp =vim . go . linespace 4042 4043--- Lisp mode: When <Enter> is typed in insert mode set the indent for 4044--- the next line to Lisp standards (well, sort of). Also happens with 4045--- "cc" or "S". 'autoindent' must also be on for this to work. 4046--- Also see 'lispwords'. 4047--- The '-' character is included in keyword characters. Redefines the 4048--- "=" operator to use this same indentation algorithm rather than 4049--- calling an external program if 'equalprg' is empty. 4050--- 4051--- @type boolean 4052vim . o . lisp =false 4053vim . bo . lisp =vim . o . lisp 4054 4055--- Comma-separated list of items that influence the Lisp indenting when 4056--- enabled with the 'lisp' option. Currently only one item is supported: 4057--- expr:1 use 'indentexpr' for Lisp indenting when it is set 4058--- expr:0 do not use 'indentexpr' for Lisp indenting (default) 4059--- Note that when using 'indentexpr' the `=` operator indents all the 4060--- lines, otherwise the first line is not indented (Vi-compatible). 4061--- 4062--- @type string 4063vim . o . lispoptions ="" 4064vim . o . lop =vim . o . lispoptions 4065vim . bo . lispoptions =vim . o . lispoptions 4066vim . bo . lop =vim . bo . lispoptions 4067 4068--- Comma-separated list of words that influence the Lisp indenting when 4069--- enabled with the 'lisp' option. 4070--- 4071--- @type string 4072vim . o . lispwords ="defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object" 4073vim . o . lw =vim . o . lispwords 4074vim . bo . lispwords =vim . o . lispwords 4075vim . bo . lw =vim . bo . lispwords 4076vim . go . lispwords =vim . o . lispwords 4077vim . go . lw =vim . go . lispwords 4078 4079--- List mode: By default, show tabs as ">", trailing spaces as "-", and 4080--- non-breakable space characters as "+". Useful to see the difference 4081--- between tabs and spaces and for trailing blanks. Further changed by 4082--- the 'listchars' option. 4083--- 4084--- When 'listchars' does not contain "tab" field, tabs are shown as "^I" 4085--- or "<09>", like how unprintable characters are displayed. 4086--- 4087--- The cursor is displayed at the start of the space a Tab character 4088--- occupies, not at the end as usual in Normal mode. To get this cursor 4089--- position while displaying Tabs with spaces, use: 4090--- 4091--- ```vim 4092--- let &list = v:true | let &lcs = 'tab: ' 4093--- ``` 4094--- 4095--- Note that list mode will also affect formatting (set with 'textwidth' 4096--- or 'wrapmargin') when 'cpoptions' includes 'L'. See 'listchars' for 4097--- changing the way tabs are displayed. 4098--- 4099--- @type boolean 4100vim . o . list =false 4101vim . wo . list =vim . o . list 4102 4103--- Strings to use in 'list' mode and for the `:list` command. It is a 4104--- comma-separated list of string settings. *E1511* 4105--- 4106--- *lcs-eol* 4107--- eol:c Character to show at the end of each line. When 4108--- omitted, there is no extra character at the end of the 4109--- line. 4110--- *lcs-tab* 4111--- tab:xy[z] Two or three characters to be used to show a tab. 4112--- The third character is optional. 4113--- 4114--- tab:xy The 'x' is always used, then 'y' as many times as will 4115--- fit. Thus "tab:>-" displays: 4116--- ``` 4117--- 4118--- ``` 4119--- >- 4120--- >-- 4121--- etc. 4122--- ``` 4123--- 4124--- tab:xyz The 'z' is always used, then 'x' is prepended, and 4125--- then 'y' is used as many times as will fit. Thus 4126--- "tab:<->" displays: 4127--- ``` 4128--- 4129--- ``` 4130--- <> 4131--- <-> 4132--- <--> 4133--- etc. 4134--- ``` 4135--- 4136--- When "tab:" is omitted, a tab is shown as ^I. 4137--- *lcs-space* 4138--- space:c Character to show for a space. When omitted, spaces 4139--- are left blank. 4140--- *lcs-multispace* 4141--- multispace:c... 4142--- One or more characters to use cyclically to show for 4143--- multiple consecutive spaces. Overrides the "space" 4144--- setting, except for single spaces. When omitted, the 4145--- "space" setting is used. For example, 4146--- `:set listchars=multispace:---+` shows ten consecutive 4147--- spaces as: 4148--- ``` 4149--- ---+---+-- 4150--- ``` 4151--- 4152--- *lcs-lead* 4153--- lead:c Character to show for leading spaces. When omitted, 4154--- leading spaces are blank. Overrides the "space" and 4155--- "multispace" settings for leading spaces. You can 4156--- combine it with "tab:", for example: 4157--- 4158--- ```vim 4159--- set listchars+=tab:>-,lead:. 4160--- ``` 4161--- 4162--- *lcs-leadmultispace* *indent-guides* 4163--- leadmultispace:c... 4164--- Like the `lcs-multispace` value, but for leading 4165--- spaces only. Also overrides `lcs-lead` for leading 4166--- multiple spaces. 4167--- `:set listchars=leadmultispace:---+` shows ten 4168--- consecutive leading spaces as: 4169--- ``` 4170--- ---+---+--XXX 4171--- ``` 4172--- 4173--- Where "XXX" denotes the first non-blank characters in 4174--- the line. 4175--- 4176--- Combined with `lcs-leadtab`, this can be used to show 4177--- "indentation guides" (vertical lines). 4178--- For example, with 'shiftwidth' 2: 4179--- 4180--- ```vim 4181--- set list listchars=leadtab:\ \ │,tab:\ \ │,leadmultispace:\ \ │ 4182--- ``` 4183--- For richer rendering (per-level colors, treesitter-aware 4184--- scopes, etc.) use a third-party plugin. 4185--- *lcs-leadtab* 4186--- leadtab:xy[z] 4187--- Like `lcs-tab`, but only for leading tabs. When 4188--- omitted, the "tab" setting is used for leading tabs. 4189--- `lcs-tab` must also be set for this to work. *E1572* 4190--- You can combine it with "tab:", for example: 4191--- 4192--- ```vim 4193--- let &listchars = 'tab:>-,leadtab:. ' 4194--- ``` 4195--- This shows leading tabs as periods(.) and other tabs 4196--- as ">--". 4197--- *lcs-trail* 4198--- trail:c Character to show for trailing spaces. When omitted, 4199--- trailing spaces are blank. Overrides the "space" and 4200--- "multispace" settings for trailing spaces. 4201--- *lcs-extends* 4202--- extends:c Character to show in the last column, when 'wrap' is 4203--- off and the line continues beyond the right of the 4204--- screen. 4205--- *lcs-precedes* 4206--- precedes:c Character to show in the first visible column of the 4207--- physical line, when there is text preceding the 4208--- character visible in the first column. 4209--- *lcs-conceal* 4210--- conceal:c Character to show in place of concealed text, when 4211--- 'conceallevel' is set to 1. A space when omitted. 4212--- *lcs-nbsp* 4213--- nbsp:c Character to show for a non-breakable space character 4214--- (0xA0 (160 decimal) and U+202F). Left blank when 4215--- omitted. 4216--- 4217--- The characters ':' and ',' should not be used. UTF-8 characters can 4218--- be used. All characters must be single width. *E1512* 4219--- 4220--- Each character can be specified as hex: 4221--- 4222--- ```vim 4223--- set listchars=eol:\\x24 4224--- set listchars=eol:\\u21b5 4225--- set listchars=eol:\\U000021b5 4226--- ``` 4227--- Note that a double backslash is used. The number of hex characters 4228--- must be exactly 2 for \\x, 4 for \\u and 8 for \\U. 4229--- 4230--- Examples: 4231--- 4232--- ```vim 4233--- set lcs=tab:>-,trail:- 4234--- set lcs=tab:>-,eol:<,nbsp:% 4235--- set lcs=extends:>,precedes:< 4236--- ``` 4237--- `hl-NonText` highlighting will be used for "eol", "extends" and 4238--- "precedes". `hl-Whitespace` for "nbsp", "space", "tab", "multispace", 4239--- "lead" and "trail". 4240--- 4241--- @type string 4242vim . o . listchars ="tab:> ,trail:-,nbsp:+" 4243vim . o . lcs =vim . o . listchars 4244vim . wo . listchars =vim . o . listchars 4245vim . wo . lcs =vim . wo . listchars 4246vim . go . listchars =vim . o . listchars 4247vim . go . lcs =vim . go . listchars 4248 4249--- When on the plugin scripts are loaded when starting up `load-plugins`. 4250--- This option can be reset in your `vimrc` file to disable the loading 4251--- of plugins. 4252--- Note that using the "-u NONE" and "--noplugin" command line arguments 4253--- reset this option. `-u` `--noplugin` 4254--- 4255--- @type boolean 4256vim . o . loadplugins =true 4257vim . o . lpl =vim . o . loadplugins 4258vim . go . loadplugins =vim . o . loadplugins 4259vim . go . lpl =vim . go . loadplugins 4260 4261--- Name of the errorfile for the `:make` command (see `:make_makeprg`) 4262--- and the `:grep` command. 4263--- When it is empty, an internally generated temp file will be used. 4264--- When "##" is included, it is replaced by a number to make the name 4265--- unique. This makes sure that the ":make" command doesn't overwrite an 4266--- existing file. 4267--- NOT used for the ":cf" command. See 'errorfile' for that. 4268--- Environment variables are expanded `:set_env`. 4269--- See `option-backslash` about including spaces and backslashes. 4270--- 4271--- @type string 4272vim . o . makeef ="" 4273vim . o . mef =vim . o . makeef 4274vim . go . makeef =vim . o . makeef 4275vim . go . mef =vim . go . makeef 4276 4277--- Encoding used for reading the output of external commands. When 4278--- empty, encoding is not converted. 4279--- This is used for `:make`, `:lmake`, `:grep`, `:lgrep`, `:grepadd`, 4280--- `:lgrepadd`, `:cfile`, `:cgetfile`, `:caddfile`, `:lfile`, `:lgetfile`, 4281--- and `:laddfile`. 4282--- 4283--- This would be mostly useful when you use MS-Windows. If iconv is 4284--- enabled, setting 'makeencoding' to "char" has the same effect as 4285--- setting to the system locale encoding. Example: 4286--- 4287--- ```vim 4288--- set makeencoding=char " system locale is used 4289--- ``` 4290--- 4291--- 4292--- @type string 4293vim . o . makeencoding ="" 4294vim . o . menc =vim . o . makeencoding 4295vim . bo . makeencoding =vim . o . makeencoding 4296vim . bo . menc =vim . bo . makeencoding 4297vim . go . makeencoding =vim . o . makeencoding 4298vim . go . menc =vim . go . makeencoding 4299 4300--- Program to use for the ":make" command. See `:make_makeprg`. 4301--- This option may contain '%' and '#' characters (see `:_%` and `:_#`), 4302--- which are expanded to the current and alternate file name. Use `::S` 4303--- to escape file names in case they contain special characters. 4304--- Environment variables are expanded `:set_env`. See `option-backslash` 4305--- about including spaces and backslashes. 4306--- Note that a '|' must be escaped twice: once for ":set" and once for 4307--- the interpretation of a command. When you use a filter called 4308--- "myfilter" do it like this: 4309--- 4310--- ```vim 4311--- set makeprg=gmake\ \\\|\ myfilter 4312--- ``` 4313--- The placeholder "$*" can be given (even multiple times) to specify 4314--- where the arguments will be included, for example: 4315--- 4316--- ```vim 4317--- set makeprg=latex\ \\\\nonstopmode\ \\\\input\\{$*} 4318--- ``` 4319--- 4320--- 4321--- @type string 4322vim . o . makeprg ="make" 4323vim . o . mp =vim . o . makeprg 4324vim . bo . makeprg =vim . o . makeprg 4325vim . bo . mp =vim . bo . makeprg 4326vim . go . makeprg =vim . o . makeprg 4327vim . go . mp =vim . go . makeprg 4328 4329--- Characters that form pairs. The `%` command jumps from one to the 4330--- other. 4331--- Only character pairs are allowed that are different, thus you cannot 4332--- jump between two double quotes. 4333--- The characters must be separated by a colon. 4334--- The pairs must be separated by a comma. Example for including '<' and 4335--- '>' (for HTML): 4336--- 4337--- ```vim 4338--- set mps+=<:> 4339--- ``` 4340--- A more exotic example, to jump between the '=' and ';' in an 4341--- assignment, useful for languages like C and Java: 4342--- 4343--- ```vim 4344--- au FileType c,cpp,java set mps+==:; 4345--- ``` 4346--- For a more advanced way of using "%", see the matchit.vim plugin in 4347--- the $VIMRUNTIME/plugin directory. `add-local-help` 4348--- 4349--- @type string 4350vim . o . matchpairs ="(:),{:},[:]" 4351vim . o . mps =vim . o . matchpairs 4352vim . bo . matchpairs =vim . o . matchpairs 4353vim . bo . mps =vim . bo . matchpairs 4354 4355--- Tenths of a second to show the matching paren, when 'showmatch' is 4356--- set. Note that this is not in milliseconds, like other options that 4357--- set a time. This is to be compatible with Nvi. 4358--- 4359--- @type integer 4360vim . o . matchtime =5 4361vim . o . mat =vim . o . matchtime 4362vim . go . matchtime =vim . o . matchtime 4363vim . go . mat =vim . go . matchtime 4364 4365--- Maximum depth of function calls for user functions. This normally 4366--- catches endless recursion. When using a recursive function with 4367--- more depth, set 'maxfuncdepth' to a bigger number. But this will use 4368--- more memory, there is the danger of failing when memory is exhausted. 4369--- Increasing this limit above 200 also changes the maximum for Ex 4370--- command recursion, see `E169`. 4371--- See also `:function`. 4372--- Also used for maximum depth of callback functions. 4373--- 4374--- @type integer 4375vim . o . maxfuncdepth =100 4376vim . o . mfd =vim . o . maxfuncdepth 4377vim . go . maxfuncdepth =vim . o . maxfuncdepth 4378vim . go . mfd =vim . go . maxfuncdepth 4379 4380--- Maximum number of times a mapping is done without resulting in a 4381--- character to be used. This normally catches endless mappings, like 4382--- ":map x y" with ":map y x". It still does not catch ":map g wg", 4383--- because the 'w' is used before the next mapping is done. See also 4384--- `key-mapping`. 4385--- 4386--- @type integer 4387vim . o . maxmapdepth =1000 4388vim . o . mmd =vim . o . maxmapdepth 4389vim . go . maxmapdepth =vim . o . maxmapdepth 4390vim . go . mmd =vim . go . maxmapdepth 4391 4392--- Maximum amount of memory (in Kbyte) to use for pattern matching. 4393--- The maximum value is about 2000000. Use this to work without a limit. 4394--- *E363* 4395--- When Vim runs into the limit it gives an error message and mostly 4396--- behaves like CTRL-C was typed. 4397--- Running into the limit often means that the pattern is very 4398--- inefficient or too complex. This may already happen with the pattern 4399--- `\(.\)*` on a very long line. `.*` works much better. 4400--- Might also happen on redraw, when syntax rules try to match a complex 4401--- text structure. 4402--- Vim may run out of memory before hitting the 'maxmempattern' limit, in 4403--- which case you get an "Out of memory" error instead. 4404--- 4405--- @type integer 4406vim . o . maxmempattern =1000 4407vim . o . mmp =vim . o . maxmempattern 4408vim . go . maxmempattern =vim . o . maxmempattern 4409vim . go . mmp =vim . go . maxmempattern 4410 4411--- Maximum number of matches shown for the search count status `shm-S` 4412--- When the number of matches exceeds this value, Vim shows ">" instead 4413--- of the exact count to keep searching fast. 4414--- Note: larger values may impact performance. 4415--- The value must be between 1 and 9999. See also the `searchcount()` 4416--- function. 4417--- 4418--- @type integer 4419vim . o . maxsearchcount =999 4420vim . o . msc =vim . o . maxsearchcount 4421vim . go . maxsearchcount =vim . o . maxsearchcount 4422vim . go . msc =vim . go . maxsearchcount 4423 4424--- Maximum number of items to use in a menu. Used for menus that are 4425--- generated from a list of items, e.g., the Buffers menu. Changing this 4426--- option has no direct effect, the menu must be refreshed first. 4427--- 4428--- @type integer 4429vim . o . menuitems =25 4430vim . o . mis =vim . o . menuitems 4431vim . go . menuitems =vim . o . menuitems 4432vim . go . mis =vim . go . menuitems 4433 4434--- Option settings for outputting messages. It can consist of the 4435--- following items. Items must be separated by a comma. 4436--- 4437--- history:{n} Determines how many entries are remembered in the 4438--- `:messages` history. The maximum value is 10000. 4439--- Setting it to zero clears the message history. 4440--- This item must always be present. 4441--- 4442--- hit-enter Use a `hit-enter` prompt when the message is longer than 4443--- 'cmdheight' size. 4444--- 4445--- maxheight:{n} `ui2` only. Maximum height of the expanded cmdline 4446--- for message display, as a percentage of 'lines'. 4447--- A message longer than this is "collapsed", with 4448--- a `[+x]` "spill" indicator. (default: 50) 4449--- 4450--- pager:{key} `ui2` only. Key that enters the message pager after an 4451--- interactive `:` command showed a collapsed message. Use 4452--- `key-notation`, e.g. `<CR>`. A literal comma must be 4453--- given as "<Char-44>". Empty: no such key. 4454--- 4455--- progress:{s} Determines where to show progress messages. 4456--- Valid values are: 4457--- - empty: Progress messages not shown in cmdline. 4458--- - "c": Progress messages are shown in cmdline. 4459--- 4460--- timeout:{n} `ui2` only. Time in milliseconds that a message is 4461--- visible in the message window. 4462--- 4463--- wait:{n} Deprecated with `ui2`. 4464--- Instead of a `hit-enter` prompt, simply wait for {n} 4465--- milliseconds so the user has a chance to read the 4466--- message. Maximum {n} is 10000. Use 0 to disable the 4467--- wait (user won't see any "hit-enter" messages). 4468--- Ignored when "hit-enter" is present, but required when 4469--- "hit-enter" is not present. 4470--- 4471--- @type string 4472vim . o . messagesopt ="hit-enter,history:500,progress:c" 4473vim . o . mopt =vim . o . messagesopt 4474vim . go . messagesopt =vim . o . messagesopt 4475vim . go . mopt =vim . go . messagesopt 4476 4477--- Parameters for `:mkspell`. This tunes when to start compressing the 4478--- word tree. Compression can be slow when there are many words, but 4479--- it's needed to avoid running out of memory. The amount of memory used 4480--- per word depends very much on how similar the words are, that's why 4481--- this tuning is complicated. 4482--- 4483--- There are three numbers, separated by commas: 4484--- ``` 4485--- {start},{inc},{added} 4486--- ``` 4487--- 4488--- For most languages the uncompressed word tree fits in memory. {start} 4489--- gives the amount of memory in Kbyte that can be used before any 4490--- compression is done. It should be a bit smaller than the amount of 4491--- memory that is available to Vim. 4492--- 4493--- When going over the {start} limit the {inc} number specifies the 4494--- amount of memory in Kbyte that can be allocated before another 4495--- compression is done. A low number means compression is done after 4496--- less words are added, which is slow. A high number means more memory 4497--- will be allocated. 4498--- 4499--- After doing compression, {added} times 1024 words can be added before 4500--- the {inc} limit is ignored and compression is done when any extra 4501--- amount of memory is needed. A low number means there is a smaller 4502--- chance of hitting the {inc} limit, less memory is used but it's 4503--- slower. 4504--- 4505--- The languages for which these numbers are important are Italian and 4506--- Hungarian. The default works for when you have about 512 Mbyte. If 4507--- you have 1 Gbyte you could use: 4508--- 4509--- ```vim 4510--- set mkspellmem=900000,3000,800 4511--- ``` 4512--- If you have less than 512 Mbyte `:mkspell` may fail for some 4513--- languages, no matter what you set 'mkspellmem' to. 4514--- Environment variables are expanded `:set_env`. 4515--- 4516--- @type string 4517vim . o . mkspellmem ="460000,2000,500" 4518vim . o . msm =vim . o . mkspellmem 4519vim . go . mkspellmem =vim . o . mkspellmem 4520vim . go . msm =vim . go . mkspellmem 4521 4522--- If 'modeline' is on 'modelines' gives the number of lines that is 4523--- checked for set commands. If 'modeline' is off or 'modelines' is zero 4524--- no lines are checked. See `modeline`. 4525--- 4526--- @type boolean 4527vim . o . modeline =true 4528vim . o . ml =vim . o . modeline 4529vim . bo . modeline =vim . o . modeline 4530vim . bo . ml =vim . bo . modeline 4531 4532--- When on allow some options that are an expression to be set in the 4533--- modeline. Check the option for whether it is affected by 4534--- 'modelineexpr'. Also see `modeline`. 4535--- 4536--- @type boolean 4537vim . o . modelineexpr =false 4538vim . o . mle =vim . o . modelineexpr 4539vim . go . modelineexpr =vim . o . modelineexpr 4540vim . go . mle =vim . go . modelineexpr 4541 4542--- If 'modeline' is on 'modelines' gives the number of lines that is 4543--- checked for set commands. If 'modeline' is off or 'modelines' is zero 4544--- no lines are checked. See `modeline`. 4545--- 4546--- @type integer 4547vim . o . modelines =5 4548vim . o . mls =vim . o . modelines 4549vim . go . modelines =vim . o . modelines 4550vim . go . mls =vim . go . modelines 4551 4552--- When off the buffer contents cannot be changed. The 'fileformat' and 4553--- 'fileencoding' options also can't be changed. 4554--- Can be reset on startup with the `-M` command line argument. 4555--- 4556--- @type boolean 4557vim . o . modifiable =true 4558vim . o . ma =vim . o . modifiable 4559vim . bo . modifiable =vim . o . modifiable 4560vim . bo . ma =vim . bo . modifiable 4561 4562--- When on, the buffer is considered to be modified. This option is set 4563--- when: 4564--- 1. A change was made to the text since it was last written. Using the 4565--- `undo` command to go back to the original text will reset the 4566--- option. But undoing changes that were made before writing the 4567--- buffer will set the option again, since the text is different from 4568--- when it was written. 4569--- 2. 'fileformat' or 'fileencoding' is different from its original 4570--- value. The original value is set when the buffer is read or 4571--- written. A ":set nomodified" command also resets the original 4572--- values to the current values and the 'modified' option will be 4573--- reset. 4574--- Similarly for 'eol' and 'bomb'. 4575--- This option is not set when a change is made to the buffer as the 4576--- result of a BufNewFile, BufRead/BufReadPost, BufWritePost, 4577--- FileAppendPost or VimLeave autocommand event. See `gzip-example` for 4578--- an explanation. 4579--- 4580--- When 'buftype' is "prompt", 'modified' is not implicitly set when the 4581--- buffer is changed, but a user or plugin may explicitly set it. 4582--- 4583--- When 'buftype' is "nowrite" or "nofile", this option may be set, but 4584--- will be ignored. 4585--- 4586--- Note that the text may actually be the same, e.g. 'modified' is set 4587--- when using "rA" on an "A". 4588--- 4589--- @type boolean 4590vim . o . modified =false 4591vim . o . mod =vim . o . modified 4592vim . bo . modified =vim . o . modified 4593vim . bo . mod =vim . bo . modified 4594 4595--- When on, listings pause when the whole screen is filled. You will get 4596--- the `more-prompt`. When this option is off there are no pauses, the 4597--- listing continues until finished. 4598--- 4599--- @type boolean 4600vim . o . more =true 4601vim . go . more =vim . o . more 4602 4603--- Enables mouse support. For example, to enable the mouse in Normal mode 4604--- and Visual mode: 4605--- 4606--- ```vim 4607--- set mouse=nv 4608--- ``` 4609--- 4610--- To temporarily disable mouse support, hold the shift key while using 4611--- the mouse. 4612--- 4613--- Mouse support can be enabled for different modes: 4614--- n Normal mode 4615--- v Visual mode 4616--- i Insert mode 4617--- c Command-line mode 4618--- h all previous modes when editing a help file 4619--- a all previous modes 4620--- r for `hit-enter` and `more-prompt` prompt 4621--- 4622--- Left-click anywhere in a text buffer to place the cursor there. This 4623--- works with operators too, e.g. type `d` then left-click to delete text 4624--- from the current cursor position to the position where you clicked. 4625--- 4626--- Drag the `status-line` or vertical separator of a window to resize it. 4627--- 4628--- If enabled for "v" (Visual mode) then double-click selects word-wise, 4629--- triple-click makes it line-wise, and quadruple-click makes it 4630--- rectangular block-wise. 4631--- 4632--- For scrolling with a mouse wheel see `scroll-mouse-wheel`. 4633--- 4634--- Note: When enabling the mouse in a terminal, copy/paste will use the 4635--- "* register if possible. See also 'clipboard'. 4636--- 4637--- Related options: 4638--- 'mousefocus' window focus follows mouse pointer 4639--- 'mousemodel' what mouse button does which action 4640--- 'mousehide' hide mouse pointer while typing text 4641--- 'selectmode' whether to start Select mode or Visual mode 4642--- 4643--- @type string 4644vim . o . mouse ="nvi" 4645vim . go . mouse =vim . o . mouse 4646 4647--- The window that the mouse pointer is on is automatically activated. 4648--- When changing the window layout or window focus in another way, the 4649--- mouse pointer is moved to the window with keyboard focus. Off is the 4650--- default because it makes using the pull down menus a little goofy, as 4651--- a pointer transit may activate a window unintentionally. 4652--- 4653--- @type boolean 4654vim . o . mousefocus =false 4655vim . o . mousef =vim . o . mousefocus 4656vim . go . mousefocus =vim . o . mousefocus 4657vim . go . mousef =vim . go . mousefocus 4658 4659--- only in the GUI 4660--- When on, the mouse pointer is hidden when characters are typed. 4661--- The mouse pointer is restored when the mouse is moved. 4662--- 4663--- @type boolean 4664vim . o . mousehide =true 4665vim . o . mh =vim . o . mousehide 4666vim . go . mousehide =vim . o . mousehide 4667vim . go . mh =vim . go . mousehide 4668 4669--- Sets the model to use for the mouse. The name mostly specifies what 4670--- the right mouse button is used for: 4671--- extend Right mouse button extends a selection. This works 4672--- like in an xterm. 4673--- popup Right mouse button pops up a menu. The shifted left 4674--- mouse button extends a selection. This works like 4675--- with Microsoft Windows. 4676--- popup_setpos Like "popup", but the cursor will be moved to the 4677--- position where the mouse was clicked, and thus the 4678--- selected operation will act upon the clicked object. 4679--- If clicking inside a selection, that selection will 4680--- be acted upon, i.e. no cursor move. This implies of 4681--- course, that right clicking outside a selection will 4682--- end Visual mode. 4683--- 4684--- For a detailed description of 'mousemodel' behaviour see 4685--- `mouse-mode-table`. Overview of what button does what for each model: 4686--- 4687--- mouse extend popup(_setpos) ~ 4688--- left click place cursor place cursor 4689--- left drag start selection start selection 4690--- shift-left search word extend selection 4691--- right click extend selection popup menu (place cursor) 4692--- right drag extend selection - 4693--- middle click paste paste 4694--- 4695--- In the "popup" model the right mouse button produces a pop-up menu. 4696--- Nvim creates a default `popup-menu` but you can redefine it. 4697--- 4698--- Note that you can further refine the meaning of buttons with mappings. 4699--- See `mouse-overview`. But mappings are NOT used for modeless selection. 4700--- 4701--- Example: 4702--- 4703--- ```vim 4704--- map <S-LeftMouse> <RightMouse> 4705--- map <S-LeftDrag> <RightDrag> 4706--- map <S-LeftRelease> <RightRelease> 4707--- map <2-S-LeftMouse> <2-RightMouse> 4708--- map <2-S-LeftDrag> <2-RightDrag> 4709--- map <2-S-LeftRelease> <2-RightRelease> 4710--- map <3-S-LeftMouse> <3-RightMouse> 4711--- map <3-S-LeftDrag> <3-RightDrag> 4712--- map <3-S-LeftRelease> <3-RightRelease> 4713--- map <4-S-LeftMouse> <4-RightMouse> 4714--- map <4-S-LeftDrag> <4-RightDrag> 4715--- map <4-S-LeftRelease> <4-RightRelease> 4716--- ``` 4717--- 4718--- Mouse commands requiring the CTRL modifier can be simulated by typing 4719--- the "g" key before using the mouse: 4720--- "g<LeftMouse>" is "<C-LeftMouse> (jump to tag under mouse click) 4721--- "g<RightMouse>" is "<C-RightMouse> ("CTRL-T") 4722--- 4723--- @type 'extend'|'popup'|'popup_setpos' 4724vim . o . mousemodel ="popup_setpos" 4725vim . o . mousem =vim . o . mousemodel 4726vim . go . mousemodel =vim . o . mousemodel 4727vim . go . mousem =vim . go . mousemodel 4728 4729--- When on, mouse move events are delivered to the input queue and are 4730--- available for mapping `<MouseMove>`. The default, off, avoids the 4731--- mouse movement overhead except when needed. 4732--- Warning: Setting this option can make pending mappings to be aborted 4733--- when the mouse is moved. 4734--- 4735--- @type boolean 4736vim . o . mousemoveevent =false 4737vim . o . mousemev =vim . o . mousemoveevent 4738vim . go . mousemoveevent =vim . o . mousemoveevent 4739vim . go . mousemev =vim . go . mousemoveevent 4740 4741--- This option controls the number of lines / columns to scroll by when 4742--- scrolling with a mouse wheel (`scroll-mouse-wheel`). The option is 4743--- a comma-separated list. Each part consists of a direction and a count 4744--- as follows: 4745--- direction:count,direction:count 4746--- Direction is one of either "hor" or "ver". "hor" controls horizontal 4747--- scrolling and "ver" controls vertical scrolling. Count sets the amount 4748--- to scroll by for the given direction, it should be a non negative 4749--- integer. Each direction should be set at most once. If a direction 4750--- is omitted, a default value is used (6 for horizontal scrolling and 3 4751--- for vertical scrolling). You can disable mouse scrolling by using 4752--- a count of 0. 4753--- 4754--- Example: 4755--- 4756--- ```vim 4757--- set mousescroll=ver:5,hor:2 4758--- ``` 4759--- Will make Nvim scroll 5 lines at a time when scrolling vertically, and 4760--- scroll 2 columns at a time when scrolling horizontally. 4761--- 4762--- @type string 4763vim . o . mousescroll ="ver:3,hor:6" 4764vim . go . mousescroll =vim . o . mousescroll 4765 4766--- Defines the maximum time in msec between two mouse clicks for the 4767--- second click to be recognized as a multi click. 4768--- 4769--- @type integer 4770vim . o . mousetime =500 4771vim . o . mouset =vim . o . mousetime 4772vim . go . mousetime =vim . o . mousetime 4773vim . go . mouset =vim . go . mousetime 4774 4775--- This defines what bases Vim will consider for numbers when using the 4776--- CTRL-A and CTRL-X commands for adding to and subtracting from a number 4777--- respectively; see `CTRL-A` for more info on these commands. 4778--- alpha If included, single alphabetical characters will be 4779--- incremented or decremented. This is useful for a list with a 4780--- letter index a), b), etc. *octal-nrformats* 4781--- octal If included, numbers that start with a zero will be considered 4782--- to be octal. Example: Using CTRL-A on "007" results in "010". 4783--- hex If included, numbers starting with "0x" or "0X" will be 4784--- considered to be hexadecimal. Example: Using CTRL-X on 4785--- "0x100" results in "0x0ff". 4786--- bin If included, numbers starting with "0b" or "0B" will be 4787--- considered to be binary. Example: Using CTRL-X on 4788--- "0b1000" subtracts one, resulting in "0b0111". 4789--- unsigned If included, numbers are recognized as unsigned. Thus a 4790--- leading dash or negative sign won't be considered as part of 4791--- the number. Examples: 4792--- Using CTRL-X on "2020" in "9-2020" results in "9-2019" 4793--- (without "unsigned" it would become "9-2021"). 4794--- Using CTRL-A on "2020" in "9-2020" results in "9-2021" 4795--- (without "unsigned" it would become "9-2019"). 4796--- Using CTRL-X on "0" or CTRL-A on "18446744073709551615" 4797--- (2^64 - 1) has no effect, overflow is prevented. 4798--- blank If included, treat numbers as signed or unsigned based on 4799--- preceding whitespace. If a number with a leading dash has its 4800--- dash immediately preceded by a non-whitespace character (i.e., 4801--- not a tab or a " "), the negative sign won't be considered as 4802--- part of the number. For example: 4803--- Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15" 4804--- (without "blank" it would become "Carbon-13"). 4805--- Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9" 4806--- (because -8 is preceded by whitespace. If "unsigned" was 4807--- set, it would result in "Carbon -7"). 4808--- If this format is included, overflow is prevented as if 4809--- "unsigned" were set. If both this format and "unsigned" are 4810--- included, "unsigned" will take precedence. 4811--- 4812--- Numbers which simply begin with a digit in the range 1-9 are always 4813--- considered decimal. This also happens for numbers that are not 4814--- recognized as octal or hex. 4815--- 4816--- @type string 4817vim . o . nrformats ="bin,hex" 4818vim . o . nf =vim . o . nrformats 4819vim . bo . nrformats =vim . o . nrformats 4820vim . bo . nf =vim . bo . nrformats 4821 4822--- Print the line number in front of each line. When the 'n' option is 4823--- excluded from 'cpoptions' a wrapped line will not use the column of 4824--- line numbers. 4825--- Use the 'numberwidth' option to adjust the room for the line number. 4826--- When a long, wrapped line doesn't start with the first character, '-' 4827--- characters are put before the number. 4828--- For highlighting see `hl-LineNr`, `hl-CursorLineNr`, and the 4829--- `:sign-define` "numhl" argument. 4830--- *number_relativenumber* 4831--- The 'relativenumber' option changes the displayed number to be 4832--- relative to the cursor. Together with 'number' there are these 4833--- four combinations (cursor in line 3): 4834--- 4835--- 'nonu' 'nu' 'nonu' 'nu' 4836--- 'nornu' 'nornu' 'rnu' 'rnu' 4837--- ``` 4838--- |apple | 1 apple | 2 apple | 2 apple 4839--- |pear | 2 pear | 1 pear | 1 pear 4840--- |nobody | 3 nobody | 0 nobody |3 nobody 4841--- |there | 4 there | 1 there | 1 there 4842--- ``` 4843--- 4844--- 4845--- @type boolean 4846vim . o . number =false 4847vim . o . nu =vim . o . number 4848vim . wo . number =vim . o . number 4849vim . wo . nu =vim . wo . number 4850 4851--- Minimal number of columns to use for the line number. Only relevant 4852--- when the 'number' or 'relativenumber' option is set or printing lines 4853--- with a line number. Since one space is always between the number and 4854--- the text, there is one less character for the number itself. 4855--- The value is the minimum width. A bigger width is used when needed to 4856--- fit the highest line number in the buffer respectively the number of 4857--- rows in the window, depending on whether 'number' or 'relativenumber' 4858--- is set. Thus with the Vim default of 4 there is room for a line 4859--- number up to 999. When the buffer has 1000 lines five columns will be 4860--- used. The minimum value is 1, the maximum value is 20. 4861--- 4862--- @type integer 4863vim . o . numberwidth =4 4864vim . o . nuw =vim . o . numberwidth 4865vim . wo . numberwidth =vim . o . numberwidth 4866vim . wo . nuw =vim . wo . numberwidth 4867 4868--- This option specifies a function to be used for Insert mode omni 4869--- completion with CTRL-X CTRL-O. `i_CTRL-X_CTRL-O` 4870--- See `complete-functions` for an explanation of how the function is 4871--- invoked and what it should return. The value can be the name of a 4872--- function, a `lambda` or a `Funcref`. See `option-value-function` for 4873--- more information. 4874--- This option is usually set by a filetype plugin: 4875--- `:filetype-plugin-on` 4876--- 4877--- @type string|function 4878vim . o . omnifunc ="" 4879vim . o . ofu =vim . o . omnifunc 4880vim . bo . omnifunc =vim . o . omnifunc 4881vim . bo . ofu =vim . bo . omnifunc 4882 4883--- This option specifies a function to be called by the `g@` operator. 4884--- See `:map-operator` for more info and an example. The value can be 4885--- the name of a function, a `lambda` or a `Funcref`. See 4886--- `option-value-function` for more information. 4887--- 4888--- @type string|function 4889vim . o . operatorfunc ="" 4890vim . o . opfunc =vim . o . operatorfunc 4891vim . go . operatorfunc =vim . o . operatorfunc 4892vim . go . opfunc =vim . go . operatorfunc 4893 4894--- Path of `vim.pack-lockfile`. Must be set before the first usage of any 4895--- `vim.pack` function. Environment variables are expanded `:set_env`. 4896--- 4897--- @type string 4898vim . o . packlockfile ="$XDG_CONFIG_HOME/nvim/nvim-pack-lock.json" 4899vim . o . plf =vim . o . packlockfile 4900vim . go . packlockfile =vim . o . packlockfile 4901vim . go . plf =vim . go . packlockfile 4902 4903--- Directories used to find packages. 4904--- See `packages` and `packages-runtimepath`. 4905--- Environment variables are expanded `:set_env`. 4906--- 4907--- @type string 4908vim . o . packpath ="..." 4909vim . o . pp =vim . o . packpath 4910vim . go . packpath =vim . o . packpath 4911vim . go . pp =vim . go . packpath 4912 4913--- Specifies the nroff macros that separate paragraphs. These are pairs 4914--- of two letters (see `object-motions`). 4915--- 4916--- @type string 4917vim . o . paragraphs ="IPLPPPQPP TPHPLIPpLpItpplpipbp" 4918vim . o . para =vim . o . paragraphs 4919vim . go . paragraphs =vim . o . paragraphs 4920vim . go . para =vim . go . paragraphs 4921 4922--- Expression which is evaluated to apply a patch to a file and generate 4923--- the resulting new version of the file. See `diff-patchexpr`. 4924--- 4925--- @type string|function 4926vim . o . patchexpr ="" 4927vim . o . pex =vim . o . patchexpr 4928vim . go . patchexpr =vim . o . patchexpr 4929vim . go . pex =vim . go . patchexpr 4930 4931--- When non-empty the oldest version of a file is kept. This can be used 4932--- to keep the original version of a file if you are changing files in a 4933--- source distribution. Only the first time that a file is written a 4934--- copy of the original file will be kept. The name of the copy is the 4935--- name of the original file with the string in the 'patchmode' option 4936--- appended. This option should start with a dot. Use a string like 4937--- ".orig" or ".org". 'backupdir' must not be empty for this to work 4938--- (Detail: The backup file is renamed to the patchmode file after the 4939--- new file has been successfully written, that's why it must be possible 4940--- to write a backup file). If there was no file to be backed up, an 4941--- empty file is created. 4942--- When the 'backupskip' pattern matches, a patchmode file is not made. 4943--- Using 'patchmode' for compressed files appends the extension at the 4944--- end (e.g., "file.gz.orig"), thus the resulting name isn't always 4945--- recognized as a compressed file. 4946--- Only normal file name characters can be used, `/\*?[|<>` are illegal. 4947--- 4948--- @type string 4949vim . o . patchmode ="" 4950vim . o . pm =vim . o . patchmode 4951vim . go . patchmode =vim . o . patchmode 4952vim . go . pm =vim . go . patchmode 4953 4954--- This is a list of directories which will be searched when using the 4955--- `gf`, [f, ]f, ^Wf, `:find`, `:sfind`, `:tabfind` and other commands, 4956--- provided that the file being searched for has a relative path (not 4957--- starting with "/", "./" or "../"). The directories in the 'path' 4958--- option may be relative or absolute. 4959--- - Use commas to separate directory names: 4960--- 4961--- ```vim 4962--- set path=.,/usr/local/include,/usr/include 4963--- ``` 4964--- - Spaces can also be used to separate directory names. To have a 4965--- space in a directory name, precede it with an extra backslash, and 4966--- escape the space: 4967--- 4968--- ```vim 4969--- set path=.,/dir/with\\\ space 4970--- ``` 4971--- - To include a comma in a directory name precede it with an extra 4972--- backslash: 4973--- 4974--- ```vim 4975--- set path=.,/dir/with\\,comma 4976--- ``` 4977--- - To search relative to the directory of the current file, use: 4978--- 4979--- ```vim 4980--- set path=. 4981--- ``` 4982--- - To search in the current directory use an empty string between two 4983--- commas: 4984--- 4985--- ```vim 4986--- set path=,, 4987--- ``` 4988--- - A directory name may end in a ':' or '/'. 4989--- - Environment variables are expanded `:set_env`. 4990--- - When using `netrw` URLs can be used. For example, adding 4991--- "https://www.vim.org" will make ":find index.html" work. 4992--- - Search upwards and downwards in a directory tree using "*", "**" and 4993--- ";". See `file-searching` for info and syntax. 4994--- - Careful with '\' characters, type two to get one in the option: 4995--- 4996--- ```vim 4997--- set path=.,c:\\include 4998--- ``` 4999--- Or just use '/' instead: 5000--- 5001--- ```vim 5002--- set path=.,c:/include 5003--- ``` 5004--- Don't forget "." or files won't even be found in the same directory as 5005--- the file! 5006--- The maximum length is limited. How much depends on the system, mostly 5007--- it is something like 256 or 1024 characters. 5008--- You can check if all the include files are found, using the value of 5009--- 'path', see `:checkpath`. 5010--- The use of `:set+=` and `:set-=` is preferred when adding or removing 5011--- directories from the list. This avoids problems when a future version 5012--- uses another default. To remove the current directory use: 5013--- 5014--- ```vim 5015--- set path-= 5016--- ``` 5017--- To add the current directory use: 5018--- 5019--- ```vim 5020--- set path+= 5021--- ``` 5022--- To use an environment variable, you probably need to replace the 5023--- separator. Here is an example to append $INCL, in which directory 5024--- names are separated with a semicolon: 5025--- 5026--- ```vim 5027--- let &path = &path .. "," .. substitute($INCL, ';', ',', 'g') 5028--- ``` 5029--- Replace the ';' with a ':' or whatever separator is used. Note that 5030--- this doesn't work when $INCL contains a comma or white space. 5031--- 5032--- @type string 5033vim . o . path =".,," 5034vim . o . pa =vim . o . path 5035vim . bo . path =vim . o . path 5036vim . bo . pa =vim . bo . path 5037vim . go . path =vim . o . path 5038vim . go . pa =vim . go . path 5039 5040--- When changing the indent of the current line, preserve as much of the 5041--- indent structure as possible. Normally the indent is replaced by a 5042--- series of tabs followed by spaces as required (unless 'expandtab' is 5043--- enabled, in which case only spaces are used). Enabling this option 5044--- means the indent will preserve as many existing characters as possible 5045--- for indenting, and only add additional tabs or spaces as required. 5046--- 'expandtab' does not apply to the preserved white space, a Tab remains 5047--- a Tab. 5048--- NOTE: When using ">>" multiple times the resulting indent is a mix of 5049--- tabs and spaces. You might not like this. 5050--- Also see 'copyindent'. 5051--- Use `:retab` to clean up white space. 5052--- 5053--- @type boolean 5054vim . o . preserveindent =false 5055vim . o . pi =vim . o . preserveindent 5056vim . bo . preserveindent =vim . o . preserveindent 5057vim . bo . pi =vim . bo . preserveindent 5058 5059--- Default height for a preview window. Used for `:ptag` and associated 5060--- commands. Used for `CTRL-W_}` when no count is given. 5061--- 5062--- @type integer 5063vim . o . previewheight =12 5064vim . o . pvh =vim . o . previewheight 5065vim . go . previewheight =vim . o . previewheight 5066vim . go . pvh =vim . go . previewheight 5067 5068--- When not empty a floating window is used for commands that would open 5069--- a preview window. See `preview-popup`. 5070--- The option is a comma-separated list of these items: 5071--- height Height of the window. When omitted, it is derived from 5072--- the content. 5073--- width Width of the window. When omitted, it is derived from 5074--- the content. 5075--- border One of the 'winborder' styles. When omitted, 'winborder' 5076--- is used. A custom (comma separated) border cannot be 5077--- given here, use 'winborder'. 5078--- The window background uses `hl-NormalFloat` and the border uses 5079--- `hl-FloatBorder`. 5080--- Not used for the insert completion info, add "popup" to 'completeopt' 5081--- for that. 5082--- 5083--- Example: 5084--- 5085--- ```vim 5086--- set previewpopup=height:10,width:60,border:rounded 5087--- ``` 5088--- 5089--- 5090--- @type string 5091vim . o . previewpopup ="" 5092vim . o . pvp =vim . o . previewpopup 5093vim . go . previewpopup =vim . o . previewpopup 5094vim . go . pvp =vim . go . previewpopup 5095 5096--- Identifies the preview window. Only one window can have this option 5097--- set. It's normally not set directly, but by using one of the commands 5098--- `:ptag`, `:pedit`, etc. 5099--- 5100--- @type boolean 5101vim . o . previewwindow =false 5102vim . o . pvw =vim . o . previewwindow 5103vim . wo . previewwindow =vim . o . previewwindow 5104vim . wo . pvw =vim . wo . previewwindow 5105 5106--- Enables pseudo-transparency for the `popup-menu`. Valid values are in 5107--- the range of 0 for fully opaque popupmenu (disabled) to 100 for fully 5108--- transparent background. Values between 0-30 are typically most useful. 5109--- 5110--- It is possible to override the level for individual highlights within 5111--- the popupmenu using `highlight-blend`. For instance, to enable 5112--- transparency but force the current selected element to be fully opaque: 5113--- 5114--- ```vim 5115--- 5116--- set pumblend=15 5117--- hi PmenuSel blend=0 5118--- ``` 5119--- 5120--- UI-dependent. Works best with RGB colors. 'termguicolors' 5121--- 5122--- @type integer 5123vim . o . pumblend =0 5124vim . o . pb =vim . o . pumblend 5125vim . go . pumblend =vim . o . pumblend 5126vim . go . pb =vim . go . pumblend 5127 5128--- Defines the default border style of popupmenu windows. See 'winborder' for 5129--- valid values. `hl-PmenuBorder` is used for highlighting the border, and when 5130--- style is "shadow" the `hl-PmenuShadow` and `hl-PmenuShadowThrough` groups are used. 5131--- 5132--- This option also applies to mouse popup menus when 'mousemodel' is set to 5133--- "popup" or "popup_setpos", which will display borders using the same style. 5134--- 5135--- @type string 5136vim . o . pumborder ="" 5137vim . go . pumborder =vim . o . pumborder 5138 5139--- Maximum number of items to show in the popup menu 5140--- (`ins-completion-menu`). Zero means "use available screen space". 5141--- 5142--- @type integer 5143vim . o . pumheight =0 5144vim . o . ph =vim . o . pumheight 5145vim . go . pumheight =vim . o . pumheight 5146vim . go . ph =vim . go . pumheight 5147 5148--- Maximum width for the popup menu (`ins-completion-menu`). When zero, 5149--- there is no maximum width limit, otherwise the popup menu will never be 5150--- wider than this value. Truncated text will be indicated by "trunc" 5151--- value of 'fillchars' option. 5152--- 5153--- This option takes precedence over 'pumwidth'. 5154--- 5155--- @type integer 5156vim . o . pummaxwidth =0 5157vim . o . pmw =vim . o . pummaxwidth 5158vim . go . pummaxwidth =vim . o . pummaxwidth 5159vim . go . pmw =vim . go . pummaxwidth 5160 5161--- Minimum width for the popup menu (`ins-completion-menu`). If the 5162--- cursor column + 'pumwidth' exceeds screen width, the popup menu is 5163--- nudged to fit on the screen. 5164--- 5165--- @type integer 5166vim . o . pumwidth =15 5167vim . o . pw =vim . o . pumwidth 5168vim . go . pumwidth =vim . o . pumwidth 5169vim . go . pw =vim . go . pumwidth 5170 5171--- Specifies the python version used for pyx* functions and commands 5172--- `python_x`. As only Python 3 is supported, this always has the value 5173--- `3`. Setting any other value is an error. 5174--- 5175--- @type integer 5176vim . o . pyxversion =3 5177vim . o . pyx =vim . o . pyxversion 5178vim . go . pyxversion =vim . o . pyxversion 5179vim . go . pyx =vim . go . pyxversion 5180 5181--- This option specifies a function to be used to get the text to display 5182--- in the quickfix and location list windows. This can be used to 5183--- customize the information displayed in the quickfix or location window 5184--- for each entry in the corresponding quickfix or location list. See 5185--- `quickfix-window-function` for an explanation of how to write the 5186--- function and an example. The value can be the name of a function, a 5187--- `lambda` or a `Funcref`. See `option-value-function` for more 5188--- information. 5189--- 5190--- It is not allowed to change text or jump to another window while 5191--- evaluating 'qftf' `textlock`. 5192--- 5193--- @type string|function 5194vim . o . quickfixtextfunc ="" 5195vim . o . qftf =vim . o . quickfixtextfunc 5196vim . go . quickfixtextfunc =vim . o . quickfixtextfunc 5197vim . go . qftf =vim . go . quickfixtextfunc 5198 5199--- The characters that are used to escape quotes in a string. Used for 5200--- objects like a', a" and a` `a'`. 5201--- When one of the characters in this option is found inside a string, 5202--- the following character will be skipped. The default value makes the 5203--- text "foo\"bar\\" considered to be one string. 5204--- 5205--- @type string 5206vim . o . quoteescape ="\\" 5207vim . o . qe =vim . o . quoteescape 5208vim . bo . quoteescape =vim . o . quoteescape 5209vim . bo . qe =vim . bo . quoteescape 5210 5211--- If on, writes fail unless you use a '!'. Protects you from 5212--- accidentally overwriting a file. Default on when Vim is started 5213--- in read-only mode ("vim -R") or when the executable is called "view". 5214--- When using ":w!" the 'readonly' option is reset for the current 5215--- buffer, unless the 'Z' flag is in 'cpoptions'. 5216--- When using the ":view" command the 'readonly' option is set for the 5217--- newly edited buffer. 5218--- See 'modifiable' for disallowing changes to the buffer. 5219--- 5220--- @type boolean 5221vim . o . readonly =false 5222vim . o . ro =vim . o . readonly 5223vim . bo . readonly =vim . o . readonly 5224vim . bo . ro =vim . bo . readonly 5225 5226--- Flags to change the way redrawing works, for debugging purposes. 5227--- Most useful with 'writedelay' set to some reasonable value. 5228--- Supports the following flags: 5229--- compositor Indicate each redraw event handled by the compositor 5230--- by briefly flashing the redrawn regions in colors 5231--- indicating the redraw type. These are the highlight 5232--- groups used (and their default colors): 5233--- RedrawDebugNormal gui=reverse normal redraw passed through 5234--- RedrawDebugClear guibg=Yellow clear event passed through 5235--- RedrawDebugComposed guibg=Green redraw event modified by the 5236--- compositor (due to 5237--- overlapping grids, etc) 5238--- RedrawDebugRecompose guibg=Red redraw generated by the 5239--- compositor itself, due to a 5240--- grid being moved or deleted. 5241--- line introduce a delay after each line drawn on the screen. 5242--- When using the TUI or another single-grid UI, "compositor" 5243--- gives more information and should be preferred (every 5244--- line is processed as a separate event by the compositor) 5245--- flush introduce a delay after each "flush" event. 5246--- nothrottle Turn off throttling of the message grid. This is an 5247--- optimization that joins many small scrolls to one 5248--- larger scroll when drawing the message area (with 5249--- 'display' msgsep flag active). 5250--- invalid Enable stricter checking (abort) of inconsistencies 5251--- of the internal screen state. This is mostly 5252--- useful when running nvim inside a debugger (and 5253--- the test suite). 5254--- nodelta Send all internally redrawn cells to the UI, even if 5255--- they are unchanged from the already displayed state. 5256--- 5257--- @type string 5258vim . o . redrawdebug ="" 5259vim . o . rdb =vim . o . redrawdebug 5260vim . go . redrawdebug =vim . o . redrawdebug 5261vim . go . rdb =vim . go . redrawdebug 5262 5263--- Time in milliseconds for redrawing the display. Applies to 5264--- 'hlsearch', 'inccommand', `:match` highlighting, syntax highlighting, 5265--- and async `LanguageTree:parse()`. 5266--- When redrawing takes more than this many milliseconds no further 5267--- matches will be highlighted. 5268--- For syntax highlighting the time applies per window. When over the 5269--- limit syntax highlighting is disabled until `CTRL-L` is used. 5270--- This is used to avoid that Vim hangs when using a very complicated 5271--- pattern. 5272--- 5273--- @type integer 5274vim . o . redrawtime =2000 5275vim . o . rdt =vim . o . redrawtime 5276vim . go . redrawtime =vim . o . redrawtime 5277vim . go . rdt =vim . go . redrawtime 5278 5279--- This selects the default regexp engine. `two-engines` 5280--- The possible values are: 5281--- 0 automatic selection 5282--- 1 old engine 5283--- 2 NFA engine 5284--- Note that when using the NFA engine and the pattern contains something 5285--- that is not supported the pattern will not match. This is only useful 5286--- for debugging the regexp engine. 5287--- Using automatic selection enables Vim to switch the engine, if the 5288--- default engine becomes too costly. E.g., when the NFA engine uses too 5289--- many states. This should prevent Vim from hanging on a combination of 5290--- a complex pattern with long text. 5291--- 5292--- @type integer 5293vim . o . regexpengine =0 5294vim . o . re =vim . o . regexpengine 5295vim . go . regexpengine =vim . o . regexpengine 5296vim . go . re =vim . go . regexpengine 5297 5298--- Show the line number relative to the line with the cursor in front of 5299--- each line. Relative line numbers help you use the `count` you can 5300--- precede some vertical motion commands (e.g. j k + -) with, without 5301--- having to calculate it yourself. Especially useful in combination 5302--- with other commands (e.g. y d c < > gq gw =). 5303--- When the 'n' option is excluded from 'cpoptions' a wrapped line will 5304--- not use the column of line numbers. 5305--- The 'numberwidth' option can be used to set the room used for the line 5306--- number. 5307--- When a long, wrapped line doesn't start with the first character, '-' 5308--- characters are put before the number. 5309--- See `hl-LineNr` and `hl-CursorLineNr` for the highlighting used for 5310--- the number. 5311--- 5312--- The number in front of the cursor line also depends on the value of 5313--- 'number', see `number_relativenumber` for all combinations of the two 5314--- options. 5315--- 5316--- @type boolean 5317vim . o . relativenumber =false 5318vim . o . rnu =vim . o . relativenumber 5319vim . wo . relativenumber =vim . o . relativenumber 5320vim . wo . rnu =vim . wo . relativenumber 5321 5322--- Threshold for reporting number of lines changed. When the number of 5323--- changed lines is more than 'report' a message will be given for most 5324--- ":" commands. If you want it always, set 'report' to 0. 5325--- For the ":substitute" command the number of substitutions is used 5326--- instead of the number of lines. 5327--- 5328--- @type integer 5329vim . o . report =2 5330vim . go . report =vim . o . report 5331 5332--- Inserting characters in Insert mode will work backwards. See "typing 5333--- backwards" `ins-reverse`. This option can be toggled with the CTRL-_ 5334--- command in Insert mode, when 'allowrevins' is set. 5335--- 5336--- @type boolean 5337vim . o . revins =false 5338vim . o . ri =vim . o . revins 5339vim . go . revins =vim . o . revins 5340vim . go . ri =vim . go . revins 5341 5342--- When on, display orientation becomes right-to-left, i.e., characters 5343--- that are stored in the file appear from the right to the left. 5344--- Using this option, it is possible to edit files for languages that 5345--- are written from the right to the left such as Hebrew and Arabic. 5346--- This option is per window, so it is possible to edit mixed files 5347--- simultaneously, or to view the same file in both ways (this is 5348--- useful whenever you have a mixed text file with both right-to-left 5349--- and left-to-right strings so that both sets are displayed properly 5350--- in different windows). Also see `rileft.txt`. 5351--- 5352--- @type boolean 5353vim . o . rightleft =false 5354vim . o . rl =vim . o . rightleft 5355vim . wo . rightleft =vim . o . rightleft 5356vim . wo . rl =vim . wo . rightleft 5357 5358--- Each word in this option enables the command line editing to work in 5359--- right-to-left mode for a group of commands: 5360--- 5361--- search "/" and "?" commands 5362--- 5363--- This is useful for languages such as Hebrew, Arabic and Farsi. 5364--- The 'rightleft' option must be set for 'rightleftcmd' to take effect. 5365--- 5366--- @type string 5367vim . o . rightleftcmd ="search" 5368vim . o . rlc =vim . o . rightleftcmd 5369vim . wo . rightleftcmd =vim . o . rightleftcmd 5370vim . wo . rlc =vim . wo . rightleftcmd 5371 5372--- When on, show some buffer information in the ruler. Each window has 5373--- its own ruler. The ruler of the active window is shown in the last 5374--- line of the screen, unless 'cmdheight' is zero, or the window has a 5375--- status line, which (by default) contains the window's ruler. 5376--- 5377--- 'rulerformat' determines the contents of the ruler. 5378--- By default, the line and column number of the current cursor position 5379--- are shown, separated by a comma. 5380--- If the number of characters displayed is different from the number of 5381--- bytes in the text (e.g., for a TAB or a multibyte character), both 5382--- the text column (byte number) and the screen column are shown, 5383--- separated with a dash. 5384--- For an empty line "0-1" is shown. 5385--- For an empty buffer the line number will also be zero: "0,0-1". 5386--- Finally, the relative position of the displayed text in the file is 5387--- shown on the far right: 5388--- Top first line is visible 5389--- Bot last line is visible 5390--- All first and last line are visible 5391--- 45% relative position in the file 5392--- 5393--- If you don't want to see the ruler all the time but want to know where 5394--- you are, use "g CTRL-G" `g_CTRL-G`. 5395--- When 'ruler' is on, the output of `CTRL-G` doen't contain the current 5396--- line number of the cursor position. 5397--- 5398--- @type boolean 5399vim . o . ruler =true 5400vim . o . ru =vim . o . ruler 5401vim . go . ruler =vim . o . ruler 5402vim . go . ru =vim . go . ruler 5403 5404--- This option determines the content of the ruler string, as displayed 5405--- for the 'ruler' option. 5406--- The format of this option is like that of 'statusline'. 5407--- Setting to empty (`:set rulerformat=`) sets the value to the default. 5408--- This option cannot be set in a modeline when 'modelineexpr' is off. 5409--- 5410--- When 'ruler' is on, the default 'statusline' includes 'rulerformat'. 5411--- 5412--- The default ruler width is 18 characters, which is configured with 5413--- what looks like an item group. But there are some differences in this 5414--- particular case. Most notably, the width is fixed and not a minimum, 5415--- and the ruler is left-aligned, whereas the alignment of item groups is 5416--- configurable and right-aligned by default. 5417--- 5418--- When `ui2` is enabled, the ruler no longer has a fixed width and the 5419--- item group syntax has no special meaning for 'rulerformat'. 5420--- 5421--- @type string 5422vim . o . rulerformat ="%18(%l,%c%V%= %P%)%<" 5423vim . o . ruf =vim . o . rulerformat 5424vim . go . rulerformat =vim . o . rulerformat 5425vim . go . ruf =vim . go . rulerformat 5426 5427--- List of directories to be searched for these runtime files: 5428--- filetype.lua filetypes `new-filetype` 5429--- autoload/ automatically loaded scripts `autoload-functions` 5430--- colors/ color scheme files `:colorscheme` 5431--- compiler/ compiler files `:compiler` 5432--- doc/ documentation `write-local-help` 5433--- ftplugin/ filetype plugins `write-filetype-plugin` 5434--- indent/ indent scripts `indent-expression` 5435--- keymap/ key mapping files `mbyte-keymap` 5436--- lang/ menu translations `:menutrans` 5437--- lsp/ LSP client configurations `lsp-config` 5438--- lua/ `Lua` plugins 5439--- menu.vim GUI menus `menu.vim` 5440--- pack/ packages `:packadd` 5441--- parser/ `treesitter` syntax parsers 5442--- plugin/ plugin scripts `write-plugin` 5443--- queries/ `treesitter` queries 5444--- rplugin/ `remote-plugin` scripts 5445--- spell/ spell checking files `spell` 5446--- syntax/ syntax files `mysyntaxfile` 5447--- tutor/ tutorial files `:Tutor` 5448--- 5449--- And any other file searched for with the `:runtime` command. 5450--- 5451--- Defaults are setup to search these locations: 5452--- 1. Your home directory, for personal preferences. 5453--- Given by `stdpath("config")`. `$XDG_CONFIG_HOME` 5454--- 2. Directories which must contain configuration files according to 5455--- `xdg` ($XDG_CONFIG_DIRS, defaults to /etc/xdg). This also contains 5456--- preferences from system administrator. 5457--- 3. Data home directory, for plugins installed by user. 5458--- Given by `stdpath("data")/site`. `$XDG_DATA_HOME` 5459--- 4. nvim/site subdirectories for each directory in $XDG_DATA_DIRS. 5460--- This is for plugins which were installed by system administrator, 5461--- but are not part of the Nvim distribution. XDG_DATA_DIRS defaults 5462--- to /usr/local/share/:/usr/share/, so system administrators are 5463--- expected to install site plugins to /usr/share/nvim/site. 5464--- 5. $VIMRUNTIME, for files distributed with Nvim. 5465--- *after-directory* 5466--- 6, 7, 8, 9. In after/ subdirectories of 1, 2, 3 and 4, with reverse 5467--- ordering. This is for preferences to overrule or add to the 5468--- distributed defaults or system-wide settings (rarely needed). 5469--- 5470--- *packages-runtimepath* 5471--- "start" packages will also be searched (`runtime-search-path`) for 5472--- runtime files after these, though such packages are not explicitly 5473--- reported in &runtimepath. But "opt" packages are explicitly added to 5474--- &runtimepath by `:packadd`. 5475--- 5476--- Note that, unlike 'path', no wildcards like "**" are allowed. Normal 5477--- wildcards are allowed, but can significantly slow down searching for 5478--- runtime files. For speed, use as few items as possible and avoid 5479--- wildcards. 5480--- See `:runtime`. 5481--- Example: 5482--- 5483--- ```vim 5484--- set runtimepath=~/vimruntime,/mygroup/vim,$VIMRUNTIME 5485--- ``` 5486--- This will use the directory "~/vimruntime" first (containing your 5487--- personal Nvim runtime files), then "/mygroup/vim", and finally 5488--- "$VIMRUNTIME" (the default runtime files). 5489--- You can put a directory before $VIMRUNTIME to find files which replace 5490--- distributed runtime files. You can put a directory after $VIMRUNTIME 5491--- to find files which add to distributed runtime files. 5492--- 5493--- With `--clean` the home directory entries are not included. 5494--- Environment variables are expanded `:set_env`. 5495--- 5496--- @type string 5497vim . o . runtimepath ="..." 5498vim . o . rtp =vim . o . runtimepath 5499vim . go . runtimepath =vim . o . runtimepath 5500vim . go . rtp =vim . go . runtimepath 5501 5502--- Number of lines to scroll with CTRL-U and CTRL-D commands. Will be 5503--- set to half the number of lines in the window when the window size 5504--- changes. This may happen when enabling the `status-line` or 5505--- 'tabline' option after setting the 'scroll' option. 5506--- If you give a count to the CTRL-U or CTRL-D command it will 5507--- be used as the new value for 'scroll'. Reset to half the window 5508--- height with ":set scroll=0". 5509--- 5510--- @type integer 5511vim . o . scroll =0 5512vim . o . scr =vim . o . scroll 5513vim . wo . scroll =vim . o . scroll 5514vim . wo . scr =vim . wo . scroll 5515 5516--- Maximum number of lines kept beyond the visible screen. Lines at the 5517--- top are deleted if new lines exceed this limit. 5518--- Minimum is 1, maximum is 1000000. 5519--- Only in `terminal` and `prompt-buffer` buffers. 5520--- 5521--- Note: Lines that are not visible and kept in terminal scrollback are not 5522--- reflown when the terminal buffer is resized horizontally. 5523--- 5524--- @type integer 5525vim . o . scrollback =- 1 5526vim . o . scbk =vim . o . scrollback 5527vim . bo . scrollback =vim . o . scrollback 5528vim . bo . scbk =vim . bo . scrollback 5529 5530--- Enables synchronized scrolling (in all windows with this option set). 5531--- Useful for comparing two versions of a file, see 'diff'. 5532--- Behavior is controlled by 'scrollopt'. See `scroll-binding`. 5533--- 5534--- This option is (usually) reset when splitting a window to edit another 5535--- file: ":split | edit file" results in two windows with scroll-binding, 5536--- but ":split file" does not. 5537--- 5538--- Note: Consider calling `:syncbind` on `WinResized`, `WinEnter` events 5539--- (scoped to relevant buffers). 5540--- 5541--- @type boolean 5542vim . o . scrollbind =false 5543vim . o . scb =vim . o . scrollbind 5544vim . wo . scrollbind =vim . o . scrollbind 5545vim . wo . scb =vim . wo . scrollbind 5546 5547--- Minimal number of lines to scroll when the cursor gets off the 5548--- screen (e.g., with "j"). Not used for scroll commands (e.g., CTRL-E, 5549--- CTRL-D). Useful if your terminal scrolls very slowly. 5550--- When set to a negative number from -1 to -100 this is used as the 5551--- percentage of the window height. Thus -50 scrolls half the window 5552--- height. 5553--- 5554--- @type integer 5555vim . o . scrolljump =1 5556vim . o . sj =vim . o . scrolljump 5557vim . go . scrolljump =vim . o . scrolljump 5558vim . go . sj =vim . go . scrolljump 5559 5560--- Minimal number of screen lines to keep above and below the cursor. 5561--- This will make some context visible around where you are working. If 5562--- you set it to a very large value (999) the cursor line will always be 5563--- in the middle of the window (except at the start or end of the file, 5564--- see 'scrolloffpad', or when long lines wrap). 5565--- After using the local value, go back the global value with one of 5566--- these two: 5567--- 5568--- ```vim 5569--- setlocal scrolloff< 5570--- setlocal scrolloff=-1 5571--- ``` 5572--- For scrolling horizontally see 'sidescrolloff'. 5573--- 5574--- @type integer 5575vim . o . scrolloff =0 5576vim . o . so =vim . o . scrolloff 5577vim . wo . scrolloff =vim . o . scrolloff 5578vim . wo . so =vim . wo . scrolloff 5579vim . go . scrolloff =vim . o . scrolloff 5580vim . go . so =vim . go . scrolloff 5581 5582--- When 'scrolloff' and 'scrolloffpad' are greater than zero, allow 5583--- the cursor to remain centered when at the end of the file. 5584--- Normally, 'scrolloff' will not keep the cursor centered at the 5585--- end of the file. 5586--- 5587--- A value of 0 disables this feature. Any value above 0 enables it. 5588--- For a window-local value, -1 means to use the global value. 5589--- Values below -1 are invalid. 5590--- 5591--- Example: 5592--- 5593--- ```vim 5594--- :set scrolloff=99 scrolloffpad=1 5595--- ``` 5596--- 5597--- After using the local value, go back the global value with one of 5598--- these two: 5599--- 5600--- ```vim 5601--- setlocal scrolloffpad< 5602--- setlocal scrolloffpad=-1 5603--- ``` 5604--- 5605--- 5606--- @type integer 5607vim . o . scrolloffpad =0 5608vim . o . sop =vim . o . scrolloffpad 5609vim . wo . scrolloffpad =vim . o . scrolloffpad 5610vim . wo . sop =vim . wo . scrolloffpad 5611vim . go . scrolloffpad =vim . o . scrolloffpad 5612vim . go . sop =vim . go . scrolloffpad 5613 5614--- This is a comma-separated list of words that specifies how 5615--- 'scrollbind' windows should behave. 'sbo' stands for ScrollBind 5616--- Options. 5617--- The following words are available: 5618--- ver Bind vertical scrolling for 'scrollbind' windows 5619--- hor Bind horizontal scrolling for 'scrollbind' windows 5620--- jump Applies to the offset between two windows for vertical 5621--- scrolling. This offset is the difference in the first 5622--- displayed line of the bound windows. When moving 5623--- around in a window, another 'scrollbind' window may 5624--- reach a position before the start or after the end of 5625--- the buffer. The offset is not changed though, when 5626--- moving back the 'scrollbind' window will try to scroll 5627--- to the desired position when possible. 5628--- When now making that window the current one, two 5629--- things can be done with the relative offset: 5630--- 1. When "jump" is not included, the relative offset is 5631--- adjusted for the scroll position in the new current 5632--- window. When going back to the other window, the 5633--- new relative offset will be used. 5634--- 2. When "jump" is included, the other windows are 5635--- scrolled to keep the same relative offset. When 5636--- going back to the other window, it still uses the 5637--- same relative offset. 5638--- Also see `scroll-binding`. 5639--- When 'diff' mode is active there always is vertical scroll binding, 5640--- even when "ver" isn't there. 5641--- 5642--- @type string 5643vim . o . scrollopt ="ver,jump" 5644vim . o . sbo =vim . o . scrollopt 5645vim . go . scrollopt =vim . o . scrollopt 5646vim . go . sbo =vim . go . scrollopt 5647 5648--- Specifies the nroff macros that separate sections. These are pairs of 5649--- two letters (See `object-motions`). The default makes a section start 5650--- at the nroff macros ".SH", ".NH", ".H", ".HU", ".nh" and ".sh". 5651--- 5652--- @type string 5653vim . o . sections ="SHNHH HUnhsh" 5654vim . o . sect =vim . o . sections 5655vim . go . sections =vim . o . sections 5656vim . go . sect =vim . go . sections 5657 5658--- This option defines the behavior of the selection. It is only used 5659--- in Visual and Select mode. 5660--- Possible values: 5661--- value past line inclusive ~ 5662--- old no yes 5663--- inclusive yes yes 5664--- exclusive yes no 5665--- "past line" means that the cursor is allowed to be positioned one 5666--- character past the line. 5667--- "inclusive" means that the last character of the selection is included 5668--- in an operation. For example, when "x" is used to delete the 5669--- selection. 5670--- When "old" is used and 'virtualedit' allows the cursor to move past 5671--- the end of line the line break still isn't included. 5672--- When "exclusive" is used, cursor position in visual mode will be 5673--- adjusted for inclusive motions `inclusive-motion-selection-exclusive`. 5674--- 5675--- Note: 5676--- - When "exclusive" is used and selecting from the end backwards, you 5677--- cannot include the last character of a line, when starting in Normal 5678--- mode and 'virtualedit' empty. 5679--- - when "exclusive" is used with a single character visual selection, 5680--- Vim will behave as if the 'selection' is inclusive (in other words, 5681--- you cannot visually select an empty region). 5682--- 5683--- @type 'inclusive'|'exclusive'|'old' 5684vim . o . selection ="inclusive" 5685vim . o . sel =vim . o . selection 5686vim . go . selection =vim . o . selection 5687vim . go . sel =vim . go . selection 5688 5689--- This is a comma-separated list of words, which specifies when to start 5690--- Select mode instead of Visual mode, when a selection is started. 5691--- Possible values: 5692--- mouse when using the mouse 5693--- key when using shifted special keys 5694--- cmd when using "v", "V" or CTRL-V 5695--- See `Select-mode`. 5696--- 5697--- @type string 5698vim . o . selectmode ="" 5699vim . o . slm =vim . o . selectmode 5700vim . go . selectmode =vim . o . selectmode 5701vim . go . slm =vim . go . selectmode 5702 5703--- Changes the effect of the `:mksession` command. It is a comma- 5704--- separated list of words. Each word enables saving and restoring 5705--- something: 5706--- word save and restore ~ 5707--- blank empty windows 5708--- buffers hidden and unloaded buffers, not just those in windows 5709--- curdir the current directory 5710--- folds manually created folds, opened/closed folds and local 5711--- fold options 5712--- globals global variables that start with an uppercase letter 5713--- and contain at least one lowercase letter. Only 5714--- String and Number types are stored. 5715--- help the help window 5716--- localoptions options and mappings local to a window or buffer (not 5717--- global values for local options) 5718--- options all options and mappings (also global values for local 5719--- options), except Lua functions `option-value-function`. 5720--- skiprtp exclude 'runtimepath' and 'packpath' from the options 5721--- resize size of the Vim window: 'lines' and 'columns' 5722--- sesdir the directory in which the session file is located 5723--- will become the current directory (useful with 5724--- projects accessed over a network from different 5725--- systems) 5726--- tabpages all tabpages; without this only the current tabpage 5727--- is restored, so that you can make a session for each 5728--- tabpage separately 5729--- terminal include terminal windows where the command can be 5730--- restored 5731--- winpos position of the whole Vim window 5732--- winsize window sizes 5733--- slash `deprecated` Always enabled. Uses "/" in filenames. 5734--- unix `deprecated` Always enabled. Uses "\n" line endings. 5735--- 5736--- Don't include both "curdir" and "sesdir". When neither is included 5737--- filenames are stored as absolute paths. 5738--- If you leave out "options" many things won't work well after restoring 5739--- the session. 5740--- 5741--- @type string 5742vim . o . sessionoptions ="blank,buffers,curdir,folds,help,tabpages,winsize,terminal" 5743vim . o . ssop =vim . o . sessionoptions 5744vim . go . sessionoptions =vim . o . sessionoptions 5745vim . go . ssop =vim . go . sessionoptions 5746 5747--- When non-empty, the shada file is read upon startup and written 5748--- when exiting Vim (see `shada-file`). The string should be a comma- 5749--- separated list of parameters, each consisting of a single character 5750--- identifying the particular parameter, followed by a number or string 5751--- which specifies the value of that parameter. If a particular 5752--- character is left out, then the default value is used for that 5753--- parameter. The following is a list of the identifying characters and 5754--- the effect of their value. 5755--- CHAR VALUE ~ 5756--- *shada-!* 5757--- ! When included, save and restore global variables that start 5758--- with an uppercase letter, and don't contain a lowercase 5759--- letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis" 5760--- and "_K_L_M" are not. Nested List and Dict items may not be 5761--- read back correctly, you end up with an empty item. 5762--- *shada-quote* 5763--- " Maximum number of lines saved for each register. Old name of 5764--- the '<' item, with the disadvantage that you need to put a 5765--- backslash before the ", otherwise it will be recognized as the 5766--- start of a comment! 5767--- *shada-%* 5768--- % When included, save and restore the buffer list. If Vim is 5769--- started with a file name argument, the buffer list is not 5770--- restored. If Vim is started without a file name argument, the 5771--- buffer list is restored from the shada file. Quickfix 5772--- ('buftype'), unlisted ('buflisted'), unnamed and buffers on 5773--- removable media (`shada-r`) are not saved. 5774--- When followed by a number, the number specifies the maximum 5775--- number of buffers that are stored. Without a number all 5776--- buffers are stored. 5777--- *shada-'* 5778--- ' Maximum number of previously edited files for which the marks 5779--- are remembered. This parameter must always be included when 5780--- 'shada' is non-empty. 5781--- If non-zero, then the `jumplist` and the `changelist` are also 5782--- stored in the shada file. 5783--- *shada-/* 5784--- / Maximum number of items in the search pattern history to be 5785--- saved. If non-zero, then the previous search and substitute 5786--- patterns are also saved. When not included, the value of 5787--- 'history' is used. 5788--- *shada-:* 5789--- : Maximum number of items in the command-line history to be 5790--- saved. When not included, the value of 'history' is used. 5791--- *shada-<* 5792--- \< Maximum number of lines saved for each register. If zero then 5793--- registers are not saved. When not included, all lines are 5794--- saved. '"' is the old name for this item. 5795--- Also see the 's' item below: limit specified in KiB. 5796--- *shada-@* 5797--- @ Maximum number of items in the input-line history to be 5798--- saved. When not included, the value of 'history' is used. 5799--- *shada-c* 5800--- c Dummy option, kept for compatibility reasons. Has no actual 5801--- effect: ShaDa always uses UTF-8 and 'encoding' value is fixed 5802--- to UTF-8 as well. 5803--- *shada-f* 5804--- f Whether file marks need to be stored. If zero, file marks ('0 5805--- to '9, 'A to 'Z) are not stored. When not present or when 5806--- non-zero, they are all stored. '0 is used for the current 5807--- cursor position (when exiting or when doing `:wshada`). 5808--- *shada-h* 5809--- h Disable the effect of 'hlsearch' when loading the shada 5810--- file. When not included, it depends on whether ":nohlsearch" 5811--- has been used since the last search command. 5812--- *shada-n* 5813--- n Name of the shada file. The name must immediately follow 5814--- the 'n'. Must be at the end of the option! If the 5815--- 'shadafile' option is set, that file name overrides the one 5816--- given here with 'shada'. Environment variables are 5817--- expanded when opening the file, not when setting the option. 5818--- *shada-r* 5819--- r Removable media. The argument is a string (up to the next 5820--- ','). This parameter can be given several times. Each 5821--- specifies the start of a path for which no marks will be 5822--- stored. This is to avoid removable media. For Windows you 5823--- could use "ra:,rb:". You can also use it for temp files, 5824--- e.g., for Unix: "r/tmp". Case is ignored. 5825--- *shada-s* 5826--- s Maximum size of an item contents in KiB. If zero then nothing 5827--- is saved. Unlike Vim this applies to all items, except for 5828--- the buffer list and header. Full item size is off by three 5829--- unsigned integers: with `s10` maximum item size may be 1 byte 5830--- (type: 7-bit integer) + 9 bytes (timestamp: up to 64-bit 5831--- integer) + 3 bytes (item size: up to 16-bit integer because 5832--- 2^8 < 10240 < 2^16) + 10240 bytes (requested maximum item 5833--- contents size) = 10253 bytes. 5834--- 5835--- Example: 5836--- 5837--- ```vim 5838--- set shada='50,<1000,s100,:0,n~/nvim/shada 5839--- ``` 5840--- 5841--- '50 Marks will be remembered for the last 50 files you 5842--- edited. 5843--- <1000 Contents of registers (up to 1000 lines each) will be 5844--- remembered. 5845--- s100 Items with contents occupying more then 100 KiB are 5846--- skipped. 5847--- :0 Command-line history will not be saved. 5848--- n~/nvim/shada The name of the file to use is "~/nvim/shada". 5849--- no / Since '/' is not specified, the default will be used, 5850--- that is, save all of the search history, and also the 5851--- previous search and substitute patterns. 5852--- no % The buffer list will not be saved nor read back. 5853--- no h 'hlsearch' highlighting will be restored. 5854--- 5855--- When setting 'shada' from an empty value you can use `:rshada` to 5856--- load the contents of the file, this is not done automatically. 5857--- 5858--- @type string 5859vim . o . shada ="!,'100,<50,s10,h,r/tmp/,r/private/" 5860vim . o . sd =vim . o . shada 5861vim . go . shada =vim . o . shada 5862vim . go . sd =vim . go . shada 5863 5864--- When non-empty, overrides the file name used for `shada` (viminfo). 5865--- When equal to "NONE" no shada file will be read or written. 5866--- This option can be set with the `-i` command line flag. The `--clean` 5867--- command line flag sets it to "NONE". 5868--- Environment variables are expanded `:set_env`. 5869--- 5870--- @type string 5871vim . o . shadafile ="" 5872vim . o . sdf =vim . o . shadafile 5873vim . go . shadafile =vim . o . shadafile 5874vim . go . sdf =vim . go . shadafile 5875 5876--- Name of the shell to use for ! and :! commands. When changing the 5877--- value also check these options: 'shellpipe', 'shellslash' 5878--- 'shellredir', 'shellquote', 'shellxquote' and 'shellcmdflag'. 5879--- It is allowed to give an argument to the command, e.g. "csh -f". 5880--- See `option-backslash` about including spaces and backslashes. 5881--- Environment variables are expanded `:set_env`. 5882--- 5883--- If the name of the shell contains a space, you need to enclose it in 5884--- quotes. Example with quotes: 5885--- 5886--- ```vim 5887--- set shell=\"c:\program\ files\unix\sh.exe\"\ -f 5888--- ``` 5889--- Note the backslash before each quote (to avoid starting a comment) and 5890--- each space (to avoid ending the option value), so better use `:let-&` 5891--- like this: 5892--- 5893--- ```vim 5894--- let &shell='"C:\Program Files\unix\sh.exe" -f' 5895--- ``` 5896--- Also note that the "-f" is not inside the quotes, because it is not 5897--- part of the command name. 5898--- *shell-unquoting* 5899--- Rules regarding quotes: 5900--- 1. Option is split on space and tab characters that are not inside 5901--- quotes: "abc def" runs shell named "abc" with additional argument 5902--- "def", '"abc def"' runs shell named "abc def" with no additional 5903--- arguments (here and below: additional means “additional to 5904--- 'shellcmdflag'”). 5905--- 2. Quotes in option may be present in any position and any number: 5906--- '"abc"', '"a"bc', 'a"b"c', 'ab"c"' and '"a"b"c"' are all equivalent 5907--- to just "abc". 5908--- 3. Inside quotes backslash preceding backslash means one backslash. 5909--- Backslash preceding quote means one quote. Backslash preceding 5910--- anything else means backslash and next character literally: 5911--- '"a\\b"' is the same as "a\b", '"a\\"b"' runs shell named literally 5912--- 'a"b', '"a\b"' is the same as "a\b" again. 5913--- 4. Outside of quotes backslash always means itself, it cannot be used 5914--- to escape quote: 'a\"b"' is the same as "a\b". 5915--- Note that such processing is done after `:set` did its own round of 5916--- unescaping, so to keep yourself sane use `:let-&` like shown above. 5917--- *shell-powershell* 5918--- To use PowerShell: 5919--- 5920--- ```vim 5921--- set noshelltemp 5922--- let &shell = 'powershell' 5923--- let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ' 5924--- let &shellcmdflag .= '[Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();' 5925--- let &shellcmdflag .= '$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';' 5926--- let &shellpipe = '> %s 2>&1' 5927--- set shellquote= shellxquote= 5928--- ``` 5929--- 5930--- *shell-pwsh* 5931--- To use pwsh, use the above settings with `let &shell = 'pwsh'`, and 5932--- add: 5933--- 5934--- ```vim 5935--- let &shellcmdflag .= '$PSStyle.OutputRendering = ''PlainText'';' 5936--- " Workaround (may not be needed in future version of pwsh): 5937--- let $__SuppressAnsiEscapeSequences = 1 5938--- ``` 5939--- 5940--- 5941--- @type string 5942vim . o . shell ="sh" 5943vim . o . sh =vim . o . shell 5944vim . go . shell =vim . o . shell 5945vim . go . sh =vim . go . shell 5946 5947--- Flag passed to the shell to execute "!" and ":!" commands; e.g., 5948--- `bash.exe -c ls` or `cmd.exe /s /c "dir"`. For MS-Windows, the 5949--- default is set according to the value of 'shell', to reduce the need 5950--- to set this option by the user. 5951--- On Unix it can have more than one flag. Each white space separated 5952--- part is passed as an argument to the shell command. 5953--- See `option-backslash` about including spaces and backslashes. 5954--- See `shell-unquoting` which talks about separating this option into 5955--- multiple arguments. 5956--- 5957--- @type string 5958vim . o . shellcmdflag ="-c" 5959vim . o . shcf =vim . o . shellcmdflag 5960vim . go . shellcmdflag =vim . o . shellcmdflag 5961vim . go . shcf =vim . go . shellcmdflag 5962 5963--- String to be used to put the output of the ":make" command in the 5964--- error file. See also `:make_makeprg`. See `option-backslash` about 5965--- including spaces and backslashes. 5966--- The name of the temporary file can be represented by "%s" if necessary 5967--- (the file name is appended automatically if no %s appears in the value 5968--- of this option). 5969--- For MS-Windows the default is "2>&1| tee". The stdout and stderr are 5970--- saved in a file and echoed to the screen. 5971--- For Unix the default is "| tee". The stdout of the compiler is saved 5972--- in a file and echoed to the screen. If the 'shell' option contains 5973--- "csh" (e.g. "tcsh") after initializations, the default becomes 5974--- "|& tee". Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the 5975--- default becomes "2>&1| tee". This means that stderr is also included. 5976--- Before using the 'shell' option a path is removed, thus "/bin/sh" uses 5977--- "sh". 5978--- The initialization of this option is done after reading the vimrc 5979--- and the other initializations, so that when the 'shell' option is set 5980--- there, the 'shellpipe' option changes automatically, unless it was 5981--- explicitly set before. 5982--- When 'shellpipe' is set to an empty string, no redirection of the 5983--- ":make" output will be done. This is useful if you use a 'makeprg' 5984--- that writes to 'makeef' by itself. If you want no piping, but do 5985--- want to include the 'makeef', set 'shellpipe' to a single space. 5986--- Don't forget to precede the space with a backslash: ":set sp=\ ". 5987--- In the future pipes may be used for filtering and this option will 5988--- become obsolete (at least for Unix). 5989--- Note: When using a pipe like "| tee", you'll lose the exit code of the 5990--- shell command. This might be configurable by your shell, look for 5991--- the pipefail option (for bash and zsh, use ":set -o pipefail"). 5992--- Only a single "%s" value is allowed. 5993--- 5994--- @type string 5995vim . o . shellpipe ="| tee" 5996vim . o . sp =vim . o . shellpipe 5997vim . go . shellpipe =vim . o . shellpipe 5998vim . go . sp =vim . go . shellpipe 5999 6000--- Quoting character(s), put around the command passed to the shell, for 6001--- the "!" and ":!" commands. The redirection is kept outside of the 6002--- quoting. See 'shellxquote' to include the redirection. It's 6003--- probably not useful to set both options. 6004--- This is an empty string by default. Only known to be useful for 6005--- third-party shells on Windows systems, such as the MKS Korn Shell 6006--- or bash, where it should be "\"". The default is adjusted according 6007--- the value of 'shell', to reduce the need to set this option by the 6008--- user. 6009--- 6010--- @type string 6011vim . o . shellquote ="" 6012vim . o . shq =vim . o . shellquote 6013vim . go . shellquote =vim . o . shellquote 6014vim . go . shq =vim . go . shellquote 6015 6016--- String to be used to put the output of a filter command in a temporary 6017--- file. See also `:!`. See `option-backslash` about including spaces 6018--- and backslashes. 6019--- The name of the temporary file can be represented by "%s" if necessary 6020--- (the file name is appended automatically if no %s appears in the value 6021--- of this option). 6022--- The default is ">". For Unix, if the 'shell' option contains "csh" 6023--- (e.g. "tcsh") during initializations, the default becomes ">&". 6024--- Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the default 6025--- becomes ">%s 2>&1". This means that stderr is also included. For 6026--- Win32, the Unix checks are done and additionally "cmd" is checked 6027--- for, which makes the default ">%s 2>&1". 6028--- Also, the same names with ".exe" appended are checked for. 6029--- The initialization of this option is done after reading the vimrc 6030--- and the other initializations, so that when the 'shell' option is set 6031--- there, the 'shellredir' option changes automatically unless it was 6032--- explicitly set before. 6033--- In the future pipes may be used for filtering and this option will 6034--- become obsolete (at least for Unix). 6035--- *E1577* 6036--- Only a single "%s" item is allowed in the option value. 6037--- 6038--- @type string 6039vim . o . shellredir =">" 6040vim . o . srr =vim . o . shellredir 6041vim . go . shellredir =vim . o . shellredir 6042vim . go . srr =vim . go . shellredir 6043 6044--- only modifiable in MS-Windows 6045--- When set, a forward slash is used when expanding file names. This is 6046--- useful when a Unix-like shell is used instead of cmd.exe. Backward 6047--- slashes can still be typed, but they are changed to forward slashes by 6048--- Vim. 6049--- Note that setting or resetting this option has no effect for some 6050--- existing file names, thus this option needs to be set before opening 6051--- any file for best results. This might change in the future. 6052--- 'shellslash' only works when a backslash can be used as a path 6053--- separator. To test if this is so use: 6054--- 6055--- ```vim 6056--- if exists('+shellslash') 6057--- ``` 6058--- Also see 'completeslash'. 6059--- 6060--- @type boolean 6061vim . o . shellslash =true 6062vim . o . ssl =vim . o . shellslash 6063vim . go . shellslash =vim . o . shellslash 6064vim . go . ssl =vim . go . shellslash 6065 6066--- When on, use temp files for shell commands. When off use a pipe. 6067--- When using a pipe is not possible temp files are used anyway. 6068--- The advantage of using a pipe is that nobody can read the temp file 6069--- and the 'shell' command does not need to support redirection. 6070--- The advantage of using a temp file is that the file type and encoding 6071--- can be detected. 6072--- The `FilterReadPre`, `FilterReadPost` and `FilterWritePre`, 6073--- `FilterWritePost` autocommands event are not triggered when 6074--- 'shelltemp' is off. 6075--- `system()` does not respect this option, it always uses pipes. 6076--- 6077--- @type boolean 6078vim . o . shelltemp =false 6079vim . o . stmp =vim . o . shelltemp 6080vim . go . shelltemp =vim . o . shelltemp 6081vim . go . stmp =vim . go . shelltemp 6082 6083--- When 'shellxquote' is set to "(" then the characters listed in this 6084--- option will be escaped with a '^' character. This makes it possible 6085--- to execute most external commands with cmd.exe. 6086--- 6087--- @type string 6088vim . o . shellxescape ="" 6089vim . o . sxe =vim . o . shellxescape 6090vim . go . shellxescape =vim . o . shellxescape 6091vim . go . sxe =vim . go . shellxescape 6092 6093--- Quoting character(s), put around the command passed to the shell, for 6094--- the "!" and ":!" commands. Includes the redirection. See 6095--- 'shellquote' to exclude the redirection. It's probably not useful 6096--- to set both options. 6097--- When the value is '(' then ')' is appended. When the value is '"(' 6098--- then ')"' is appended. 6099--- When the value is '(' then also see 'shellxescape'. 6100--- 6101--- @type string 6102vim . o . shellxquote ="" 6103vim . o . sxq =vim . o . shellxquote 6104vim . go . shellxquote =vim . o . shellxquote 6105vim . go . sxq =vim . go . shellxquote 6106 6107--- Round indent to multiple of 'shiftwidth'. Applies to > and < 6108--- commands. CTRL-T and CTRL-D in Insert mode always round the indent to 6109--- a multiple of 'shiftwidth' (this is Vi compatible). 6110--- 6111--- @type boolean 6112vim . o . shiftround =false 6113vim . o . sr =vim . o . shiftround 6114vim . go . shiftround =vim . o . shiftround 6115vim . go . sr =vim . go . shiftround 6116 6117--- Number of columns that make up one level of (auto)indentation. Used 6118--- by 'cindent', `<<`, `>>`, etc. 6119--- If set to 0, Vim uses the current 'tabstop' value. Use `shiftwidth()` 6120--- to obtain the effective value in scripts. 6121--- 6122--- @type integer 6123vim . o . shiftwidth =8 6124vim . o . sw =vim . o . shiftwidth 6125vim . bo . shiftwidth =vim . o . shiftwidth 6126vim . bo . sw =vim . bo . shiftwidth 6127 6128--- Controls display of file messages (e.g. CTRL-G) and various other 6129--- messages. 6130--- 6131--- It is a list of flags: 6132--- flag meaning when present ~ 6133--- l use "999L, 888B" instead of "999 lines, 888 bytes" *shm-l* 6134--- m use "[+]" instead of "[Modified]" *shm-m* 6135--- r use "[RO]" instead of "[readonly]" *shm-r* 6136--- w use "[w]" instead of "written" for file write message *shm-w* 6137--- and "[a]" instead of "appended" for ':w >> file' command 6138--- a all of the above abbreviations *shm-a* 6139--- 6140--- o overwrite message for writing a file with subsequent *shm-o* 6141--- message for reading a file (useful for ":wn" or when 6142--- 'autowrite' on) 6143--- O message for reading a file overwrites any previous *shm-O* 6144--- message; also for quickfix message (e.g., ":cn") 6145--- s don't give "search hit BOTTOM, continuing at TOP" or *shm-s* 6146--- "search hit TOP, continuing at BOTTOM" messages; when using 6147--- the search count do not show "W" before the count message 6148--- (see `shm-S` below) 6149--- t truncate file message at the start if it is too long *shm-t* 6150--- to fit on the command-line, "<" will appear in the left most 6151--- column; ignored in Ex mode 6152--- T truncate other messages in the middle if they are too *shm-T* 6153--- long to fit on the command line; "..." will appear in the 6154--- middle; ignored in Ex mode 6155--- W don't give "written" or "[w]" when writing a file *shm-W* 6156--- A don't give the "ATTENTION" message when an existing *shm-A* 6157--- swap file is found 6158--- I don't give the intro message when starting Vim, *shm-I* 6159--- see `:intro` 6160--- c don't give `ins-completion-menu` messages; for *shm-c* 6161--- example, "-- XXX completion (YYY)", "match 1 of 2", "The only 6162--- match", "Pattern not found", "Back at original", etc. 6163--- C don't give messages while scanning for ins-completion *shm-C* 6164--- items, for instance "scanning tags" 6165--- q do not show "recording @a" when recording a macro *shm-q* 6166--- F don't give the file info when editing a file, like *shm-F* 6167--- `:silent` was used for the command; note that this also 6168--- affects messages from 'autoread' reloading 6169--- S do not show search count message when searching, e.g. *shm-S* 6170--- "[1/5]". When the "S" flag is not present (e.g. search count 6171--- is shown), the "search hit BOTTOM, continuing at TOP" and 6172--- "search hit TOP, continuing at BOTTOM" messages are only 6173--- indicated by a "W" (Mnemonic: Wrapped) letter before the 6174--- search count statistics. The maximum limit can be set with 6175--- the 'maxsearchcount' option, see also `searchcount()` 6176--- function. 6177--- u don't give undo and redo messages like *shm-u* 6178--- "1 line less; before #1 1 second ago", "Already at oldest 6179--- change" or "Already at newest change" 6180--- 6181--- This gives you the opportunity to avoid that a change between buffers 6182--- requires you to hit <Enter>, but still gives as useful a message as 6183--- possible for the space available. To get the whole message that you 6184--- would have got with 'shm' empty, use ":file!" 6185--- Useful values: 6186--- shm= No abbreviation of message. 6187--- shm=a Abbreviation, but no loss of information. 6188--- shm=at Abbreviation, and truncate message when necessary. 6189--- 6190--- @type string 6191vim . o . shortmess ="ltToOCF" 6192vim . o . shm =vim . o . shortmess 6193vim . go . shortmess =vim . o . shortmess 6194vim . go . shm =vim . go . shortmess 6195 6196--- String to put at the start of lines that have been wrapped. Useful 6197--- values are "> " or "+++ ": 6198--- 6199--- ```vim 6200--- let &showbreak = "> " 6201--- let &showbreak = '+++ ' 6202--- ``` 6203--- Only printable single-cell characters are allowed, excluding <Tab> and 6204--- comma (in a future version the comma might be used to separate the 6205--- part that is shown at the end and at the start of a line). 6206--- The `hl-NonText` highlight group determines the highlighting. 6207--- Note that tabs after the showbreak will be displayed differently. 6208--- If you want the 'showbreak' to appear in between line numbers, add the 6209--- "n" flag to 'cpoptions'. 6210--- A window-local value overrules a global value. If the global value is 6211--- set and you want no value in the current window use NONE: 6212--- 6213--- ```vim 6214--- setlocal showbreak=NONE 6215--- ``` 6216--- 6217--- 6218--- @type string 6219vim . o . showbreak ="" 6220vim . o . sbr =vim . o . showbreak 6221vim . wo . showbreak =vim . o . showbreak 6222vim . wo . sbr =vim . wo . showbreak 6223vim . go . showbreak =vim . o . showbreak 6224vim . go . sbr =vim . go . showbreak 6225 6226--- Show (partial) command in the last line of the screen. Set this 6227--- option off if your terminal is slow. 6228--- In Visual mode the size of the selected area is shown: 6229--- - When selecting characters within a line, the number of characters. 6230--- If the number of bytes is different it is also displayed: "2-6" 6231--- means two characters and six bytes. 6232--- - When selecting more than one line, the number of lines. 6233--- - When selecting a block, the size in screen characters: 6234--- {lines}x{columns}. 6235--- This information can be displayed in an alternative location using the 6236--- 'showcmdloc' option, useful when 'cmdheight' is 0. 6237--- 6238--- @type boolean 6239vim . o . showcmd =true 6240vim . o . sc =vim . o . showcmd 6241vim . go . showcmd =vim . o . showcmd 6242vim . go . sc =vim . go . showcmd 6243 6244--- This option can be used to display the (partially) entered command in 6245--- another location. Possible values are: 6246--- last Last line of the screen (default). 6247--- statusline Status line of the current window. 6248--- tabline First line of the screen if 'showtabline' is enabled. 6249--- Setting this option to "statusline" or "tabline" means that these will 6250--- be redrawn whenever the command changes, which can be on every key 6251--- pressed. 6252--- The %S 'statusline' item can be used in 'statusline' or 'tabline' to 6253--- place the text. Without a custom 'statusline' or 'tabline' it will be 6254--- displayed in a convenient location. 6255--- 6256--- @type 'last'|'statusline'|'tabline' 6257vim . o . showcmdloc ="last" 6258vim . o . sloc =vim . o . showcmdloc 6259vim . go . showcmdloc =vim . o . showcmdloc 6260vim . go . sloc =vim . go . showcmdloc 6261 6262--- When completing a word in insert mode (see `ins-completion`) from the 6263--- tags file, show both the tag name and a tidied-up form of the search 6264--- pattern (if there is one) as possible matches. Thus, if you have 6265--- matched a C function, you can see a template for what arguments are 6266--- required (coding style permitting). 6267--- Note that this doesn't work well together with having "longest" in 6268--- 'completeopt', because the completion from the search pattern may not 6269--- match the typed text. 6270--- 6271--- @type boolean 6272vim . o . showfulltag =false 6273vim . o . sft =vim . o . showfulltag 6274vim . go . showfulltag =vim . o . showfulltag 6275vim . go . sft =vim . go . showfulltag 6276 6277--- When a bracket is inserted, briefly jump to the matching one. The 6278--- jump is only done if the match can be seen on the screen. The time to 6279--- show the match can be set with 'matchtime'. 6280--- A Beep is given if there is no match (no matter if the match can be 6281--- seen or not). 6282--- When the 'm' flag is not included in 'cpoptions', typing a character 6283--- will immediately move the cursor back to where it belongs. 6284--- See the "sm" field in 'guicursor' for setting the cursor shape and 6285--- blinking when showing the match. 6286--- The 'matchpairs' option can be used to specify the characters to show 6287--- matches for. 'rightleft' and 'revins' are used to look for opposite 6288--- matches. 6289--- Also see the matchparen plugin for highlighting the match when moving 6290--- around `pi_paren.txt`. 6291--- Note: Use of the short form is rated PG. 6292--- 6293--- @type boolean 6294vim . o . showmatch =false 6295vim . o . sm =vim . o . showmatch 6296vim . go . showmatch =vim . o . showmatch 6297vim . go . sm =vim . go . showmatch 6298 6299--- If in Insert, Replace or Visual mode put a message on the last line. 6300--- The `hl-ModeMsg` highlight group determines the highlighting. 6301--- The option has no effect when 'cmdheight' is zero. 6302--- 6303--- @type boolean 6304vim . o . showmode =true 6305vim . o . smd =vim . o . showmode 6306vim . go . showmode =vim . o . showmode 6307vim . go . smd =vim . go . showmode 6308 6309--- Specifies when the `tabpage` labels will be displayed: 6310--- 0: never 6311--- 1: only if there are at least two tabpages 6312--- 2: always 6313--- 6314--- @type integer 6315vim . o . showtabline =1 6316vim . o . stal =vim . o . showtabline 6317vim . go . showtabline =vim . o . showtabline 6318vim . go . stal =vim . go . showtabline 6319 6320--- The minimal number of columns to scroll horizontally. Used only when 6321--- the 'wrap' option is off and the cursor is moved off of the screen. 6322--- When it is zero the cursor will be put in the middle of the screen. 6323--- When using a slow terminal set it to a large number or 0. Not used 6324--- for "zh" and "zl" commands. 6325--- 6326--- @type integer 6327vim . o . sidescroll =1 6328vim . o . ss =vim . o . sidescroll 6329vim . go . sidescroll =vim . o . sidescroll 6330vim . go . ss =vim . go . sidescroll 6331 6332--- The minimal number of screen columns to keep to the left and to the 6333--- right of the cursor if 'nowrap' is set. Setting this option to a 6334--- value greater than 0 while having 'sidescroll' also at a non-zero 6335--- value makes some context visible in the line you are scrolling in 6336--- horizontally (except at beginning of the line). Setting this option 6337--- to a large value (like 999) has the effect of keeping the cursor 6338--- horizontally centered in the window, as long as one does not come too 6339--- close to the beginning of the line. 6340--- After using the local value, go back the global value with one of 6341--- these two: 6342--- 6343--- ```vim 6344--- setlocal sidescrolloff< 6345--- setlocal sidescrolloff=-1 6346--- ``` 6347--- 6348--- Example: Try this together with 'sidescroll' and 'listchars' as in the 6349--- following example to never allow the cursor to move onto the 6350--- "extends" character: 6351--- 6352--- ```vim 6353--- 6354--- set nowrap sidescroll=1 listchars=extends:>,precedes:< 6355--- set sidescrolloff=1 6356--- ``` 6357--- 6358--- 6359--- @type integer 6360vim . o . sidescrolloff =0 6361vim . o . siso =vim . o . sidescrolloff 6362vim . wo . sidescrolloff =vim . o . sidescrolloff 6363vim . wo . siso =vim . wo . sidescrolloff 6364vim . go . sidescrolloff =vim . o . sidescrolloff 6365vim . go . siso =vim . go . sidescrolloff 6366 6367--- When and how to draw the signcolumn. Valid values are: 6368--- "auto" only when there is a sign to display 6369--- "auto:[1-9]" resize to accommodate multiple signs up to the 6370--- given number (maximum 9), e.g. "auto:4" 6371--- "auto:[1-8]-[2-9]" 6372--- resize to accommodate multiple signs up to the 6373--- given maximum number (maximum 9) while keeping 6374--- at least the given minimum (maximum 8) fixed 6375--- space. The minimum number should always be less 6376--- than the maximum number, e.g. "auto:2-5" 6377--- "no" never 6378--- "yes" always 6379--- "yes:[1-9]" always, with fixed space for signs up to the given 6380--- number (maximum 9), e.g. "yes:3" 6381--- "number" display signs in the 'number' column. If the number 6382--- column is not present, then behaves like "auto". 6383--- 6384--- @type 'yes'|'no'|'auto'|'auto:1'|'auto:2'|'auto:3'|'auto:4'|'auto:5'|'auto:6'|'auto:7'|'auto:8'|'auto:9'|'yes:1'|'yes:2'|'yes:3'|'yes:4'|'yes:5'|'yes:6'|'yes:7'|'yes:8'|'yes:9'|'number' 6385vim . o . signcolumn ="auto" 6386vim . o . scl =vim . o . signcolumn 6387vim . wo . signcolumn =vim . o . signcolumn 6388vim . wo . scl =vim . wo . signcolumn 6389 6390--- Override the 'ignorecase' option if the search pattern contains upper 6391--- case characters. Only used when the search pattern is typed and 6392--- 'ignorecase' option is on. Used for the commands "/", "?", "n", "N", 6393--- ":g" and ":s" and when filtering matches for the completion menu 6394--- `compl-states`. 6395--- Not used for "*", "#", "gd", tag search, etc. After "*" and "#" you 6396--- can make 'smartcase' used by doing a "/" command, recalling the search 6397--- pattern from history and hitting <Enter>. 6398--- 6399--- @type boolean 6400vim . o . smartcase =false 6401vim . o . scs =vim . o . smartcase 6402vim . go . smartcase =vim . o . smartcase 6403vim . go . scs =vim . go . smartcase 6404 6405--- Do smart autoindenting when starting a new line. Works for C-like 6406--- programs, but can also be used for other languages. 'cindent' does 6407--- something like this, works better in most cases, but is more strict, 6408--- see `C-indenting`. When 'cindent' is on or 'indentexpr' is set, 6409--- setting 'si' has no effect. 'indentexpr' is a more advanced 6410--- alternative. 6411--- Normally 'autoindent' should also be on when using 'smartindent'. 6412--- An indent is automatically inserted: 6413--- - After a line ending in "{". 6414--- - After a line starting with a keyword from 'cinwords'. 6415--- - Before a line starting with "}" (only with the "O" command). 6416--- When typing '}' as the first character in a new line, that line is 6417--- given the same indent as the matching "{". 6418--- When typing '#' as the first character in a new line, the indent for 6419--- that line is removed, the '#' is put in the first column. The indent 6420--- is restored for the next line. If you don't want this, use this 6421--- mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H. 6422--- When using the ">>" command, lines starting with '#' are not shifted 6423--- right. 6424--- 6425--- @type boolean 6426vim . o . smartindent =false 6427vim . o . si =vim . o . smartindent 6428vim . bo . smartindent =vim . o . smartindent 6429vim . bo . si =vim . bo . smartindent 6430 6431--- When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor 6432--- is in leading whitespace. The <BS> key has the opposite effect. 6433--- In leading whitespace, this has the same effect as setting 6434--- 'softtabstop' to the value of 'shiftwidth'. 6435--- NOTE: in most cases, using 'softtabstop' is a better option. Have a 6436--- look at section `30.5` of the user guide for detailed 6437--- explanations on how Vim works with tabs and spaces. 6438--- 6439--- @type boolean 6440vim . o . smarttab =true 6441vim . o . sta =vim . o . smarttab 6442vim . go . smarttab =vim . o . smarttab 6443vim . go . sta =vim . go . smarttab 6444 6445--- Scrolling works with screen lines. When 'wrap' is set and the first 6446--- line in the window wraps part of it may not be visible, as if it is 6447--- above the window. "<<<" is displayed at the start of the first line, 6448--- highlighted with `hl-NonText`. 6449--- You may also want to add "lastline" to the 'display' option to show as 6450--- much of the last line as possible. 6451--- NOTE: partly implemented, doesn't work yet for `gj` and `gk`. 6452--- 6453--- @type boolean 6454vim . o . smoothscroll =false 6455vim . o . sms =vim . o . smoothscroll 6456vim . wo . smoothscroll =vim . o . smoothscroll 6457vim . wo . sms =vim . wo . smoothscroll 6458 6459--- Create soft tab stops, separated by 'softtabstop' number of columns. 6460--- In Insert mode, pressing the <Tab> key will move the cursor to the 6461--- next soft tab stop, instead of inserting a literal tab. <BS> behaves 6462--- similarly in reverse. Vim inserts a minimal mix of tab and space 6463--- characters to produce the visual effect. 6464--- 6465--- This setting does not affect the display of existing tab characters. 6466--- 6467--- A value of 0 disables this behaviour. A negative value makes Vim use 6468--- 'shiftwidth'. If you plan to use 'sts' and 'shiftwidth' with 6469--- different values, you might consider setting 'smarttab'. 6470--- 6471--- The 'L' flag in 'cpoptions' alters tab behavior when 'list' is 6472--- enabled. See also `ins-expandtab` and user manual section `30.5` for 6473--- in-depth explanations. 6474--- 6475--- The value of 'softtabstop' will be ignored if 'varsofttabstop' is set 6476--- to anything other than an empty string. 6477--- 6478--- @type integer 6479vim . o . softtabstop =0 6480vim . o . sts =vim . o . softtabstop 6481vim . bo . softtabstop =vim . o . softtabstop 6482vim . bo . sts =vim . bo . softtabstop 6483 6484--- When on spell checking will be done. See `spell`. 6485--- The languages are specified with 'spelllang'. 6486--- 6487--- @type boolean 6488vim . o . spell =false 6489vim . wo . spell =vim . o . spell 6490 6491--- Pattern to locate the end of a sentence. The following word will be 6492--- checked to start with a capital letter. If not then it is highlighted 6493--- with SpellCap `hl-SpellCap` (unless the word is also badly spelled). 6494--- When this check is not wanted make this option empty. 6495--- Only used when 'spell' is set. 6496--- Be careful with special characters, see `option-backslash` about 6497--- including spaces and backslashes. 6498--- To set this option automatically depending on the language, see 6499--- `set-spc-auto`. 6500--- 6501--- @type string 6502vim . o . spellcapcheck ="[.?!]\\_[\\])'\"\\t ]\\+" 6503vim . o . spc =vim . o . spellcapcheck 6504vim . bo . spellcapcheck =vim . o . spellcapcheck 6505vim . bo . spc =vim . bo . spellcapcheck 6506 6507--- Name of the word list file where words are added for the `zg` and `zw` 6508--- commands. It must end in ".{encoding}.add". You need to include the 6509--- path, otherwise the file is placed in the current directory. 6510--- The path may include characters from 'isfname', ' ', ',', '@' and ':'. 6511--- *E765* 6512--- It may also be a comma-separated list of names. A count before the 6513--- `zg` and `zw` commands can be used to access each. This allows using 6514--- a personal word list file and a project word list file. 6515--- When a word is added while this option is empty Nvim will use 6516--- (and auto-create) `stdpath('data')/site/spell/`. For the file name the 6517--- first language name that appears in 'spelllang' is used, ignoring the 6518--- region. 6519--- The resulting ".spl" file will be used for spell checking, it does not 6520--- have to appear in 'spelllang'. 6521--- Normally one file is used for all regions, but you can add the region 6522--- name if you want to. However, it will then only be used when 6523--- 'spellfile' is set to it, for entries in 'spelllang' only files 6524--- without region name will be found. 6525--- Environment variables are expanded `:set_env`. 6526--- 6527--- @type string 6528vim . o . spellfile ="" 6529vim . o . spf =vim . o . spellfile 6530vim . bo . spellfile =vim . o . spellfile 6531vim . bo . spf =vim . bo . spellfile 6532 6533--- A comma-separated list of word list names. When the 'spell' option is 6534--- on spellchecking will be done for these languages. Example: 6535--- 6536--- ```vim 6537--- set spelllang=en_us,nl,medical 6538--- ``` 6539--- This means US English, Dutch and medical words are recognized. Words 6540--- that are not recognized will be highlighted. 6541--- The word list name must consist of alphanumeric characters, a dash or 6542--- an underscore. It should not include a comma or dot. Using a dash is 6543--- recommended to separate the two letter language name from a 6544--- specification. Thus "en-rare" is used for rare English words. 6545--- A region name must come last and have the form "_xx", where "xx" is 6546--- the two-letter, lower case region name. You can use more than one 6547--- region by listing them: "en_us,en_ca" supports both US and Canadian 6548--- English, but not words specific for Australia, New Zealand or Great 6549--- Britain. (Note: currently en_au and en_nz dictionaries are older than 6550--- en_ca, en_gb and en_us). 6551--- If the name "cjk" is included East Asian characters are excluded from 6552--- spell checking. This is useful when editing text that also has Asian 6553--- words. 6554--- Note that the "medical" dictionary does not exist, it is just an 6555--- example of a longer name. 6556--- *E757* 6557--- As a special case the name of a .spl file can be given as-is. The 6558--- first "_xx" in the name is removed and used as the region name 6559--- (_xx is an underscore, two letters and followed by a non-letter). 6560--- This is mainly for testing purposes. You must make sure the correct 6561--- encoding is used, Vim doesn't check it. 6562--- How the related spell files are found is explained here: `spell-load`. 6563--- 6564--- If the `package-spellfile` plugin is active and you use a language name 6565--- for which Vim cannot find the .spl file in 'runtimepath' the plugin 6566--- will ask you if you want to download the file. 6567--- 6568--- After this option has been set successfully, Vim will source the files 6569--- "spell/LANG.vim" in 'runtimepath'. "LANG" is the value of 'spelllang' 6570--- up to the first character that is not an ASCII letter or number and 6571--- not a dash. Also see `set-spc-auto`. 6572--- 6573--- @type string 6574vim . o . spelllang ="en" 6575vim . o . spl =vim . o . spelllang 6576vim . bo . spelllang =vim . o . spelllang 6577vim . bo . spl =vim . bo . spelllang 6578 6579--- A comma-separated list of options for spell checking: 6580--- camel When a word is CamelCased, assume "Cased" is a 6581--- separate word: every upper-case character in a word 6582--- that comes after a lower case character indicates the 6583--- start of a new word. 6584--- noplainbuffer Only spellcheck a buffer when 'syntax' is enabled, 6585--- or when extmarks are set within the buffer. Only 6586--- designated regions of the buffer are spellchecked in 6587--- this case. 6588--- 6589--- @type string 6590vim . o . spelloptions ="" 6591vim . o . spo =vim . o . spelloptions 6592vim . bo . spelloptions =vim . o . spelloptions 6593vim . bo . spo =vim . bo . spelloptions 6594 6595--- Methods used for spelling suggestions. Both for the `z=` command and 6596--- the `spellsuggest()` function. This is a comma-separated list of 6597--- items: 6598--- 6599--- best Internal method that works best for English. Finds 6600--- changes like "fast" and uses a bit of sound-a-like 6601--- scoring to improve the ordering. 6602--- 6603--- double Internal method that uses two methods and mixes the 6604--- results. The first method is "fast", the other method 6605--- computes how much the suggestion sounds like the bad 6606--- word. That only works when the language specifies 6607--- sound folding. Can be slow and doesn't always give 6608--- better results. 6609--- 6610--- fast Internal method that only checks for simple changes: 6611--- character inserts/deletes/swaps. Works well for 6612--- simple typing mistakes. 6613--- 6614--- {number} The maximum number of suggestions listed for `z=`. 6615--- Not used for `spellsuggest()`. The number of 6616--- suggestions is never more than the value of 'lines' 6617--- minus two. 6618--- 6619--- timeout:{millisec} Limit the time searching for suggestions to 6620--- {millisec} milliseconds. Applies to the following 6621--- methods. When omitted the limit is 5000. When 6622--- negative there is no limit. 6623--- 6624--- file:{filename} Read file {filename}, which must have two columns, 6625--- separated by a slash. The first column contains the 6626--- bad word, the second column the suggested good word. 6627--- Example: 6628--- theribal/terrible ~ 6629--- Use this for common mistakes that do not appear at the 6630--- top of the suggestion list with the internal methods. 6631--- Lines without a slash are ignored, use this for 6632--- comments. 6633--- The word in the second column must be correct, 6634--- otherwise it will not be used. Add the word to an 6635--- ".add" file if it is currently flagged as a spelling 6636--- mistake. 6637--- The file is used for all languages. 6638--- 6639--- expr:{expr} Evaluate expression {expr}. Use a function to avoid 6640--- trouble with spaces. Best is to call a function 6641--- without arguments, see `expr-option-function`. 6642--- `v:val` holds the badly spelled word. The expression 6643--- must evaluate to a List of Lists, each with a 6644--- suggestion and a score. 6645--- Example: 6646--- [['the', 33], ['that', 44]] ~ 6647--- Set 'verbose' and use `z=` to see the scores that the 6648--- internal methods use. A lower score is better. 6649--- This may invoke `spellsuggest()` if you temporarily 6650--- set 'spellsuggest' to exclude the "expr:" part. 6651--- Errors are silently ignored, unless you set the 6652--- 'verbose' option to a non-zero value. 6653--- 6654--- Only one of "best", "double" or "fast" may be used. The others may 6655--- appear several times in any order. Example: 6656--- 6657--- ```vim 6658--- set sps=file:~/.config/nvim/sugg,best,expr:MySuggest() 6659--- ``` 6660--- Environment variables are expanded `:set_env`. 6661--- 6662--- @type string 6663vim . o . spellsuggest ="best" 6664vim . o . sps =vim . o . spellsuggest 6665vim . go . spellsuggest =vim . o . spellsuggest 6666vim . go . sps =vim . go . spellsuggest 6667 6668--- When on, splitting a window will put the new window below the current 6669--- one. `:split` 6670--- 6671--- @type boolean 6672vim . o . splitbelow =false 6673vim . o . sb =vim . o . splitbelow 6674vim . go . splitbelow =vim . o . splitbelow 6675vim . go . sb =vim . go . splitbelow 6676 6677--- The value of this option determines the scroll behavior when opening, 6678--- closing or resizing horizontal splits. 6679--- 6680--- Possible values are: 6681--- cursor Keep the same relative cursor position. 6682--- screen Keep the text on the same screen line. 6683--- topline Keep the topline the same. 6684--- 6685--- For the "screen" and "topline" values, the cursor position will be 6686--- changed when necessary. In this case, the jumplist will be populated 6687--- with the previous cursor position. For "screen", the text cannot 6688--- always be kept on the same screen line when 'wrap' is enabled. 6689--- 6690--- @type 'cursor'|'screen'|'topline' 6691vim . o . splitkeep ="cursor" 6692vim . o . spk =vim . o . splitkeep 6693vim . go . splitkeep =vim . o . splitkeep 6694vim . go . spk =vim . go . splitkeep 6695 6696--- When on, splitting a window will put the new window right of the 6697--- current one. `:vsplit` 6698--- 6699--- @type boolean 6700vim . o . splitright =false 6701vim . o . spr =vim . o . splitright 6702vim . go . splitright =vim . o . splitright 6703vim . go . spr =vim . go . splitright 6704 6705--- When "on" the commands listed below move the cursor to the first 6706--- non-blank of the line. When off the cursor is kept in the same column 6707--- (if possible). This applies to the commands: 6708--- - CTRL-D, CTRL-U, CTRL-B, CTRL-F, "G", "H", "M", "L", "gg" 6709--- - "d", "<<", "==" and ">>" with a linewise operator 6710--- (`operator-resulting-pos`) 6711--- - "%" with a count 6712--- - buffer changing commands (CTRL-^, :bnext, :bNext, etc.) 6713--- - Ex commands that only have a line number, e.g., ":25" or ":+". 6714--- In case of buffer changing commands the cursor is placed at the column 6715--- where it was the last time the buffer was edited. 6716--- 6717--- @type boolean 6718vim . o . startofline =false 6719vim . o . sol =vim . o . startofline 6720vim . go . startofline =vim . o . startofline 6721vim . go . sol =vim . go . startofline 6722 6723--- When non-empty, this option determines the content of the area to the 6724--- side of a window, normally containing the fold, sign and number columns. 6725--- The format of this option is like that of 'statusline'. 6726--- 6727--- Some of the items from the 'statusline' format are different for 6728--- 'statuscolumn': 6729--- 6730--- %l line number column for currently drawn line 6731--- %s sign column for currently drawn line 6732--- %C fold column for currently drawn line 6733--- 6734--- The 'statuscolumn' width follows that of the default columns and 6735--- adapts to the 'numberwidth', 'signcolumn' and 'foldcolumn' option values 6736--- (regardless of whether the sign and fold items are present). 6737--- Additionally, the 'statuscolumn' grows with the size of the evaluated 6738--- format string, up to a point (following the maximum size of the default 6739--- fold, sign and number columns). Shrinking only happens when the number 6740--- of lines in a buffer changes, or the 'statuscolumn' option is set. 6741--- 6742--- The `v:lnum` variable holds the line number to be drawn. 6743--- The `v:relnum` variable holds the relative line number to be drawn. 6744--- The `v:virtnum` variable is negative when drawing virtual lines, zero 6745--- when drawing the actual buffer line, and positive when 6746--- drawing the wrapped part of a buffer line. 6747--- 6748--- When using `v:relnum`, keep in mind that cursor movement by itself will 6749--- not cause the 'statuscolumn' to update unless 'relativenumber' is set. 6750--- 6751--- Examples: 6752--- 6753--- ```vim 6754--- " Line number with bar separator and click handlers: 6755--- set statuscolumn=%@SignCb@%s%=%T%@NumCb@%l│%T 6756--- 6757--- " Line numbers in hexadecimal for non wrapped part of lines: 6758--- let &stc='%=%{v:virtnum>0?"":printf("%x",v:lnum)} ' 6759--- 6760--- " Human readable line numbers with thousands separator: 6761--- let &stc='%{substitute(v:lnum,"\\d\\zs\\ze\\' 6762--- . '%(\\d\\d\\d\\)\\+$",",","g")}' 6763--- 6764--- " Both relative and absolute line numbers with different 6765--- " highlighting for odd and even relative numbers: 6766--- let &stc='%#NonText#%{&nu?v:lnum:""}' . 6767--- '%=%{&rnu&&(v:lnum%2)?"\ ".v:relnum:""}' . 6768--- '%#LineNr#%{&rnu&&!(v:lnum%2)?"\ ".v:relnum:""}' 6769--- ``` 6770--- WARNING: this expression is evaluated for each screen line so defining 6771--- an expensive expression can negatively affect render performance. 6772--- 6773--- @type string 6774vim . o . statuscolumn ="" 6775vim . o . stc =vim . o . statuscolumn 6776vim . wo . statuscolumn =vim . o . statuscolumn 6777vim . wo . stc =vim . wo . statuscolumn 6778 6779--- Sets the `status-line`. 6780--- 6781--- Contains printf-style "%" items interspersed with normal text, where 6782--- each item has the form: 6783--- ``` 6784--- %-0{minwid}.{maxwid}{item} 6785--- ``` 6786--- 6787--- All fields except {item} are optional. Use "%%" to show a literal "%" 6788--- char. Setting to empty (`:set statusline=`) sets the global value to 6789--- the default. 6790--- 6791--- *stl-%!* 6792--- When the option starts with "%!" then it is used as an expression, 6793--- evaluated and the result is used as the option value. Example: 6794--- 6795--- ```vim 6796--- set statusline=%!MyStatusLine() 6797--- ``` 6798--- The *g:statusline_winid* variable will be set to the `window-ID` of the 6799--- window that the status line belongs to. 6800--- The result can contain %{} items that will be evaluated too. 6801--- Note that the "%!" expression is evaluated in the context of the 6802--- current window and buffer, while %{} items are evaluated in the 6803--- context of the window that the statusline belongs to. 6804--- 6805--- When there is an error while evaluating the option it will be reset to 6806--- its default value to avoid further errors. Otherwise screen updating 6807--- would loop. When the result contains unprintable characters the 6808--- result is unpredictable. 6809--- 6810--- When 'ruler' is on, the default 'statusline' includes 'rulerformat'. 6811--- See note below. 6812--- Note that if 'statusline' is configured without including the ruler, 6813--- the only effect of 'ruler' when this option is set (and 'laststatus' 6814--- is 2 or 3) is controlling the output of `CTRL-G`. 6815--- 6816--- field meaning ~ 6817--- - Left justify the item. The default is right justified 6818--- when minwid is larger than the length of the item. 6819--- 0 Leading zeroes in numeric items. Overridden by "-". 6820--- minwid Minimum width of the item, padding as set by "-" & "0". 6821--- Value must be 50 or less. 6822--- maxwid Maximum width of the item. Truncation occurs with a "<" 6823--- on the left for text items. Numeric items will be 6824--- shifted down to maxwid-2 digits followed by ">"number 6825--- where number is the amount of missing digits, much like 6826--- an exponential notation. 6827--- item A one letter code as described below. 6828--- 6829--- Following is a description of the possible statusline items. The 6830--- second character in "item" is the type: 6831--- "N" for number 6832--- "S" for string 6833--- "F" for flags as described below 6834--- "-" not applicable 6835--- 6836--- item meaning ~ 6837--- f S Path to the file in the buffer, as typed or relative to current 6838--- directory. 6839--- F S Full path to the file in the buffer. 6840--- t S File name (tail) of file in the buffer. 6841--- m F Modified flag, text is "[+]"; "[-]" if 'modifiable' is off. 6842--- M F Modified flag, text is ",+" or ",-". 6843--- r F Readonly flag, text is "[RO]". 6844--- R F Readonly flag, text is ",RO". 6845--- h F Help buffer flag, text is "[help]". 6846--- H F Help buffer flag, text is ",HLP". 6847--- w F Preview window flag, text is "[Preview]". 6848--- W F Preview window flag, text is ",PRV". 6849--- y F Type of file in the buffer, e.g., "[vim]". See 'filetype'. 6850--- Y F Type of file in the buffer, e.g., ",VIM". See 'filetype'. 6851--- q S "[Quickfix List]", "[Location List]" or empty. 6852--- k S Value of "b:keymap_name" or 'keymap' when `:lmap` mappings are 6853--- being used: "<keymap>" 6854--- n N Buffer number. 6855--- b N Value of character under cursor. 6856--- B N As above, in hexadecimal. 6857--- o N Byte number in file of byte under cursor, first byte is 1. 6858--- Mnemonic: Offset from start of file (with one added) 6859--- O N As above, in hexadecimal. 6860--- l N Line number. 6861--- L N Number of lines in buffer. 6862--- c N Column number (byte index). 6863--- v N Virtual column number (screen column). 6864--- V N Virtual column number as -{num}. Not displayed if equal to 'c'. 6865--- p N Percentage through file in lines as in `CTRL-G`. 6866--- P S Percentage through file of displayed window. This is like the 6867--- percentage described for 'ruler'. Always 3 in length, unless 6868--- translated. 6869--- S S 'showcmd' content, see 'showcmdloc'. 6870--- a S Argument list status as in default title. ({current} of {max}) 6871--- Empty if the argument file count is zero or one. 6872--- { NF Evaluate expression between "%{" and "}" and substitute result. 6873--- Note that there is no "%" before the closing "}". The 6874--- expression cannot contain a "}" character, call a function to 6875--- work around that. See `stl-%{` below. Use "%0{" to insert the 6876--- result verbatim. 6877--- `{%` - This is almost same as "{" except the result of the expression is 6878--- re-evaluated as a statusline format string. Thus if the 6879--- return value of expr contains "%" items they will get expanded. 6880--- The expression can contain the "}" character, the end of 6881--- expression is denoted by "%}". 6882--- For example: 6883--- 6884--- ```vim 6885--- func! Stl_filename() abort 6886--- return "%t" 6887--- endfunc 6888--- ``` 6889--- `stl=%{Stl_filename()}` results in `"%t"` 6890--- `stl=%{%Stl_filename()%}` results in `"Name of current file"` 6891--- The default status line uses this to include 'rulerformat', see 6892--- note below. 6893--- %} - End of "{%" expression 6894--- ( - Start of item group. Can be used for setting the width and 6895--- alignment of a section. Must be followed by %) somewhere. 6896--- ) - End of item group. No width fields allowed. 6897--- T N For 'tabline': start of tabpage N label. Use %T or %X to end 6898--- the label. Clicking this label with left mouse button switches 6899--- to the specified tabpage, while clicking it with middle mouse 6900--- button closes the specified tabpage. 6901--- X N For 'tabline': start of close tab N label. Use %X or %T to end 6902--- the label, e.g.: %3Xclose%X. Use %999X for a "close current 6903--- tab" label. Clicking this label with left mouse button closes 6904--- the specified tabpage. 6905--- @ N Start of execute function label. Use %X or %T to end the label, 6906--- e.g.: %10@SwitchBuffer@foo.c%X. Clicking this label runs the 6907--- specified function: in the example when clicking once using left 6908--- mouse button on "foo.c", a `SwitchBuffer(10, 1, 'l', ' ')` 6909--- expression will be run. The specified function receives the 6910--- following arguments in order: 6911--- 1. minwid field value or zero if no N was specified 6912--- 2. number of mouse clicks to detect multiple clicks 6913--- 3. mouse button used: "l", "r" or "m" for left, right or middle 6914--- button respectively; one should not rely on third argument 6915--- being only "l", "r" or "m": any other non-empty string value 6916--- that contains only ASCII lower case letters may be expected 6917--- for other mouse buttons 6918--- 4. modifiers pressed: string which contains "s" if shift 6919--- modifier was pressed, "c" for control, "a" for alt and "m" 6920--- for meta; currently if modifier is not pressed string 6921--- contains space instead, but one should not rely on presence 6922--- of spaces or specific order of modifiers: use `stridx()` to 6923--- test whether some modifier is present; string is guaranteed 6924--- to contain only ASCII letters and spaces, one letter per 6925--- modifier; "?" modifier may also be present, but its presence 6926--- is a bug that denotes that new mouse button recognition was 6927--- added without modifying code that reacts on mouse clicks on 6928--- this label. 6929--- 6930--- Use `getmousepos()`.winid in the specified function to get the 6931--- corresponding `window-ID` of the clicked item. 6932--- \< - Where to truncate line if too long. Default is at the first 6933--- item. Truncation markers within item groups apply to the 6934--- truncation of that group until its maxwid is reached. 6935--- In case of several competing truncation markers, the first wins. 6936--- No width fields allowed. 6937--- = - Separation point between alignment sections. Each section will 6938--- be separated by an equal number of spaces. With one %= what 6939--- comes after it will be right-aligned. With two %= there is a 6940--- middle part, with white space left and right of it. 6941--- Alignment sections within item groups will be separated until 6942--- minwid of the group is reached. 6943--- No width fields allowed. 6944--- # - Set highlight group. The name must follow and then a # again. 6945--- Thus use %#HLname# for highlight group HLname. The same 6946--- highlighting is used, also for the statusline of non-current 6947--- windows. 6948--- $ - Same as `#`, except the `%$HLname$` group will inherit from 6949--- preceding highlight attributes. 6950--- * - Set highlight group to User{N}, where {N} is taken from the 6951--- minwid field, e.g. %1*. Restore normal highlight with %* or 6952--- %0*. The difference between User{N} and StatusLine will be 6953--- applied to StatusLineNC for the statusline of non-current 6954--- windows. 6955--- The number N must be between 1 and 9. See `hl-User1..9` 6956--- #( - Start of a highlight scope. The exact highlighting before the 6957--- scope is reset at the end. No width fields allowed. 6958--- #) - End of highlight scope. No width fields allowed. 6959--- 6960--- When displaying a flag, Vim removes the leading comma, if any, when 6961--- that flag comes right after plaintext. This will make a nice display 6962--- when flags are used like in the examples below. 6963--- 6964--- When all items in a group becomes an empty string (i.e. flags that are 6965--- not set) and a minwid is not set for the group, the whole group will 6966--- become empty. This will make a group like the following disappear 6967--- completely from the statusline when none of the flags are set. 6968--- 6969--- ```vim 6970--- set statusline=...%(\ [%M%R%H]%)... 6971--- ``` 6972--- Beware that an expression is evaluated each and every time the status 6973--- line is displayed. 6974--- *stl-%{* *g:actual_curbuf* *g:actual_curwin* 6975--- While evaluating %{} the current buffer and current window will be set 6976--- temporarily to that of the window (and buffer) whose statusline is 6977--- currently being drawn. The expression will evaluate in this context. 6978--- The variable "g:actual_curbuf" is set to the `bufnr()` number of the 6979--- real current buffer and "g:actual_curwin" to the `window-ID` of the 6980--- real current window. These values are strings. 6981--- 6982--- The 'statusline' option will be evaluated in the `sandbox` if set from 6983--- a modeline, see `sandbox-option`. 6984--- This option cannot be set in a modeline when 'modelineexpr' is off. 6985--- 6986--- It is not allowed to change text or jump to another window while 6987--- evaluating 'statusline' `textlock`. 6988--- 6989--- If the statusline is not updated when you want it (e.g., after setting 6990--- a variable that's used in an expression), you can force an update by 6991--- using `:redrawstatus`. 6992--- 6993--- A result of all digits is regarded a number for display purposes. 6994--- Otherwise the result is taken as flag text and applied to the rules 6995--- described above. 6996--- *stl-%0{* 6997--- With %0{ neither applies: the result is inserted as a literal string. 6998--- 6999--- Watch out for errors in expressions. They may render Vim unusable! 7000--- If you are stuck, hold down ':' or 'Q' to get a prompt, then quit and 7001--- edit your vimrc or whatever with "vim --clean" to get it right. 7002--- 7003--- Examples: 7004--- A simple version of the standard status line with 'ruler' set 7005--- 7006--- ```vim 7007--- set statusline=%f\ %h%w%m%r%=\ %-14.(%l,%c%V%)\ %P 7008--- ``` 7009--- Similar, but add ASCII value of char under the cursor (like "ga") 7010--- 7011--- ```vim 7012--- set statusline=%f%h%m%r%=\ %b\ 0x%B\ \ %l,%c%V\ %P 7013--- ``` 7014--- Display byte count and byte value, modified flag in red. 7015--- 7016--- ```vim 7017--- set statusline=%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b' 7018--- hi User1 term=inverse,bold cterm=inverse,bold ctermfg=red 7019--- ``` 7020--- Display a ,GZ flag if a compressed file is loaded 7021--- 7022--- ```vim 7023--- set statusline=...%r%{VarExists('b:gzflag','\ [GZ]')}%h... 7024--- ``` 7025--- In the `:autocmd`'s: 7026--- 7027--- ```vim 7028--- let b:gzflag = 1 7029--- ``` 7030--- And: 7031--- 7032--- ```vim 7033--- unlet b:gzflag 7034--- ``` 7035--- And define this function: 7036--- 7037--- ```vim 7038--- function VarExists(var, val) 7039--- if exists(a:var) | return a:val | else | return '' | endif 7040--- endfunction 7041--- ``` 7042--- 7043--- Note: By default, the status line is truncated from the left, and the 7044--- ruler from the right. But the status line can include the ruler. 7045--- To ensure that a top-level (i.e. not inside an item group) `%<` in 7046--- 'rulerformat' doesn't change the truncation of the status line, 7047--- - 'statusline' can be prepended with an explicit `%<`, which otherwise 7048--- would not be necessary. Example: 7049--- 7050--- ```vim 7051--- set statusline=%<%f%=\ %{%&rulerformat%} 7052--- ``` 7053--- - Or the ruler can be wrapped in an item group, which also collapses 7054--- any top-level `%=` in 'rulerformat' unless minwid is specified: 7055--- 7056--- ```vim 7057--- set statusline=%f%=\ %(%{%&rulerformat%}%) 7058--- ``` 7059--- 7060--- 7061--- @type string 7062vim . o . statusline ="%<%f%( %h%w%m%r%{ v:lua.require('vim._core.util').term_exitcode() }%)%= %(%-10S %)%{ &busy > 0 ? '◐ ' : '' }%(%{ luaeval('(package.loaded[''vim.ui''] and vim.api.nvim_get_current_win() == tonumber(vim.g.actual_curwin or -1) and vim.ui.progress_status()) or '''' ')} %)%{% luaeval('(package.loaded[''vim.diagnostic''] and next(vim.diagnostic.count(0)) and vim.diagnostic.status() .. '' '') or '''' ') %}%(%k %)%{% &ruler ? &rulerformat : '' %}" 7063vim . o . stl =vim . o . statusline 7064vim . wo . statusline =vim . o . statusline 7065vim . wo . stl =vim . wo . statusline 7066vim . go . statusline =vim . o . statusline 7067vim . go . stl =vim . go . statusline 7068 7069--- Files with these suffixes get a lower priority when multiple files 7070--- match a wildcard. See `suffixes`. Commas can be used to separate the 7071--- suffixes. Spaces after the comma are ignored. A dot is also seen as 7072--- the start of a suffix. To avoid a dot or comma being recognized as a 7073--- separator, precede it with a backslash (see `option-backslash` about 7074--- including spaces and backslashes). 7075--- See 'wildignore' for completely ignoring files. 7076--- The use of `:set+=` and `:set-=` is preferred when adding or removing 7077--- suffixes from the list. This avoids problems when a future version 7078--- uses another default. 7079--- 7080--- @type string 7081vim . o . suffixes =".bak,~,.o,.h,.info,.swp,.obj" 7082vim . o . su =vim . o . suffixes 7083vim . go . suffixes =vim . o . suffixes 7084vim . go . su =vim . go . suffixes 7085 7086--- Comma-separated list of suffixes, which are used when searching for a 7087--- file for the "gf", "[I", etc. commands. Example: 7088--- 7089--- ```vim 7090--- set suffixesadd=.java 7091--- ``` 7092--- 7093--- 7094--- @type string 7095vim . o . suffixesadd ="" 7096vim . o . sua =vim . o . suffixesadd 7097vim . bo . suffixesadd =vim . o . suffixesadd 7098vim . bo . sua =vim . bo . suffixesadd 7099 7100--- Use a `swap-file` for the buffer (if 'updatecount' is non-zero). The 7101--- 'directory' option decides where swapfiles are stored. 7102--- 7103--- To open a new buffer without creating a swapfile, use `:noswapfile`. 7104--- To disable for an existing buffer, reset its 'swapfile' option. 7105--- Careful: 7106--- - Recovery will be impossible! 7107--- - The entire file will be in memory. 7108--- 7109--- When reset, the swapfile for the current buffer is immediately 7110--- deleted. When re-enabled (and 'updatecount' is non-zero), a swapfile 7111--- is immediately created. 7112--- 7113--- Used with 'bufhidden' and 'buftype' to specify `special-buffers`. 7114--- 7115--- @type boolean 7116vim . o . swapfile =true 7117vim . o . swf =vim . o . swapfile 7118vim . bo . swapfile =vim . o . swapfile 7119vim . bo . swf =vim . bo . swapfile 7120 7121--- This option controls the behavior when switching between buffers. 7122--- This option is checked, when 7123--- - jumping to errors with the `quickfix` commands (`:cc`, `:cn`, `:cp`, 7124--- etc.). 7125--- - jumping to a tag using the `:stag` command. 7126--- - opening a file using the `CTRL-W_f` or `CTRL-W_F` command. 7127--- - jumping to a buffer using a buffer split command (e.g. `:sbuffer`, 7128--- `:sbnext`, or `:sbrewind`). 7129--- Possible values (comma-separated list): 7130--- useopen If included, jump to the first open window in the 7131--- current tabpage that contains the specified buffer 7132--- (if there is one). Otherwise: Do not examine other 7133--- windows. 7134--- usetab Like "useopen", but also consider windows in other 7135--- tabpages. 7136--- split If included, split the current window before loading 7137--- a buffer for a `quickfix` command that display errors. 7138--- Otherwise: do not split, use current window (when used 7139--- in the quickfix window: the previously used window or 7140--- split if there is no other window). 7141--- vsplit Just like "split" but split vertically. 7142--- newtab Like "split", but open a new tabpage. Overrules 7143--- "split" when both are present. 7144--- uselast If included, jump to the previously used window when 7145--- jumping to errors with `quickfix` commands. 7146--- If a window has 'winfixbuf' enabled, 'switchbuf' is currently not 7147--- applied to the split window. 7148--- 7149--- @type string 7150vim . o . switchbuf ="uselast" 7151vim . o . swb =vim . o . switchbuf 7152vim . go . switchbuf =vim . o . switchbuf 7153vim . go . swb =vim . go . switchbuf 7154 7155--- Maximum column in which to search for syntax items. In long lines the 7156--- text after this column is not highlighted and following lines may not 7157--- be highlighted correctly, because the syntax state is cleared. 7158--- This helps to avoid very slow redrawing for an XML file that is one 7159--- long line. 7160--- Set to zero to remove the limit. 7161--- 7162--- @type integer 7163vim . o . synmaxcol =3000 7164vim . o . smc =vim . o . synmaxcol 7165vim . bo . synmaxcol =vim . o . synmaxcol 7166vim . bo . smc =vim . bo . synmaxcol 7167 7168--- When this option is set, the syntax with this name is loaded, unless 7169--- syntax highlighting has been switched off with ":syntax off". 7170--- Otherwise this option does not always reflect the current syntax (the 7171--- b:current_syntax variable does). 7172--- This option is most useful in a modeline, for a file which syntax is 7173--- not automatically recognized. Example, in an IDL file: >c 7174--- /* vim: set syntax=idl : */ 7175--- ``` 7176--- When a dot appears in the value then this separates two filetype 7177--- names. Example: >c 7178--- /* vim: set syntax=c.doxygen : */ 7179--- ``` 7180--- This will use the "c" syntax first, then the "doxygen" syntax. 7181--- Note that the second one must be prepared to be loaded as an addition, 7182--- otherwise it will be skipped. More than one dot may appear. 7183--- To switch off syntax highlighting for the current file, use: 7184--- 7185--- ```vim 7186--- set syntax=OFF 7187--- ``` 7188--- To switch syntax highlighting on according to the current value of the 7189--- 'filetype' option: 7190--- 7191--- ```vim 7192--- set syntax=ON 7193--- ``` 7194--- What actually happens when setting the 'syntax' option is that the 7195--- Syntax autocommand event is triggered with the value as argument. 7196--- This option is not copied to another buffer, independent of the 's' or 7197--- 'S' flag in 'cpoptions'. 7198--- Only alphanumeric characters, '.', '-' and '_' can be used. 7199--- 7200--- @type string 7201vim . o . syntax ="" 7202vim . o . syn =vim . o . syntax 7203vim . bo . syntax =vim . o . syntax 7204vim . bo . syn =vim . bo . syntax 7205 7206--- This option controls the behavior when closing tabpages (e.g., using 7207--- `:tabclose`). When empty Vim goes to the next (right) tabpage. 7208--- 7209--- Possible values (comma-separated list): 7210--- left If included, go to the previous tabpage instead of 7211--- the next one. 7212--- uselast If included, go to the previously used tabpage if 7213--- possible. This option takes precedence over the 7214--- others. 7215--- 7216--- @type string 7217vim . o . tabclose ="" 7218vim . o . tcl =vim . o . tabclose 7219vim . go . tabclose =vim . o . tabclose 7220vim . go . tcl =vim . go . tabclose 7221 7222--- When non-empty, this option determines the content of the tabpages 7223--- line at the top of the Vim window. When empty Vim will use a default 7224--- tabpages line. See `setting-tabline` for more info. 7225--- 7226--- The tabpages line only appears as specified with the 'showtabline' 7227--- option and only when there is no GUI tab line. When 'e' is in 7228--- 'guioptions' and the GUI supports a tab line 'guitablabel' is used 7229--- instead. Note that the two tabpages lines are very different. 7230--- 7231--- The value is evaluated like with 'statusline'. You can use 7232--- `tabpagenr()`, `tabpagewinnr()` and `tabpagebuflist()` to figure out 7233--- the text to be displayed. Use "%1T" for the first label, "%2T" for 7234--- the second one, etc. Use "%X" items for closing labels. 7235--- 7236--- When changing something that is used in 'tabline' that does not 7237--- trigger it to be updated, use `:redrawtabline`. 7238--- This option cannot be set in a modeline when 'modelineexpr' is off. 7239--- 7240--- Keep in mind that only one of the tabpages is the current one, others 7241--- are invisible and you can't jump to their windows. 7242--- 7243--- @type string 7244vim . o . tabline ="" 7245vim . o . tal =vim . o . tabline 7246vim . go . tabline =vim . o . tabline 7247vim . go . tal =vim . go . tabline 7248 7249--- Maximum number of tabpages to be opened by the `-p` command line 7250--- argument or the ":tab all" command. `tabpage` 7251--- 7252--- @type integer 7253vim . o . tabpagemax =50 7254vim . o . tpm =vim . o . tabpagemax 7255vim . go . tabpagemax =vim . o . tabpagemax 7256vim . go . tpm =vim . go . tabpagemax 7257 7258--- Defines the column multiple used to display the Horizontal Tab 7259--- character (ASCII 9); a Horizontal Tab always advances to the next tab 7260--- stop. 7261--- The value must be at least 1 and at most 9999. 7262--- If 'vartabstop' is set, this option is ignored. 7263--- Leave it at 8 unless you have a strong reason (see usr `30.5`). 7264--- 7265--- @type integer 7266vim . o . tabstop =8 7267vim . o . ts =vim . o . tabstop 7268vim . bo . tabstop =vim . o . tabstop 7269vim . bo . ts =vim . bo . tabstop 7270 7271--- When searching for a tag (e.g., for the `:ta` command), Vim can either 7272--- use a binary search or a linear search in a tags file. Binary 7273--- searching makes searching for a tag a LOT faster, but a linear search 7274--- will find more tags if the tags file wasn't properly sorted. 7275--- Vim normally assumes that your tags files are sorted, or indicate that 7276--- they are not sorted. Only when this is not the case does the 7277--- 'tagbsearch' option need to be switched off. 7278--- 7279--- When 'tagbsearch' is on, binary searching is first used in the tags 7280--- files. In certain situations, Vim will do a linear search instead for 7281--- certain files, or retry all files with a linear search. When 7282--- 'tagbsearch' is off, only a linear search is done. 7283--- 7284--- Linear searching is done anyway, for one file, when Vim finds a line 7285--- at the start of the file indicating that it's not sorted: 7286--- ``` 7287--- !_TAG_FILE_SORTED 0 /some comment/ 7288--- ``` 7289--- [The whitespace before and after the '0' must be a single <Tab>] 7290--- 7291--- When a binary search was done and no match was found in any of the 7292--- files listed in 'tags', and case is ignored or a pattern is used 7293--- instead of a normal tag name, a retry is done with a linear search. 7294--- Tags in unsorted tags files, and matches with different case will only 7295--- be found in the retry. 7296--- 7297--- If a tag file indicates that it is case-fold sorted, the second, 7298--- linear search can be avoided when case is ignored. Use a value of '2' 7299--- in the "!_TAG_FILE_SORTED" line for this. A tag file can be case-fold 7300--- sorted with the -f switch to "sort" in most unices, as in the command: 7301--- "sort -f -o tags tags". For Universal ctags and Exuberant ctags 7302--- version 5.x or higher (at least 5.5) the --sort=foldcase switch can be 7303--- used for this as well. Note that case must be folded to uppercase for 7304--- this to work. 7305--- 7306--- By default, tag searches are case-sensitive. Case is ignored when 7307--- 'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is 7308--- "ignore". 7309--- Also when 'tagcase' is "followscs" and 'smartcase' is set, or 7310--- 'tagcase' is "smart", and the pattern contains only lowercase 7311--- characters. 7312--- 7313--- When 'tagbsearch' is off, tags searching is slower when a full match 7314--- exists, but faster when no full match exists. Tags in unsorted tags 7315--- files may only be found with 'tagbsearch' off. 7316--- When the tags file is not sorted, or sorted in a wrong way (not on 7317--- ASCII byte value), 'tagbsearch' should be off, or the line given above 7318--- must be included in the tags file. 7319--- This option doesn't affect commands that find all matching tags (e.g., 7320--- command-line completion and ":help"). 7321--- 7322--- @type boolean 7323vim . o . tagbsearch =true 7324vim . o . tbs =vim . o . tagbsearch 7325vim . go . tagbsearch =vim . o . tagbsearch 7326vim . go . tbs =vim . go . tagbsearch 7327 7328--- This option specifies how case is handled when searching the tags 7329--- file: 7330--- followic Follow the 'ignorecase' option 7331--- followscs Follow the 'smartcase' and 'ignorecase' options 7332--- ignore Ignore case 7333--- match Match case 7334--- smart Ignore case unless an upper case letter is used 7335--- 7336--- @type 'followic'|'ignore'|'match'|'followscs'|'smart' 7337vim . o . tagcase ="followic" 7338vim . o . tc =vim . o . tagcase 7339vim . bo . tagcase =vim . o . tagcase 7340vim . bo . tc =vim . bo . tagcase 7341vim . go . tagcase =vim . o . tagcase 7342vim . go . tc =vim . go . tagcase 7343 7344--- This option specifies a function to be used to perform tag searches 7345--- (including `taglist()`). 7346--- The function gets the tag pattern and should return a List of matching 7347--- tags. See `tag-function` for an explanation of how to write the 7348--- function and an example. The value can be the name of a function, a 7349--- `lambda` or a `Funcref`. See `option-value-function` for more 7350--- information. 7351--- 7352--- @type string|function 7353vim . o . tagfunc ="" 7354vim . o . tfu =vim . o . tagfunc 7355vim . bo . tagfunc =vim . o . tagfunc 7356vim . bo . tfu =vim . bo . tagfunc 7357 7358--- If non-zero, tags are significant up to this number of characters. 7359--- 7360--- @type integer 7361vim . o . taglength =0 7362vim . o . tl =vim . o . taglength 7363vim . go . taglength =vim . o . taglength 7364vim . go . tl =vim . go . taglength 7365 7366--- If on and using a tags file in another directory, file names in that 7367--- tags file are relative to the directory where the tags file is. 7368--- 7369--- @type boolean 7370vim . o . tagrelative =true 7371vim . o . tr =vim . o . tagrelative 7372vim . go . tagrelative =vim . o . tagrelative 7373vim . go . tr =vim . go . tagrelative 7374 7375--- Filenames for the tag command, separated by spaces or commas. To 7376--- include a space or comma in a file name, precede it with backslashes 7377--- (see `option-backslash` about including spaces/commas and backslashes). 7378--- When a file name starts with "./", the '.' is replaced with the path 7379--- of the current file. But only when the 'd' flag is not included in 7380--- 'cpoptions'. Environment variables are expanded `:set_env`. Also see 7381--- `tags-option`. 7382--- "*", "**" and other wildcards can be used to search for tags files in 7383--- a directory tree. See `file-searching`. E.g., "/lib/**/tags" will 7384--- find all files named "tags" below "/lib". The filename itself cannot 7385--- contain wildcards, it is used as-is. E.g., "/lib/**/tags?" will find 7386--- files called "tags?". 7387--- The `tagfiles()` function can be used to get a list of the file names 7388--- actually used. 7389--- The use of `:set+=` and `:set-=` is preferred when adding or removing 7390--- file names from the list. This avoids problems when a future version 7391--- uses another default. 7392--- 7393--- @type string 7394vim . o . tags ="./tags;,tags" 7395vim . o . tag =vim . o . tags 7396vim . bo . tags =vim . o . tags 7397vim . bo . tag =vim . bo . tags 7398vim . go . tags =vim . o . tags 7399vim . go . tag =vim . go . tags 7400 7401--- When on, the `tagstack` is used normally. When off, a ":tag" or 7402--- ":tselect" command with an argument will not push the tag onto the 7403--- tagstack. A following ":tag" without an argument, a ":pop" command or 7404--- any other command that uses the tagstack will use the unmodified 7405--- tagstack, but does change the pointer to the active entry. 7406--- Resetting this option is useful when using a ":tag" command in a 7407--- mapping which should not change the tagstack. 7408--- 7409--- @type boolean 7410vim . o . tagstack =true 7411vim . o . tgst =vim . o . tagstack 7412vim . go . tagstack =vim . o . tagstack 7413vim . go . tgst =vim . go . tagstack 7414 7415--- The terminal is in charge of Bi-directionality of text (as specified 7416--- by Unicode). The terminal is also expected to do the required shaping 7417--- that some languages (such as Arabic) require. 7418--- Setting this option implies that 'rightleft' will not be set when 7419--- 'arabic' is set and the value of 'arabicshape' will be ignored. 7420--- Note that setting 'termbidi' has the immediate effect that 7421--- 'arabicshape' is ignored, but 'rightleft' isn't changed automatically. 7422--- For further details see `l10n-arabic.txt`. 7423--- 7424--- @type boolean 7425vim . o . termbidi =false 7426vim . o . tbidi =vim . o . termbidi 7427vim . go . termbidi =vim . o . termbidi 7428vim . go . tbidi =vim . go . termbidi 7429 7430--- Enables 24-bit RGB color in the `TUI`. Uses "gui" `:highlight` 7431--- attributes instead of "cterm" attributes. `guifg` 7432--- Requires an ISO-8613-3 compatible terminal. 7433--- 7434--- Nvim will automatically attempt to determine if the host terminal 7435--- supports 24-bit color and will enable this option if it does 7436--- (unless explicitly disabled by the user). 7437--- 7438--- @type boolean 7439vim . o . termguicolors =false 7440vim . o . tgc =vim . o . termguicolors 7441vim . go . termguicolors =vim . o . termguicolors 7442vim . go . tgc =vim . go . termguicolors 7443 7444--- A comma-separated list of options for specifying control characters 7445--- to be removed from the text pasted into the terminal window. The 7446--- supported values are: 7447--- 7448--- BS Backspace 7449--- 7450--- HT TAB 7451--- 7452--- FF Form feed 7453--- 7454--- ESC Escape 7455--- 7456--- DEL DEL 7457--- 7458--- C0 Other control characters, excluding Line feed and 7459--- Carriage return < ' ' 7460--- 7461--- C1 Control characters 0x80...0x9F 7462--- 7463--- @type string 7464vim . o . termpastefilter ="BS,HT,ESC,DEL" 7465vim . o . tpf =vim . o . termpastefilter 7466vim . go . termpastefilter =vim . o . termpastefilter 7467vim . go . tpf =vim . go . termpastefilter 7468 7469--- If the host terminal supports it, buffer all screen updates 7470--- made during a redraw cycle so that each screen is displayed in 7471--- the terminal all at once. This can prevent tearing or flickering 7472--- when the terminal updates faster than Nvim can redraw. 7473--- 7474--- @type boolean 7475vim . o . termsync =true 7476vim . go . termsync =vim . o . termsync 7477 7478--- Maximum width of text that is being inserted. A longer line will be 7479--- broken after white space to get this width. A zero value disables 7480--- this. 7481--- When 'textwidth' is zero, 'wrapmargin' may be used. See also 7482--- 'formatoptions' and `ins-textwidth`. 7483--- When 'formatexpr' is set it will be used to break the line. 7484--- 7485--- @type integer 7486vim . o . textwidth =0 7487vim . o . tw =vim . o . textwidth 7488vim . bo . textwidth =vim . o . textwidth 7489vim . bo . tw =vim . bo . textwidth 7490 7491--- List of file names, separated by commas, that are used to lookup words 7492--- for thesaurus completion commands `i_CTRL-X_CTRL-T`. See 7493--- `compl-thesaurus`. 7494--- 7495--- This option is not used if 'thesaurusfunc' is set, either for the 7496--- buffer or globally. 7497--- 7498--- To include a comma in a file name precede it with a backslash. Spaces 7499--- after a comma are ignored, otherwise spaces are included in the file 7500--- name. See `option-backslash` about using backslashes. The use of 7501--- `:set+=` and `:set-=` is preferred when adding or removing directories 7502--- from the list. This avoids problems when a future version uses 7503--- another default. 7504--- Environment variables are expanded `:set_env`. 7505--- Backticks cannot be used in this option for security reasons. 7506--- 7507--- @type string 7508vim . o . thesaurus ="" 7509vim . o . tsr =vim . o . thesaurus 7510vim . bo . thesaurus =vim . o . thesaurus 7511vim . bo . tsr =vim . bo . thesaurus 7512vim . go . thesaurus =vim . o . thesaurus 7513vim . go . tsr =vim . go . thesaurus 7514 7515--- This option specifies a function to be used for thesaurus completion 7516--- with CTRL-X CTRL-T. `i_CTRL-X_CTRL-T` See `compl-thesaurusfunc`. 7517--- The value can be the name of a function, a `lambda` or a `Funcref`. 7518--- See `option-value-function` for more information. 7519--- 7520--- @type string|function 7521vim . o . thesaurusfunc ="" 7522vim . o . tsrfu =vim . o . thesaurusfunc 7523vim . bo . thesaurusfunc =vim . o . thesaurusfunc 7524vim . bo . tsrfu =vim . bo . thesaurusfunc 7525vim . go . thesaurusfunc =vim . o . thesaurusfunc 7526vim . go . tsrfu =vim . go . thesaurusfunc 7527 7528--- When on: The tilde command "~" behaves like an operator. 7529--- 7530--- @type boolean 7531vim . o . tildeop =false 7532vim . o . top =vim . o . tildeop 7533vim . go . tildeop =vim . o . tildeop 7534vim . go . top =vim . go . tildeop 7535 7536--- This option and 'timeoutlen' determine the behavior when part of a 7537--- mapped key sequence has been received. For example, if <c-f> is 7538--- pressed and 'timeout' is set, Nvim will wait 'timeoutlen' milliseconds 7539--- for any key that can follow <c-f> in a mapping. 7540--- 7541--- @type boolean 7542vim . o . timeout =true 7543vim . o . to =vim . o . timeout 7544vim . go . timeout =vim . o . timeout 7545vim . go . to =vim . go . timeout 7546 7547--- Time in milliseconds to wait for a mapped sequence to complete. 7548--- 7549--- @type integer 7550vim . o . timeoutlen =1000 7551vim . o . tm =vim . o . timeoutlen 7552vim . go . timeoutlen =vim . o . timeoutlen 7553vim . go . tm =vim . go . timeoutlen 7554 7555--- If enabled, Nvim will update the (GUI or terminal) window title. The 7556--- format is configured by 'titlestring'. By default it looks like: 7557--- ``` 7558--- filename [+=-] (path) - Nvim 7559--- ``` 7560--- 7561--- where: 7562--- ``` 7563--- filename the name of the file being edited 7564--- - indicates the file cannot be modified, 'ma' off 7565--- + indicates the file was modified 7566--- = indicates the file is read-only 7567--- =+ indicates the file is read-only and modified 7568--- (path) is the path of the file being edited 7569--- - Nvim the server name `v:servername` or "Nvim" 7570--- ``` 7571--- 7572--- 7573--- @type boolean 7574vim . o . title =false 7575vim . go . title =vim . o . title 7576 7577--- Gives the percentage of 'columns' to use for the length of the window 7578--- title. When the title is longer, only the end of the path name is 7579--- shown. A '<' character before the path name is used to indicate this. 7580--- Using a percentage makes this adapt to the width of the window. But 7581--- it won't work perfectly, because the actual number of characters 7582--- available also depends on the font used and other things in the title 7583--- bar. When 'titlelen' is zero the full path is used. Otherwise, 7584--- values from 1 to 30000 percent can be used. 7585--- 'titlelen' is also used for the 'titlestring' option. 7586--- 7587--- @type integer 7588vim . o . titlelen =85 7589vim . go . titlelen =vim . o . titlelen 7590 7591--- If not empty, this option will be used to set the window title when 7592--- exiting. Only if 'title' is enabled. 7593--- 7594--- @type string 7595vim . o . titleold ="" 7596vim . go . titleold =vim . o . titleold 7597 7598--- Formats the window title, enabled by the 'title' option. 7599--- 7600--- Contains printf-style "%" items, expanded according to the rules of 7601--- 'statusline'. If a "%" format is invalid, it is used as-is and no 7602--- error will be given. 7603--- 7604--- The default (empty) behaviour is equivalent to: 7605--- 7606--- ```vim 7607--- set titlestring=%t%(\ %M%)%(\ \(%{expand('%:p:~:h')}\)%)%a\ -\ Nvim 7608--- ``` 7609--- 7610--- Example: 7611--- 7612--- ```vim 7613--- auto BufEnter * let &titlestring = hostname() .. "/" .. expand("%:p") 7614--- set title titlestring=%<%F%=%l/%L-%P titlelen=70 7615--- ``` 7616--- The value of 'titlelen' is used to align items in the middle 7617--- or right of the available space. 7618--- 7619--- Example: to have the file name first: 7620--- 7621--- ```vim 7622--- set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%) 7623--- ``` 7624--- Note the use of "%{ }" and an expression to get the path of 7625--- the file, without the file name. The "%( %)" constructs add a 7626--- separating space only when needed. 7627--- 7628--- NOTE: Use of special characters in 'titlestring' may cause the display 7629--- to be garbled (e.g., when it contains a CR or NL character). 7630--- 7631--- This option cannot be set in a modeline when 'modelineexpr' is off. 7632--- 7633--- @type string 7634vim . o . titlestring ="" 7635vim . go . titlestring =vim . o . titlestring 7636 7637--- This option and 'ttimeoutlen' determine the behavior when part of a 7638--- key code sequence has been received by the `TUI`. 7639--- 7640--- For example if <Esc> (the \x1b byte) is received and 'ttimeout' is 7641--- set, Nvim waits 'ttimeoutlen' milliseconds for the terminal to 7642--- complete a key code sequence. If no input arrives before the timeout, 7643--- a single <Esc> is assumed. Many TUI cursor key codes start with <Esc>. 7644--- 7645--- On very slow systems this may fail, causing cursor keys not to work 7646--- sometimes. If you discover this problem you can ":set ttimeoutlen=9999". 7647--- Nvim will wait for the next character to arrive after an <Esc>. 7648--- 7649--- @type boolean 7650vim . o . ttimeout =true 7651vim . go . ttimeout =vim . o . ttimeout 7652 7653--- Time in milliseconds to wait for a key code sequence to complete. Also 7654--- used for CTRL-\ CTRL-N and CTRL-\ CTRL-G when part of a command has 7655--- been typed. 7656--- 7657--- @type integer 7658vim . o . ttimeoutlen =50 7659vim . o . ttm =vim . o . ttimeoutlen 7660vim . go . ttimeoutlen =vim . o . ttimeoutlen 7661vim . go . ttm =vim . go . ttimeoutlen 7662 7663--- Enables Nvim `TUI` features which assume a fast (usually local) host 7664--- terminal. During startup, Nvim queries the terminal (for 'background' 7665--- detection, etc.) and must wait for a response (or timeout). 7666--- 7667--- If your terminal environment is slow (e.g. remote SSH), or broken 7668--- (doesn't respond to queries), Nvim startup may be slower. Therefore 7669--- you can disable this option by setting the `$NVIM_NOTTYFAST` 7670--- environment variable before starting Nvim: 7671--- ``` 7672--- NVIM_NOTTYFAST=1 nvim 7673--- ``` 7674--- 7675--- The queries are performed early, before `--cmd` and user `config`, so 7676--- `:set nottyfast` in your config happens too late. 7677--- 7678--- @type boolean 7679vim . o . ttyfast =true 7680vim . o . tf =vim . o . ttyfast 7681vim . go . ttyfast =vim . o . ttyfast 7682vim . go . tf =vim . go . ttyfast 7683 7684--- List of directory names for undo files, separated with commas. 7685--- See 'backupdir' for details of the format. 7686--- "." means using the directory of the file. The undo file name for 7687--- "file.txt" is ".file.txt.un~". 7688--- For other directories the file name is the full path of the edited 7689--- file, with path separators replaced with "%". 7690--- When writing: The first directory that exists is used. "." always 7691--- works, no directories after "." will be used for writing. If none of 7692--- the directories exist Nvim will attempt to create the last directory in 7693--- the list. 7694--- When reading all entries are tried to find an undo file. The first 7695--- undo file that exists is used. When it cannot be read an error is 7696--- given, no further entry is used. 7697--- See `undo-persistence`. 7698--- Environment variables are expanded `:set_env`. 7699--- 7700--- Note that unlike 'directory' and 'backupdir', 'undodir' always acts as 7701--- though the trailing slashes are present (see 'backupdir' for what this 7702--- means). 7703--- 7704--- @type string 7705vim . o . undodir ="$XDG_STATE_HOME/nvim/undo//" 7706vim . o . udir =vim . o . undodir 7707vim . go . undodir =vim . o . undodir 7708vim . go . udir =vim . go . undodir 7709 7710--- When on, Vim automatically saves undo history to an undo file when 7711--- writing a buffer to a file, and restores undo history from the same 7712--- file on buffer read. 7713--- The directory where the undo file is stored is specified by 'undodir'. 7714--- For more information about this feature see `undo-persistence`. 7715--- The undo file is not read when 'undoreload' causes the buffer from 7716--- before a reload to be saved for undo. 7717--- When 'undofile' is turned off the undo file is NOT deleted. 7718--- 7719--- @type boolean 7720vim . o . undofile =false 7721vim . o . udf =vim . o . undofile 7722vim . bo . undofile =vim . o . undofile 7723vim . bo . udf =vim . bo . undofile 7724 7725--- Maximum number of changes that can be undone. Since undo information 7726--- is kept in memory, higher numbers will cause more memory to be used. 7727--- Nevertheless, a single change can already use a large amount of 7728--- memory. Set to 0 for Vi compatibility: One level of undo and "u" 7729--- undoes itself: 7730--- 7731--- ```vim 7732--- set ul=0 7733--- ``` 7734--- But you can also get Vi compatibility by including the 'u' flag in 7735--- 'cpoptions', and still be able to use CTRL-R to repeat undo. 7736--- Also see `undo-two-ways`. 7737--- Set to -1 for no undo at all. You might want to do this only for the 7738--- current buffer: 7739--- 7740--- ```vim 7741--- setlocal ul=-1 7742--- ``` 7743--- This helps when you run out of memory for a single change. 7744--- 7745--- The local value is set to -123456 when the global value is to be used. 7746--- 7747--- Also see `clear-undo`. 7748--- 7749--- @type integer 7750vim . o . undolevels =1000 7751vim . o . ul =vim . o . undolevels 7752vim . bo . undolevels =vim . o . undolevels 7753vim . bo . ul =vim . bo . undolevels 7754vim . go . undolevels =vim . o . undolevels 7755vim . go . ul =vim . go . undolevels 7756 7757--- Save the whole buffer for undo when reloading it. This applies to the 7758--- ":e!" command and reloading for when the buffer changed outside of 7759--- Vim. `FileChangedShell` 7760--- The save only happens when this option is negative or when the number 7761--- of lines is smaller than the value of this option. 7762--- Set this option to zero to disable undo for a reload. 7763--- 7764--- When saving undo for a reload, any undo file is not read. 7765--- 7766--- Note that this causes the whole buffer to be stored in memory. Set 7767--- this option to a lower value if you run out of memory. 7768--- 7769--- @type integer 7770vim . o . undoreload =10000 7771vim . o . ur =vim . o . undoreload 7772vim . go . undoreload =vim . o . undoreload 7773vim . go . ur =vim . go . undoreload 7774 7775--- The `swap-file` will be written after typing this many characters. 7776--- 7777--- - Ignored in buffers where 'buftype' is "nofile" or "nowrite". 7778--- - Initialized to 10000 when editing in readonly `-R` mode. 7779--- - To disable swapfiles per-buffer, unset the 'swapfile' option. 7780--- - To disable swapfiles globally, set this option to zero (or start 7781--- with `-n`). See `crash-recovery`. Existing swapfiles are not deleted. 7782--- - When re-enabled (from zero to non-zero), swapfiles are created for 7783--- all buffers that have 'swapfile' set. 7784--- 7785--- @type integer 7786vim . o . updatecount =200 7787vim . o . uc =vim . o . updatecount 7788vim . go . updatecount =vim . o . updatecount 7789vim . go . uc =vim . go . updatecount 7790 7791--- If this many milliseconds nothing is typed the swap file will be 7792--- written to disk (see `crash-recovery`). Also used for the 7793--- `CursorHold` autocommand event. 7794--- 7795--- @type integer 7796vim . o . updatetime =4000 7797vim . o . ut =vim . o . updatetime 7798vim . go . updatetime =vim . o . updatetime 7799vim . go . ut =vim . go . updatetime 7800 7801--- Defines variable-width soft tab stops. The value is a comma-separated 7802--- list of widths in columns. Each width defines the number of columns 7803--- before the next soft tab stop. The last value repeats indefinitely. 7804--- 7805--- For example, when editing assembly language files where statements 7806--- start in the 9th column and comments in the 41st, it may be useful 7807--- to use the following: 7808--- 7809--- ```vim 7810--- set varsofttabstop=8,32,8 7811--- ``` 7812--- This sets soft tab stops at column 8, then at column 40 (8 + 32), and 7813--- every 8 columns thereafter. 7814--- 7815--- Note: this setting overrides 'softtabstop'. 7816--- See section `30.5` of the user manual for detailed explanations on how 7817--- Vim works with tabs and spaces. 7818--- 7819--- @type string 7820vim . o . varsofttabstop ="" 7821vim . o . vsts =vim . o . varsofttabstop 7822vim . bo . varsofttabstop =vim . o . varsofttabstop 7823vim . bo . vsts =vim . bo . varsofttabstop 7824 7825--- Defines variable-width tab stops. The value is a comma-separated list 7826--- of widths in columns. Each width defines the number of columns before 7827--- the next tab stop; the last value repeats indefinitely. 7828--- 7829--- For example: 7830--- ``` 7831--- :set vartabstop=4,8 7832--- ``` 7833--- This places the first tab stop 4 columns from the start of the line 7834--- and each subsequent tab stop 8 columns apart. 7835--- 7836--- Note: this setting overrides 'tabstop'. 7837--- On UNIX, it is recommended to keep the default tabstop value of 8. 7838--- Consider setting 'varsofttabstop' instead. 7839--- See section `30.5` of the user manual for detailed explanations on how 7840--- Vim works with tabs and spaces. 7841--- 7842--- @type string 7843vim . o . vartabstop ="" 7844vim . o . vts =vim . o . vartabstop 7845vim . bo . vartabstop =vim . o . vartabstop 7846vim . bo . vts =vim . bo . vartabstop 7847 7848--- Sets the verbosity level. Also set by `-V` and `:verbose`. 7849--- 7850--- Tracing of assignments to options, mappings, etc. in Lua scripts is 7851--- enabled at level 1; Lua scripts are not traced when 'verbose' is 0, 7852--- for performance. 7853--- 7854--- If greater than or equal to a given level, Nvim produces the following 7855--- messages: 7856--- 7857--- Level Messages ~ 7858--- ---------------------------------------------------------------------- 7859--- 1 Enables Lua tracing (see above). Does not produce messages. 7860--- 2 When a file is ":source"'ed, or `shada` file is read or written. 7861--- 3 UI info, terminal capabilities. 7862--- 4 Shell commands. 7863--- 5 Every searched tags file and include file. 7864--- 8 Files for which a group of autocommands is executed. 7865--- 9 Executed autocommands. 7866--- 11 Finding items in a path. 7867--- 12 Vimscript function calls. 7868--- 13 When an exception is thrown, caught, finished, or discarded. 7869--- 14 Anything pending in a ":finally" clause. 7870--- 15 Ex commands from a script (truncated at 200 characters). 7871--- 16 Ex commands. 7872--- 7873--- If 'verbosefile' is set then the verbose messages are not displayed. 7874--- 7875--- @type integer 7876vim . o . verbose =0 7877vim . o . vbs =vim . o . verbose 7878vim . go . verbose =vim . o . verbose 7879vim . go . vbs =vim . go . verbose 7880 7881--- When not empty all messages are written in a file with this name. 7882--- When the file exists messages are appended. 7883--- Writing to the file ends when Vim exits or when 'verbosefile' is made 7884--- empty. Writes are buffered, thus may not show up for some time. 7885--- Setting 'verbosefile' to a new value is like making it empty first. 7886--- The difference with `:redir` is that verbose messages are not 7887--- displayed when 'verbosefile' is set. 7888--- Environment variables are expanded `:set_env`. 7889--- 7890--- @type string 7891vim . o . verbosefile ="" 7892vim . o . vfile =vim . o . verbosefile 7893vim . go . verbosefile =vim . o . verbosefile 7894vim . go . vfile =vim . go . verbosefile 7895 7896--- Name of the directory where to store files for `:mkview`. 7897--- Environment variables are expanded `:set_env`. 7898--- 7899--- @type string 7900vim . o . viewdir ="$XDG_STATE_HOME/nvim/view//" 7901vim . o . vdir =vim . o . viewdir 7902vim . go . viewdir =vim . o . viewdir 7903vim . go . vdir =vim . go . viewdir 7904 7905--- Changes the effect of the `:mkview` command. It is a comma-separated 7906--- list of words. Each word enables saving and restoring something: 7907--- word save and restore ~ 7908--- cursor cursor position in file and in window 7909--- curdir local current directory, if set with `:lcd` 7910--- folds manually created folds, opened/closed folds and local 7911--- fold options 7912--- options options and mappings local to a window or buffer (not 7913--- global values for local options), except Lua functions 7914--- `option-value-function`. 7915--- localoptions same as "options" 7916--- slash `deprecated` Always enabled. Uses "/" in filenames. 7917--- unix `deprecated` Always enabled. Uses "\n" line endings. 7918--- 7919--- @type string 7920vim . o . viewoptions ="folds,cursor,curdir" 7921vim . o . vop =vim . o . viewoptions 7922vim . go . viewoptions =vim . o . viewoptions 7923vim . go . vop =vim . go . viewoptions 7924 7925--- A comma-separated list of these words: 7926--- block Allow virtual editing in Visual block mode. 7927--- insert Allow virtual editing in Insert mode. 7928--- all Allow virtual editing in all modes. 7929--- onemore Allow the cursor to move just past the end of the line 7930--- none When used as the local value, do not allow virtual 7931--- editing even when the global value is set. When used 7932--- as the global value, "none" is the same as "". 7933--- NONE Alternative spelling of "none". 7934--- 7935--- Virtual editing means that the cursor can be positioned where there is 7936--- no actual character. This can be halfway into a tab or beyond the end 7937--- of the line. Useful for selecting a rectangle in Visual mode and 7938--- editing a table. 7939--- "onemore" is not the same, it will only allow moving the cursor just 7940--- after the last character of the line. This makes some commands more 7941--- consistent. Previously the cursor was always past the end of the line 7942--- if the line was empty. But it is far from Vi compatible. It may also 7943--- break some plugins or Vim scripts. For example because `l` can move 7944--- the cursor after the last character. Use with care! 7945--- Using the `$` command will move to the last character in the line, not 7946--- past it. This may actually move the cursor to the left! 7947--- The `g$` command will move to the end of the screen line. 7948--- It doesn't make sense to combine "all" with "onemore", but you will 7949--- not get a warning for it. 7950--- When combined with other words, "none" is ignored. 7951--- 7952--- @type string 7953vim . o . virtualedit ="" 7954vim . o . ve =vim . o . virtualedit 7955vim . wo . virtualedit =vim . o . virtualedit 7956vim . wo . ve =vim . wo . virtualedit 7957vim . go . virtualedit =vim . o . virtualedit 7958vim . go . ve =vim . go . virtualedit 7959 7960--- Use visual bell instead of beeping. Also see 'errorbells'. 7961--- 7962--- @type boolean 7963vim . o . visualbell =false 7964vim . o . vb =vim . o . visualbell 7965vim . go . visualbell =vim . o . visualbell 7966vim . go . vb =vim . go . visualbell 7967 7968--- Give a warning message when a shell command is used while the buffer 7969--- has been changed. 7970--- 7971--- @type boolean 7972vim . o . warn =true 7973vim . go . warn =vim . o . warn 7974 7975--- Allow specified keys that move the cursor left/right to move to the 7976--- previous/next line when the cursor is on the first/last character in 7977--- the line. Concatenate characters to allow this for these keys: 7978--- char key mode ~ 7979--- b <BS> Normal and Visual 7980--- s <Space> Normal and Visual 7981--- h "h" Normal and Visual (not recommended) 7982--- l "l" Normal and Visual (not recommended) 7983--- < <Left> Normal and Visual 7984--- > <Right> Normal and Visual 7985--- ~ "~" Normal 7986--- [ <Left> Insert and Replace 7987--- ] <Right> Insert and Replace 7988--- For example: 7989--- 7990--- ```vim 7991--- set ww=<,>,[,] 7992--- ``` 7993--- allows wrap only when cursor keys are used. 7994--- When the movement keys are used in combination with a delete or change 7995--- operator, the <EOL> also counts for a character. This makes "3h" 7996--- different from "3dh" when the cursor crosses the end of a line. This 7997--- is also true for "x" and "X", because they do the same as "dl" and 7998--- "dh". If you use this, you may also want to use the mapping 7999--- ":map <BS> X" to make backspace delete the character in front of the 8000--- cursor. 8001--- When 'l' is included and it is used after an operator at the end of a 8002--- line (not an empty line) then it will not move to the next line. This 8003--- makes "dl", "cl", "yl" etc. work normally. 8004--- 8005--- @type string 8006vim . o . whichwrap ="b,s" 8007vim . o . ww =vim . o . whichwrap 8008vim . go . whichwrap =vim . o . whichwrap 8009vim . go . ww =vim . go . whichwrap 8010 8011--- Character you have to type to start wildcard expansion in the 8012--- command-line, as specified with 'wildmode'. 8013--- More info here: `cmdline-completion`. 8014--- The character is not recognized when used inside a macro. See 8015--- 'wildcharm' for that. 8016--- Some keys will not work, such as CTRL-C, <CR> and Enter. 8017--- <Esc> can be used, but hitting it twice in a row will still exit 8018--- command-line as a failsafe measure. 8019--- Although 'wc' is a number option, it can be specified as a number, a 8020--- single character, a `key-notation` (e.g. <Up>, <C-F>) or a letter 8021--- preceded with a caret (e.g. `^F` is CTRL-F): 8022--- 8023--- ```vim 8024--- :set wc=27 8025--- :set wc=X 8026--- :set wc=^I 8027--- set wc=<Tab> 8028--- ``` 8029--- 'wildchar' also enables completion in search pattern contexts such as 8030--- `/`, `?`, `:s`, `:g`, `:v`, and `:vim`. To insert a literal <Tab> 8031--- instead of triggering completion, type <C-V><Tab> or "\t". 8032--- See also 'wildoptions' and `wildtrigger()`. 8033--- 8034--- @type integer 8035vim . o . wildchar =9 8036vim . o . wc =vim . o . wildchar 8037vim . go . wildchar =vim . o . wildchar 8038vim . go . wc =vim . go . wildchar 8039 8040--- 'wildcharm' works exactly like 'wildchar', except that it is 8041--- recognized when used inside a macro. You can find "spare" 8042--- command-line keys suitable for this option by looking at 8043--- `ex-edit-index`. Normally you'll never actually type 'wildcharm', 8044--- just use it in mappings that automatically invoke completion mode, 8045--- e.g.: 8046--- 8047--- ```vim 8048--- set wcm=<C-Z> 8049--- cnoremap ss so $vim/sessions/*.vim<C-Z> 8050--- ``` 8051--- Then after typing :ss you can use CTRL-P & CTRL-N. 8052--- 8053--- @type integer 8054vim . o . wildcharm =0 8055vim . o . wcm =vim . o . wildcharm 8056vim . go . wildcharm =vim . o . wildcharm 8057vim . go . wcm =vim . go . wildcharm 8058 8059--- A list of file patterns. A file that matches with one of these 8060--- patterns is ignored when expanding `wildcards`, completing file or 8061--- directory names, and influences the result of `expand()`, `glob()` and 8062--- `globpath()` unless a flag is passed to disable this. 8063--- The pattern is used like with `:autocmd`, see `autocmd-pattern`. 8064--- Also see 'suffixes'. 8065--- Example: 8066--- 8067--- ```vim 8068--- set wildignore=*.o,*.obj 8069--- ``` 8070--- The use of `:set+=` and `:set-=` is preferred when adding or removing 8071--- a pattern from the list. This avoids problems when a future version 8072--- uses another default. 8073--- 8074--- @type string 8075vim . o . wildignore ="" 8076vim . o . wig =vim . o . wildignore 8077vim . go . wildignore =vim . o . wildignore 8078vim . go . wig =vim . go . wildignore 8079 8080--- When set case is ignored when completing file names and directories. 8081--- Has no effect when 'fileignorecase' is set. 8082--- Does not apply when the shell is used to expand wildcards, which 8083--- happens when there are special characters. 8084--- 8085--- @type boolean 8086vim . o . wildignorecase =false 8087vim . o . wic =vim . o . wildignorecase 8088vim . go . wildignorecase =vim . o . wildignorecase 8089vim . go . wic =vim . go . wildignorecase 8090 8091--- When 'wildmenu' is on, command-line completion operates in an enhanced 8092--- mode. On pressing 'wildchar' (usually <Tab>) to invoke completion, 8093--- the possible matches are shown. 8094--- When 'wildoptions' contains "pum", then the completion matches are 8095--- shown in a popup menu. Otherwise they are displayed just above the 8096--- command line, with the first match highlighted (overwriting the status 8097--- line, if there is one). 8098--- Keys that show the previous/next match, such as <Tab> or 8099--- CTRL-P/CTRL-N, cause the highlight to move to the appropriate match. 8100--- 'wildmode' must specify "full": "longest" and "list" do not start 8101--- 'wildmenu' mode. You can check the current mode with `wildmenumode()`. 8102--- The menu is cancelled when a key is hit that is not used for selecting 8103--- a completion. 8104--- 8105--- While the menu is active these keys have special meanings: 8106--- CTRL-P - go to the previous entry 8107--- CTRL-N - go to the next entry 8108--- <Left> <Right> - select previous/next match (like CTRL-P/CTRL-N) 8109--- <PageUp> - select a match several entries back 8110--- <PageDown> - select a match several entries further 8111--- <Up> - in filename/menu name completion: move up into 8112--- parent directory or parent menu. 8113--- <Down> - in filename/menu name completion: move into a 8114--- subdirectory or submenu. 8115--- <CR> - in menu completion, when the cursor is just after a 8116--- dot: move into a submenu. 8117--- CTRL-E - end completion, go back to what was there before 8118--- selecting a match. 8119--- CTRL-Y - accept the currently selected match and stop 8120--- completion. 8121--- 8122--- If you want <Left> and <Right> to move the cursor instead of selecting 8123--- a different match, use this: 8124--- 8125--- ```vim 8126--- cnoremap <Left> <Space><BS><Left> 8127--- cnoremap <Right> <Space><BS><Right> 8128--- ``` 8129--- 8130--- `hl-WildMenu` highlights the current match. 8131--- 8132--- @type boolean 8133vim . o . wildmenu =true 8134vim . o . wmnu =vim . o . wildmenu 8135vim . go . wildmenu =vim . o . wildmenu 8136vim . go . wmnu =vim . go . wildmenu 8137 8138--- Completion mode used for the character specified with 'wildchar'. 8139--- This option is a comma-separated list of up to four parts, 8140--- corresponding to the first, second, third, and fourth presses of 8141--- 'wildchar'. Each part is a colon-separated list of completion 8142--- behaviors, which are applied simultaneously during that phase. 8143--- 8144--- The possible behavior values are: 8145--- "" Only complete (insert) the first match. No further 8146--- matches are cycled or listed. 8147--- "full" Complete the next full match. Cycles through all 8148--- matches, returning to the original input after the 8149--- last match. If 'wildmenu' is enabled, it will be 8150--- shown. 8151--- "longest" Complete to the longest common substring. If this 8152--- doesn't extend the input, the next 'wildmode' part is 8153--- used. 8154--- "list" If multiple matches are found, list all of them. 8155--- "lastused" When completing buffer names, sort them by most 8156--- recently used (excluding the current buffer). Only 8157--- applies to buffer name completion. 8158--- "noselect" If 'wildmenu' is enabled, show the menu but do not 8159--- preselect the first item. 8160--- "noinsert" If 'wildmenu' is enabled, show the menu and preselect 8161--- the first match, but do not insert it in the command 8162--- line. If both "noinsert" and "noselect" are present, 8163--- "noselect" takes precedence. 8164--- If only one match exists, it is completed fully, unless "noselect" or 8165--- "noinsert" is specified. 8166--- 8167--- Some useful combinations of colon-separated values: 8168--- "longest:full" Start with the longest common string and show 8169--- 'wildmenu' (if enabled). Does not cycle 8170--- through full matches. 8171--- "list:full" List all matches and complete first match. 8172--- "list:longest" List all matches and complete till the longest 8173--- common prefix. 8174--- "list:lastused" List all matches. When completing buffers, 8175--- sort them by most recently used (excluding the 8176--- current buffer). 8177--- "noselect:lastused" Do not preselect the first item in 'wildmenu' 8178--- if it is active. When completing buffers, 8179--- sort them by most recently used (excluding the 8180--- current buffer). 8181--- 8182--- Examples: 8183--- 8184--- ```vim 8185--- set wildmode=full 8186--- ``` 8187--- Complete full match on every press (default behavior) 8188--- 8189--- ```vim 8190--- set wildmode=longest,full 8191--- ``` 8192--- First press: longest common substring 8193--- Second press: cycle through full matches 8194--- 8195--- ```vim 8196--- set wildmode=list:full 8197--- ``` 8198--- First press: list all matches and complete the first one 8199--- 8200--- ```vim 8201--- set wildmode=list,full 8202--- ``` 8203--- First press: list matches only 8204--- Second press: complete full matches 8205--- 8206--- ```vim 8207--- set wildmode=longest,list 8208--- ``` 8209--- First press: longest common substring 8210--- Second press: list all matches 8211--- 8212--- ```vim 8213--- set wildmode=noselect:full 8214--- ``` 8215--- First press: show 'wildmenu' without completing or selecting 8216--- Second press: cycle full matches 8217--- 8218--- ```vim 8219--- set wildmode=noselect:lastused,full 8220--- ``` 8221--- Same as above, but buffer matches are sorted by time last used 8222--- More info here: `cmdline-completion`. 8223--- 8224--- @type string 8225vim . o . wildmode ="full" 8226vim . o . wim =vim . o . wildmode 8227vim . go . wildmode =vim . o . wildmode 8228vim . go . wim =vim . go . wildmode 8229 8230--- A list of words that change how `cmdline-completion` is done. 8231--- The following values are supported: 8232--- exacttext When this flag is present, search pattern completion 8233--- (e.g., in `/`, `?`, `:s`, `:g`, `:v`, and `:vim`) 8234--- shows exact buffer text as menu items, without 8235--- preserving regex artifacts like position 8236--- anchors (e.g., `/\\<`). This provides more intuitive 8237--- menu items that match the actual buffer text. 8238--- However, searches may be less accurate since the 8239--- pattern is not preserved exactly. 8240--- By default, Vim preserves the typed pattern (with 8241--- anchors) and appends the matched word. This preserves 8242--- search correctness, especially when using regular 8243--- expressions or with 'smartcase' enabled. However, the 8244--- case of the appended matched word may not exactly 8245--- match the case of the word in the buffer. 8246--- fuzzy Use `fuzzy-matching` to find completion matches. When 8247--- this value is specified, wildcard expansion will not 8248--- be used for completion. The matches will be sorted by 8249--- the "best match" rather than alphabetically sorted. 8250--- This will find more matches than the wildcard 8251--- expansion. Currently fuzzy matching based completion 8252--- is not supported for file and directory names and 8253--- instead wildcard expansion is used. 8254--- pum Display the completion matches using the popup menu in 8255--- the same style as the `ins-completion-menu`. When an 8256--- info popup is shown next to the menu, it can be 8257--- scrolled by moving the mouse pointer on top of it and 8258--- using the scroll wheel. 8259--- tagfile When using CTRL-D to list matching tags, the kind of 8260--- tag and the file of the tag is listed. Only one match 8261--- is displayed per line. Often used tag kinds are: 8262--- d #define 8263--- f function 8264--- 8265--- This option does not apply to `ins-completion`. See 'completeopt' for 8266--- that. 8267--- 8268--- @type string 8269vim . o . wildoptions ="pum,tagfile" 8270vim . o . wop =vim . o . wildoptions 8271vim . go . wildoptions =vim . o . wildoptions 8272vim . go . wop =vim . go . wildoptions 8273 8274--- only used in Win32 8275--- Some GUI versions allow the access to menu entries by using the ALT 8276--- key in combination with a character that appears underlined in the 8277--- menu. This conflicts with the use of the ALT key for mappings and 8278--- entering special characters. This option tells what to do: 8279--- no Don't use ALT keys for menus. ALT key combinations can be 8280--- mapped, but there is no automatic handling. 8281--- yes ALT key handling is done by the windowing system. ALT key 8282--- combinations cannot be mapped. 8283--- menu Using ALT in combination with a character that is a menu 8284--- shortcut key, will be handled by the windowing system. Other 8285--- keys can be mapped. 8286--- If the menu is disabled by excluding 'm' from 'guioptions', the ALT 8287--- key is never used for the menu. 8288--- This option is not used for <F10>; on Win32. 8289--- 8290--- @type 'yes'|'menu'|'no' 8291vim . o . winaltkeys ="menu" 8292vim . o . wak =vim . o . winaltkeys 8293vim . go . winaltkeys =vim . o . winaltkeys 8294vim . go . wak =vim . go . winaltkeys 8295 8296--- When non-empty, this option enables the window bar and determines its 8297--- contents. The window bar is a bar that's shown at the top of every 8298--- window with it enabled. The value of 'winbar' is evaluated like with 8299--- 'statusline'. 8300--- 8301--- When changing something that is used in 'winbar' that does not trigger 8302--- it to be updated, use `:redrawstatus`. 8303--- 8304--- Floating windows do not use the global value of 'winbar'. The 8305--- window-local value of 'winbar' must be set for a floating window to 8306--- have a window bar. 8307--- 8308--- This option cannot be set in a modeline when 'modelineexpr' is off. 8309--- 8310--- @type string 8311vim . o . winbar ="" 8312vim . o . wbr =vim . o . winbar 8313vim . wo . winbar =vim . o . winbar 8314vim . wo . wbr =vim . wo . winbar 8315vim . go . winbar =vim . o . winbar 8316vim . go . wbr =vim . go . winbar 8317 8318--- Enables pseudo-transparency for a floating window. Valid values are in 8319--- the range of 0 for fully opaque window (disabled) to 100 for fully 8320--- transparent background. Values between 0-30 are typically most useful. 8321--- 8322--- UI-dependent. Works best with RGB colors. 'termguicolors' 8323--- 8324--- @type integer 8325vim . o . winblend =0 8326vim . o . winbl =vim . o . winblend 8327vim . wo . winblend =vim . o . winblend 8328vim . wo . winbl =vim . wo . winblend 8329 8330--- Defines the default border style of floating windows. The default value 8331--- is empty, which is equivalent to "none". Valid values include: 8332--- - "bold": Bold line box. 8333--- - "double": Double-line box. 8334--- - "none": No border. 8335--- - "rounded": Like "single", but with rounded corners ("╭" etc.). 8336--- - "shadow": Drop shadow effect, by blending with the background. 8337--- - "single": Single-line box. 8338--- - "solid": Adds padding by a single whitespace cell. 8339--- - custom: comma-separated list of exactly 8 entries in clockwise 8340--- order starting from topleft. Each entry may be a single char, a 8341--- single space (filled with the background), or empty (no border on 8342--- that side). Example: 8343--- 8344--- ```lua 8345--- vim.o.winborder = '+,-,+,`,+,-,+,`' 8346--- vim.o.winborder = ',,, ,,,, ' -- left/right padding only 8347--- ``` 8348--- 8349--- 8350--- @type string 8351vim . o . winborder ="" 8352vim . go . winborder =vim . o . winborder 8353 8354--- Window height used for `CTRL-F` and `CTRL-B` when there is only one 8355--- window and the value is smaller than 'lines' minus one. The screen 8356--- will scroll 'window' minus two lines, with a minimum of one. 8357--- When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll 8358--- in a much smarter way, taking care of wrapping lines. 8359--- When resizing the Vim window, and the value is smaller than 1 or more 8360--- than or equal to 'lines' it will be set to 'lines' minus 1. 8361--- Note: Do not confuse this with the height of the Vim window, use 8362--- 'lines' for that. 8363--- 8364--- @type integer 8365vim . o . window =0 8366vim . o . wi =vim . o . window 8367vim . go . window =vim . o . window 8368vim . go . wi =vim . go . window 8369 8370--- If enabled, the window and the buffer it is displaying are paired. 8371--- For example, attempting to change the buffer with `:edit` will fail. 8372--- Other commands which change a window's buffer such as `:cnext` will 8373--- also skip any window with 'winfixbuf' enabled. However if an Ex 8374--- command has a "!" modifier, it can force switching buffers. 8375--- 8376--- @type boolean 8377vim . o . winfixbuf =false 8378vim . o . wfb =vim . o . winfixbuf 8379vim . wo . winfixbuf =vim . o . winfixbuf 8380vim . wo . wfb =vim . wo . winfixbuf 8381 8382--- Keep the window height when windows are opened or closed and 8383--- 'equalalways' is set. Also for `CTRL-W_=`. Set by default for the 8384--- `preview-window` and `quickfix-window`. 8385--- The height may be changed anyway when running out of room. 8386--- 8387--- @type boolean 8388vim . o . winfixheight =false 8389vim . o . wfh =vim . o . winfixheight 8390vim . wo . winfixheight =vim . o . winfixheight 8391vim . wo . wfh =vim . wo . winfixheight 8392 8393--- Keep the window width when windows are opened or closed and 8394--- 'equalalways' is set. Also for `CTRL-W_=`. 8395--- The width may be changed anyway when running out of room. 8396--- 8397--- @type boolean 8398vim . o . winfixwidth =false 8399vim . o . wfw =vim . o . winfixwidth 8400vim . wo . winfixwidth =vim . o . winfixwidth 8401vim . wo . wfw =vim . wo . winfixwidth 8402 8403--- Minimal number of lines for the current window. This is not a hard 8404--- minimum, Vim will use fewer lines if there is not enough room. If the 8405--- focus goes to a window that is smaller, its size is increased, at the 8406--- cost of the height of other windows. 8407--- Set 'winheight' to a small number for normal editing. 8408--- Set it to 999 to make the current window fill most of the screen. 8409--- Other windows will be only 'winminheight' high. This has the drawback 8410--- that ":all" will create only two windows. To avoid "vim -o 1 2 3 4" 8411--- to create only two windows, set the option after startup is done, 8412--- using the `VimEnter` event: 8413--- 8414--- ```vim 8415--- au VimEnter * set winheight=999 8416--- ``` 8417--- Minimum value is 1. 8418--- The height is not adjusted after one of the commands that change the 8419--- height of the current window. 8420--- 'winheight' applies to the current window. Use 'winminheight' to set 8421--- the minimal height for other windows. 8422--- 8423--- @type integer 8424vim . o . winheight =1 8425vim . o . wh =vim . o . winheight 8426vim . go . winheight =vim . o . winheight 8427vim . go . wh =vim . go . winheight 8428 8429--- Window-local highlights. Comma-delimited list of highlight 8430--- `group-name` pairs "{hl-from}:{hl-to},..." where each {hl-from} is 8431--- a `highlight-groups` item to be overridden by {hl-to} group in 8432--- the window. 8433--- 8434--- Note: highlight namespaces take precedence over 'winhighlight'. 8435--- See `nvim_win_set_hl_ns()` and `nvim_set_hl()`. 8436--- 8437--- Highlights of vertical separators are determined by the window to the 8438--- left of the separator. The 'tabline' highlight of a tabpage is 8439--- decided by the last-focused window of the tabpage. Highlights of 8440--- the popupmenu are determined by the current window. Highlights in the 8441--- message area cannot be overridden. 8442--- 8443--- Example: show a different color for non-current windows: 8444--- 8445--- ```vim 8446--- set winhighlight=Normal:MyNormal,NormalNC:MyNormalNC 8447--- ``` 8448--- 8449--- 8450--- @type string 8451vim . o . winhighlight ="" 8452vim . o . winhl =vim . o . winhighlight 8453vim . wo . winhighlight =vim . o . winhighlight 8454vim . wo . winhl =vim . wo . winhighlight 8455 8456--- The minimal height of a window, when it's not the current window. 8457--- This is a hard minimum, windows will never become smaller. 8458--- When set to zero, windows may be "squashed" to zero lines (i.e. just a 8459--- status bar) if necessary. They will return to at least one line when 8460--- they become active (since the cursor has to have somewhere to go.) 8461--- Use 'winheight' to set the minimal height of the current window. 8462--- This option is only checked when making a window smaller. Don't use a 8463--- large number, it will cause errors when opening more than a few 8464--- windows. A value of 0 to 3 is reasonable. 8465--- 8466--- @type integer 8467vim . o . winminheight =1 8468vim . o . wmh =vim . o . winminheight 8469vim . go . winminheight =vim . o . winminheight 8470vim . go . wmh =vim . go . winminheight 8471 8472--- The minimal width of a window, when it's not the current window. 8473--- This is a hard minimum, windows will never become smaller. 8474--- When set to zero, windows may be "squashed" to zero columns (i.e. just 8475--- a vertical separator) if necessary. They will return to at least one 8476--- line when they become active (since the cursor has to have somewhere 8477--- to go.) 8478--- Use 'winwidth' to set the minimal width of the current window. 8479--- This option is only checked when making a window smaller. Don't use a 8480--- large number, it will cause errors when opening more than a few 8481--- windows. A value of 0 to 12 is reasonable. 8482--- 8483--- @type integer 8484vim . o . winminwidth =1 8485vim . o . wmw =vim . o . winminwidth 8486vim . go . winminwidth =vim . o . winminwidth 8487vim . go . wmw =vim . go . winminwidth 8488 8489--- If enabled, the window is pinned and will not be closed by `:only` 8490--- and `:fclose`. Only commands specifically targeting the window can 8491--- close it. 8492--- 8493--- @type boolean 8494vim . o . winpinned =false 8495vim . o . wp =vim . o . winpinned 8496vim . wo . winpinned =vim . o . winpinned 8497vim . wo . wp =vim . wo . winpinned 8498 8499--- Minimal number of columns for the current window. This is not a hard 8500--- minimum, Vim will use fewer columns if there is not enough room. If 8501--- the current window is smaller, its size is increased, at the cost of 8502--- the width of other windows. Set it to 999 to make the current window 8503--- always fill the screen. Set it to a small number for normal editing. 8504--- The width is not adjusted after one of the commands to change the 8505--- width of the current window. 8506--- 'winwidth' applies to the current window. Use 'winminwidth' to set 8507--- the minimal width for other windows. 8508--- 8509--- @type integer 8510vim . o . winwidth =20 8511vim . o . wiw =vim . o . winwidth 8512vim . go . winwidth =vim . o . winwidth 8513vim . go . wiw =vim . go . winwidth 8514 8515--- This option changes how text is displayed. It doesn't change the text 8516--- in the buffer, see 'textwidth' for that. 8517--- When on, lines longer than the width of the window will wrap and 8518--- displaying continues on the next line. When off lines will not wrap 8519--- and only part of long lines will be displayed. When the cursor is 8520--- moved to a part that is not shown, the screen will scroll 8521--- horizontally. 8522--- The line will be broken in the middle of a word if necessary. See 8523--- 'linebreak' to get the break at a word boundary. 8524--- To make scrolling horizontally a bit more useful, try this: 8525--- 8526--- ```vim 8527--- set sidescroll=5 8528--- set listchars+=precedes:<,extends:> 8529--- ``` 8530--- See 'sidescroll', 'listchars' and `wrap-off`. 8531--- This option can't be set from a `modeline` when the 'diff' option is 8532--- on. 8533--- If 'nowrap' was set from a `modeline` or in the `sandbox`, '>' is used 8534--- as the `lcs-extends` character regardless of the value of the 'list' 8535--- and 'listchars' options. This is to prevent malicious code outside 8536--- the viewport from going unnoticed. Use `:setlocal nowrap` manually 8537--- afterwards to disable this behavior. 8538--- 8539--- @type boolean 8540vim . o . wrap =true 8541vim . wo . wrap =vim . o . wrap 8542 8543--- Number of characters from the right window border where wrapping 8544--- starts. When typing text beyond this limit, an <EOL> will be inserted 8545--- and inserting continues on the next line. 8546--- Options that add a margin, such as 'number' and 'foldcolumn', cause 8547--- the text width to be further reduced. 8548--- When 'textwidth' is non-zero, this option is not used. 8549--- See also 'formatoptions' and `ins-textwidth`. 8550--- 8551--- @type integer 8552vim . o . wrapmargin =0 8553vim . o . wm =vim . o . wrapmargin 8554vim . bo . wrapmargin =vim . o . wrapmargin 8555vim . bo . wm =vim . bo . wrapmargin 8556 8557--- Searches wrap around the end of the file. Also applies to `]s` and 8558--- `[s`, searching for spelling mistakes. 8559--- 8560--- @type boolean 8561vim . o . wrapscan =true 8562vim . o . ws =vim . o . wrapscan 8563vim . go . wrapscan =vim . o . wrapscan 8564vim . go . ws =vim . go . wrapscan 8565 8566--- Allows writing files. When not set, writing a file is not allowed. 8567--- Can be used for a view-only mode, where modifications to the text are 8568--- still allowed. Can be reset with the `-m` or `-M` command line 8569--- argument. Filtering text is still possible, even though this requires 8570--- writing a temporary file. 8571--- 8572--- @type boolean 8573vim . o . write =true 8574vim . go . write =vim . o . write 8575 8576--- Allows writing to any file with no need for "!" override. 8577--- 8578--- @type boolean 8579vim . o . writeany =false 8580vim . o . wa =vim . o . writeany 8581vim . go . writeany =vim . o . writeany 8582vim . go . wa =vim . go . writeany 8583 8584--- Make a backup before overwriting a file. The backup is removed after 8585--- the file was successfully written, unless the 'backup' option is 8586--- also on. 8587--- WARNING: Switching this option off means that when Vim fails to write 8588--- your buffer correctly and then, for whatever reason, Vim exits, you 8589--- lose both the original file and what you were writing. Only reset 8590--- this option if your file system is almost full and it makes the write 8591--- fail (and make sure not to exit Vim until the write was successful). 8592--- See `backup-table` for another explanation. 8593--- When the 'backupskip' pattern matches, a backup is not made anyway. 8594--- Depending on 'backupcopy' the backup is a new file or the original 8595--- file renamed (and a new file is written). 8596--- 8597--- @type boolean 8598vim . o . writebackup =true 8599vim . o . wb =vim . o . writebackup 8600vim . go . writebackup =vim . o . writebackup 8601vim . go . wb =vim . go . writebackup 8602 8603--- Only takes effect together with 'redrawdebug'. 8604--- The number of milliseconds to wait after each line or each flush 8605--- 8606--- @type integer 8607vim . o . writedelay =0 8608vim . o . wd =vim . o . writedelay 8609vim . go . writedelay =vim . o . writedelay 8610vim . go . wd =vim . go . writedelay