robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
1-- vim: tw=78 2 3--- @class vim.option_meta 4--- @field abbreviation? string 5--- @field alias? string|string[] 6--- Defaults to 'did_set_str_generic' when `flags_varname` is present. 7--- @field cb? string Applies the stored value and updates derived state. 8--- @field validation_cb? string Checks a candidate value without side effects. 9--- @field defaults? vim.option_defaults|vim.option_value|fun(): string 10--- @field deny_duplicates? boolean 11--- @field desc? string 12--- @field enable_if? string 13--- @field expand? string|true 14--- If not provided and `values` is present, then is set to 'expand_set_str_generic' 15--- @field expand_cb? string 16--- @field flags_varname? string 17--- @field full_name string 18--- @field immutable? boolean 19--- @field list? 'comma'|'onecomma'|'commacolon'|'onecommacolon'|'flags'|'flagscomma' 20--- @field modelineexpr? true 21--- @field no_mkrc? true 22--- @field nodefault? true 23--- @field noglob? true 24--- @field normal_dname_chars? true 25--- @field normal_fname_chars? true 26--- @field pri_mkrc? true 27--- @field redraw? vim.option_redraw[] 28--- @field schema? vim.option_schema 29--- @field scope vim.option_scope[] 30--- @field secure? true 31--- @field short_desc? string|fun(): string 32--- @field tags? string[] 33--- @field type vim.option_type 34--- @field varname? string 35 36--- @class vim.option_defaults 37--- @field condition? string 38--- string: #ifdef string 39--- !string: #ifndef string 40--- @field if_true vim.option_value|fun(): string 41--- @field if_false? vim.option_value 42--- @field doc? string Default to show in options.txt 43--- @field meta? string Default to use in Lua meta files 44 45--- @alias vim.option_scope 'global'|'buf'|'win'|'tab' 46--- Option value type. `func` ('omnifunc') and `expr` ('foldexpr') are "callback" options: stored 47--- as a `Callback`, accepting a function name/expression string or a Lua function. 48--- @alias vim.option_type 'boolean'|'number'|'string'|'func'|'expr' 49--- @alias vim.option_value boolean|integer|string 50 51--- Options for a `char`/`chars` schema key. 52--- @class vim.option_schema.char.opts 53--- @field field? string|false fcs_chars/lcs_chars field (default: key name; false = no storage) 54--- @field def? string default char 55--- @field fallback? string default char when "def" isn't single-width 56 57--- A `char`/`chars` schema key (e.g. 'listchars' "eol"/"tab"), generating a chars_tab[] entry. 58--- @alias vim.option_schema.char [string, 'char'|'chars', vim.option_schema.char.opts?] 59 60--- A key of a `dict` schema: a bare flag (boolean), a typed value, or an enum value. 61--- @alias vim.option_schema.dictkey 62--- | string 63--- | [string, 'num'|'snum'|'str'] 64--- | [string, 'enum', {values: string[]}] 65 66--- Declarative grammar of a structured "string" option, as a category record. Usually exactly one 67--- field is set; `flags`+`enum` combine for 'cursorlineopt' (its "both" alias has no bit). 68--- @class vim.option_schema 69--- @field chars? vim.option_schema.char[] chars_tab[] dispatch, e.g. 'listchars' 70--- @field dict? vim.option_schema.dictkey[] key:value map, reified to a keyset, e.g. 'diffopt' 71--- @field enum? string[] single-choice values, e.g. 'ambiwidth' {'single','double'} 72--- @field flagchars? table<string,string> char flags: name -> char, e.g. 'formatoptions' 73--- @field flags? (string|[string,integer]|[string,integer,string])[] bitmask flags (a `set` + C constants), e.g. 'foldopen'. A 3rd tuple element overrides the C token. 74--- @field set? string[] multi-choice (comma list) values, e.g. 'backspace' 75 76--- @alias vim.option_redraw 77--- |'statuslines' 78--- |'tabline' 79--- |'current_window' 80--- |'current_buffer' 81--- |'all_windows' 82--- |'curswant' 83--- |'highlight_only' 84--- |'ui_option' 85 86--- @param s string 87--- @return string 88local function cstr ( s ) 89return '"' .. s : gsub ( '["\\]' , '\\%0' ): gsub ( '\t' , '\\t' ) .. '"' 90end 91 92--- @param s string 93--- @param t vim.option_type 94--- @return fun(): string, vim.option_type 95local function macros ( s , t ) 96return function () 97return s , t 98end 99end 100 101--- @param s string 102--- @return fun(): string 103local function N_ ( s ) -- luacheck: ignore 211 (currently unused) 104return function () 105return 'N_(' .. cstr ( s ) .. ')' 106end 107end 108 109-- luacheck: ignore 621 110local options ={ 111cstr =cstr , 112--- @type string[] 113valid_scopes ={ 'global' , 'buf' , 'win' , 'tab' } , 114--- @type vim.option_meta[] 115--- The order of the options MUST be alphabetic for ":set all". 116options ={ 117{ 118abbreviation ='al' , 119defaults =224 , 120full_name ='aleph' , 121scope ={ 'global' } , 122short_desc =N_ ( 'ASCII code of the letter Aleph (Hebrew)' ), 123type ='number' , 124immutable =true , 125} , 126{ 127abbreviation ='ari' , 128defaults =false , 129desc =[=[ 130Allow CTRL-_ in Insert mode. This is default off, to avoid that users 131that accidentally type CTRL-_ instead of SHIFT-_ get into reverse 132Insert mode, and don't know how to get out. See 'revins'. 133]=] , 134full_name ='allowrevins' , 135scope ={ 'global' } , 136short_desc =N_ ( 'allow CTRL-_ in Insert mode' ), 137type ='boolean' , 138varname ='p_ari' , 139} , 140{ 141abbreviation ='ambw' , 142cb ='did_set_ambiwidth' , 143validation_cb ='validate_str_generic' , 144defaults ='single' , 145schema ={ 146enum ={ 'single' , 'double' } , 147} , 148desc =[=[ 149Tells Vim what to do with characters with East Asian Width Class 150Ambiguous (such as Euro, Registered Sign, Copyright Sign, Greek 151letters, Cyrillic letters). 152 153There are currently two possible values: 154"single": Use the same width as characters in US-ASCII. This is 155expected by most users. 156"double": Use twice the width of ASCII characters. 157*E834* *E835* 158The value "double" cannot be used if 'listchars' or 'fillchars' 159contains a character that would be double width. These errors may 160also be given when calling setcellwidths(). 161 162The values are overruled for characters specified with 163|setcellwidths()|. 164 165There are a number of CJK fonts for which the width of glyphs for 166those characters are solely based on how many octets they take in 167legacy/traditional CJK encodings. In those encodings, Euro, 168Registered sign, Greek/Cyrillic letters are represented by two octets, 169therefore those fonts have "wide" glyphs for them. This is also 170true of some line drawing characters used to make tables in text 171file. Therefore, when a CJK font is used for GUI Vim or 172Vim is running inside a terminal (emulators) that uses a CJK font 173(or Vim is run inside an xterm invoked with "-cjkwidth" option.), 174this option should be set to "double" to match the width perceived 175by Vim with the width of glyphs in the font. Perhaps it also has 176to be set to "double" under CJK MS-Windows when the system locale is 177set to one of CJK locales. See Unicode Standard Annex #11 178(https://www.unicode.org/reports/tr11). 179]=] , 180full_name ='ambiwidth' , 181redraw ={ 'all_windows' , 'ui_option' } , 182scope ={ 'global' } , 183short_desc =N_ ( 'what to do with Unicode chars of ambiguous width' ), 184type ='string' , 185varname ='p_ambw' , 186} , 187{ 188abbreviation ='arab' , 189cb ='did_set_arabic' , 190defaults =false , 191desc =[=[ 192This option can be set to start editing Arabic text. 193Setting this option will: 194- Set the 'rightleft' option, unless 'termbidi' is set. 195- Set the 'arabicshape' option, unless 'termbidi' is set. 196- Set the 'keymap' option to "arabic"; in Insert mode CTRL-^ toggles 197between typing English and Arabic key mapping. 198- Set the 'delcombine' option 199 200Resetting this option will: 201- Reset the 'rightleft' option. 202- Disable the use of 'keymap' (without changing its value). 203Note that 'arabicshape' and 'delcombine' are not reset (it is a global 204option). 205Also see |l10n-arabic.txt|. 206]=] , 207full_name ='arabic' , 208redraw ={ 'curswant' } , 209scope ={ 'win' } , 210short_desc =N_ ( 'Arabic as a default second language' ), 211type ='boolean' , 212} , 213{ 214abbreviation ='arshape' , 215defaults =true , 216desc =[=[ 217When on and 'termbidi' is off, the required visual character 218corrections that need to take place for displaying the Arabic language 219take effect. Shaping, in essence, gets enabled; the term is a broad 220one which encompasses: 221a) the changing/morphing of characters based on their location 222within a word (initial, medial, final and stand-alone). 223b) the enabling of the ability to compose characters 224c) the enabling of the required combining of some characters 225When disabled the display shows each character's true stand-alone 226form. 227Arabic is a complex language which requires other settings, for 228further details see |l10n-arabic.txt|. 229]=] , 230full_name ='arabicshape' , 231redraw ={ 'all_windows' , 'ui_option' } , 232scope ={ 'global' } , 233short_desc =N_ ( 'do shaping for Arabic characters' ), 234type ='boolean' , 235varname ='p_arshape' , 236} , 237{ 238abbreviation ='acd' , 239cb ='did_set_autochdir' , 240defaults =false , 241desc =[=[ 242When on, Nvim will change its global |current-directory| to the parent 243of the current file, whenever you open a file, switch buffers, delete 244a buffer or open/close a window. 245 246When a buffer has no name it also has no directory, thus the current 247directory won't change when navigating to it. 248 249Note: When this option is on some plugins may not work. 250 251Alternatively, consider using |:bcd|, |:lcd|, or |:tcd| in an autocmd, 252to selectively set a local (not global) directory. See |project-dir|. 253]=] , 254full_name ='autochdir' , 255scope ={ 'global' } , 256short_desc =N_ ( 'change directory to the file in the current window' ), 257type ='boolean' , 258varname ='p_acd' , 259} , 260{ 261abbreviation ='ac' , 262defaults =false , 263desc =[=[ 264When on, Vim shows a completion menu as you type, similar to using 265|i_CTRL-N|, but triggered automatically. See |ins-autocompletion|. 266]=] , 267full_name ='autocomplete' , 268scope ={ 'global' , 'buf' } , 269short_desc =N_ ( 'automatic completion in insert mode' ), 270type ='boolean' , 271varname ='p_ac' , 272} , 273{ 274abbreviation ='acl' , 275defaults =0 , 276desc =[=[ 277Delay in milliseconds before the autocomplete menu appears after 278typing. If you prefer it not to open too quickly, set this value 279slightly above your typing speed. See |ins-autocompletion|. 280]=] , 281full_name ='autocompletedelay' , 282scope ={ 'global' } , 283short_desc =N_ ( 'delay in msec before menu appears after typing' ), 284type ='number' , 285varname ='p_acl' , 286} , 287{ 288abbreviation ='act' , 289defaults =80 , 290desc =[=[ 291Initial timeout (in milliseconds) for the decaying time-sliced 292completion algorithm. Starts at this value, halves for each slower 293source until a minimum is reached. All sources run, but slower ones 294are quickly de-prioritized. The default is tuned so the popup menu 295opens within ~200ms even with multiple slow sources on a slow system. 296Changing this value is rarely needed. Only 80 or higher is valid. 297Special case: when 'complete' contains "F" or "o" (function sources), 298a longer timeout is used, allowing up to ~1s for sources such as LSP 299servers that may sometimes take longer (e.g., while loading modules). 300See |ins-autocompletion|. 301]=] , 302full_name ='autocompletetimeout' , 303scope ={ 'global' } , 304short_desc =N_ ( 'initial decay timeout for autocompletion algorithm' ), 305type ='number' , 306varname ='p_act' , 307} , 308{ 309abbreviation ='ai' , 310defaults =true , 311desc =[=[ 312Copy indent from current line when starting a new line (typing <CR> 313in Insert mode or when using the "o" or "O" command). If you do not 314type anything on the new line except <BS> or CTRL-D and then type 315<Esc>, CTRL-O or <CR>, the indent is deleted again. Moving the cursor 316to another line has the same effect, unless the 'I' flag is included 317in 'cpoptions'. 318When autoindent is on, formatting (with the "gq" command or when you 319reach 'textwidth' in Insert mode) uses the indentation of the first 320line. 321When 'smartindent' or 'cindent' is on the indent is changed in 322a different way. 323]=] , 324full_name ='autoindent' , 325scope ={ 'buf' } , 326short_desc =N_ ( 'take indent for new line from previous line' ), 327type ='boolean' , 328varname ='p_ai' , 329} , 330{ 331abbreviation ='ar' , 332defaults =true , 333desc =[=[ 334When a file was changed outside of Nvim, automatically read it again. 335Skipped if the file was deleted (so you still have the last-available 336text). If the file appears again, then it is read; you can |undo| to 337see the previous contents. |timestamp| 338 339This is driven (partially) by OS filewatcher events |uv_fs_event_t|, 340so buffers are updated immediately (instead of only on focus-change or 341shell-commands). 342 343If this option has a local value, use this command to switch back to 344using the global value: >vim 345set autoread< 346< 347]=] , 348full_name ='autoread' , 349scope ={ 'global' , 'buf' } , 350short_desc =N_ ( 'autom. read file when changed outside of Vim' ), 351type ='boolean' , 352varname ='p_ar' , 353} , 354{ 355abbreviation ='aw' , 356defaults =false , 357desc =[=[ 358Write the contents of the file, if it has been modified, on each 359`:next`, `:rewind`, `:last`, `:first`, `:previous`, `:tag`, `:stop`, 360`:suspend`, `:!`, `:make`, `:terminal`, CTRL-] or CTRL-^ command; and 361when a `:buffer`, CTRL-O, CTRL-I, '{A-Z0-9}, or `{A-Z0-9} command 362switches to another file. 363A buffer is not written if it becomes hidden, e.g. when 'bufhidden' is 364set to "hide" and `:next` is used. 365Note that for some commands the 'autowrite' option is not used, see 366'autowriteall' for that. 367Some buffers will not be written, specifically when 'buftype' is 368"nowrite", "nofile", "terminal" or "prompt". 369USE WITH CARE: If you make temporary changes to a buffer that you 370don't want to be saved this option may cause it to be saved anyway. 371Renaming the buffer with ":file {name}" may help avoid this. 372]=] , 373full_name ='autowrite' , 374scope ={ 'global' } , 375short_desc =N_ ( 'automatically write file if changed' ), 376type ='boolean' , 377varname ='p_aw' , 378} , 379{ 380abbreviation ='awa' , 381defaults =false , 382desc =[=[ 383Like 'autowrite', but also used for commands `:edit`, `:enew`, 384`:quit`, `:qall`, `:exit`, `:xit`, `:recover` and closing the Vim 385window. 386Setting this option also implies that Vim behaves like 'autowrite' has 387been set. 388]=] , 389full_name ='autowriteall' , 390scope ={ 'global' } , 391short_desc =N_ ( "as 'autowrite', but works with more commands" ), 392type ='boolean' , 393varname ='p_awa' , 394} , 395{ 396abbreviation ='bg' , 397cb ='did_set_background' , 398validation_cb ='validate_str_generic' , 399defaults ='dark' , 400schema ={ 401enum ={ 'light' , 'dark' } , 402} , 403desc =[=[ 404When set to "dark" or "light", adjusts the default color groups for 405that background type. The |TUI| or other UI sets this on startup 406if it can detect the background color, and re-detects it whenever a UI 407attaches later, unless 'background' was set explicitly. When multiple 408UIs are attached they share one value, decided by "last wins" (may 409not be the most recently-attached UI, since it depends on response 410speed). 411 412This option does NOT change the background color, it tells Nvim what 413the "inherited" (terminal/GUI) background looks like. See |:hi-normal| 414to set the background color explicitly. 415*g:colors_name* 416When a color scheme is loaded (the "g:colors_name" variable is set) 417changing 'background' will cause the color scheme to be reloaded. If 418the color scheme adjusts to the value of 'background' this will work. 419However, if the color scheme sets 'background' itself the effect may 420be undone. First delete the "g:colors_name" variable when needed. 421 422Historically, this option was set in the vimrc file. Example: >vim 423if $TERM ==# "xterm" 424set background=dark 425endif 426< When this option is changed, the defaults for highlight groups 427will change. To override those defaults, place ":highlight" commands 428AFTER setting the 'background' option. 429]=] , 430full_name ='background' , 431scope ={ 'global' } , 432short_desc =N_ ( '"dark" or "light", used for highlight colors' ), 433type ='string' , 434varname ='p_bg' , 435} , 436{ 437abbreviation ='bs' , 438validation_cb ='validate_backspace' , 439defaults ='indent,eol,start' , 440schema ={ 441set ={ 'indent' , 'eol' , 'start' , 'nostop' } , 442} , 443deny_duplicates =true , 444desc =[=[ 445Influences the working of <BS>, <Del>, CTRL-W and CTRL-U in Insert 446mode. This is a list of items, separated by commas. Each item allows 447a way to backspace over something: 448value effect ~ 449indent allow backspacing over autoindent 450eol allow backspacing over line breaks (join lines) 451start allow backspacing over the start of insert; CTRL-W and CTRL-U 452stop once at the start of insert. 453nostop like start, except CTRL-W and CTRL-U do not stop at the start 454of insert. 455 456When the value is empty, Vi compatible backspacing is used, none of 457the ways mentioned for the items above are possible. 458]=] , 459full_name ='backspace' , 460list ='onecomma' , 461scope ={ 'global' } , 462short_desc =N_ ( 'how backspace works at start of line' ), 463type ='string' , 464varname ='p_bs' , 465} , 466{ 467abbreviation ='bk' , 468defaults =false , 469desc =[=[ 470Make a backup before overwriting a file. Leave it around after the 471file has been successfully written. If you do not want to keep the 472backup file, but you do want a backup while the file is being 473written, reset this option and set the 'writebackup' option (this is 474the default). If you do not want a backup file at all reset both 475options (use this if your file system is almost full). See the 476|backup-table| for more explanations. 477When the 'backupskip' pattern matches, a backup is not made anyway. 478When 'patchmode' is set, the backup may be renamed to become the 479oldest version of a file. 480]=] , 481full_name ='backup' , 482scope ={ 'global' } , 483short_desc =N_ ( 'keep backup file after overwriting a file' ), 484type ='boolean' , 485varname ='p_bk' , 486} , 487{ 488abbreviation ='bkc' , 489cb ='did_set_backupcopy' , 490validation_cb ='validate_backupcopy' , 491defaults ={ condition ='UNIX' , if_false ='auto' , if_true ='auto' } , 492schema ={ 493flags ={ 'yes' , 'auto' , 'no' , 'breaksymlink' , 'breakhardlink' } , 494} , 495deny_duplicates =true , 496desc =[=[ 497When writing a file and a backup is made, this option tells how it's 498done. This is a comma-separated list of words. 499 500The main values are: 501"yes" make a copy of the file and overwrite the original one 502"no" rename the file and write a new one 503"auto" one of the previous, what works best 504 505Extra values that can be combined with the ones above are: 506"breaksymlink" always break symlinks when writing 507"breakhardlink" always break hardlinks when writing 508 509Making a copy and overwriting the original file: 510- Takes extra time to copy the file. 511+ When the file has special attributes, is a (hard/symbolic) link or 512has a resource fork, all this is preserved. 513- When the file is a link the backup will have the name of the link, 514not of the real file. 515 516Renaming the file and writing a new one: 517+ It's fast. 518- Sometimes not all attributes of the file can be copied to the new 519file. 520- When the file is a link the new file will not be a link. 521 522The "auto" value is the middle way: When Vim sees that renaming the 523file is possible without side effects (the attributes can be passed on 524and the file is not a link) that is used. When problems are expected, 525a copy will be made. 526 527The "breaksymlink" and "breakhardlink" values can be used in 528combination with any of "yes", "no" and "auto". When included, they 529force Vim to always break either symbolic or hard links by doing 530exactly what the "no" option does, renaming the original file to 531become the backup and writing a new file in its place. This can be 532useful for example in source trees where all the files are symbolic or 533hard links and any changes should stay in the local source tree, not 534be propagated back to the original source. 535*crontab* 536One situation where "no" and "auto" will cause problems: A program 537that opens a file, invokes Vim to edit that file, and then tests if 538the open file was changed (through the file descriptor) will check the 539backup file instead of the newly created file. "crontab -e" is an 540example, as are several |file-watcher| daemons like inotify. In that 541case you probably want to switch this option. 542 543When a copy is made, the original file is truncated and then filled 544with the new text. This means that protection bits, owner and 545symbolic links of the original file are unmodified. The backup file, 546however, is a new file, owned by the user who edited the file. The 547group of the backup is set to the group of the original file. If this 548fails, the protection bits for the group are made the same as for 549others. 550 551When the file is renamed, this is the other way around: The backup has 552the same attributes of the original file, and the newly written file 553is owned by the current user. When the file was a (hard/symbolic) 554link, the new file will not! That's why the "auto" value doesn't 555rename when the file is a link. The owner and group of the newly 556written file will be set to the same ones as the original file, but 557the system may refuse to do this. In that case the "auto" value will 558again not rename the file. 559]=] , 560full_name ='backupcopy' , 561list ='onecomma' , 562scope ={ 'global' , 'buf' } , 563short_desc =N_ ( "make backup as a copy, don't rename the file" ), 564type ='string' , 565varname ='p_bkc' , 566flags_varname ='bkc_flags' , 567} , 568{ 569abbreviation ='bdir' , 570defaults ='' , 571deny_duplicates =true , 572desc =[=[ 573List of directories for the backup file, separated with commas. 574- The backup file will be created in the first directory in the list 575where this is possible. If none of the directories exist Nvim will 576attempt to create the last directory in the list. 577- Empty means that no backup file will be created ('patchmode' is 578impossible!). Writing may fail because of this. 579- A directory "." means to put the backup file in the same directory 580as the edited file. 581- A directory starting with "./" (or ".\" for MS-Windows) means to put 582the backup file relative to where the edited file is. The leading 583"." is replaced with the path name of the edited file. 584("." inside a directory name has no special meaning). 585- Spaces after the comma are ignored, other spaces are considered part 586of the directory name. To have a space at the start of a directory 587name, precede it with a backslash. 588- To include a comma in a directory name precede it with a backslash. 589- A directory name may end in an '/'. 590- For Unix and Win32, if a directory ends in two path separators "//", 591the swap file name will be built from the complete path to the file 592with all path separators changed to percent '%' signs. This will 593ensure file name uniqueness in the backup directory. 594On Win32, it is also possible to end with "\\". However, When a 595separating comma is following, you must use "//", since "\\" will 596include the comma in the file name. Therefore it is recommended to 597use '//', instead of '\\'. 598- Environment variables are expanded |:set_env|. 599- Careful with '\' characters, type one before a space, type two to 600get one in the option (see |option-backslash|), for example: >vim 601set bdir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces 602< 603See also 'backup' and 'writebackup' options. 604If you want to hide your backup files on Unix, consider this value: >vim 605set backupdir=./.backup,~/.backup,.,/tmp 606< You must create a ".backup" directory in each directory and in your 607home directory for this to work properly. 608The use of |:set+=| and |:set-=| is preferred when adding or removing 609directories from the list. This avoids problems when a future version 610uses another default. 611]=] , 612expand ='nodefault' , 613full_name ='backupdir' , 614list ='onecomma' , 615scope ={ 'global' } , 616secure =true , 617short_desc =N_ ( 'list of directories for the backup file' ), 618type ='string' , 619varname ='p_bdir' , 620} , 621{ 622abbreviation ='bex' , 623validation_cb ='validate_backupext_or_patchmode' , 624defaults ='~' , 625desc =[=[ 626String which is appended to a file name to make the name of the 627backup file. The default is quite unusual, because this avoids 628accidentally overwriting existing files with a backup file. You might 629prefer using ".bak", but make sure that you don't have files with 630".bak" that you want to keep. 631Only normal file name characters can be used; `/\*?[|<>` are illegal. 632 633If you like to keep a lot of backups, you could use a BufWritePre 634autocommand to change 'backupext' just before writing the file to 635include a timestamp. >vim 636au BufWritePre * let &bex = '-' .. strftime("%Y%b%d%X") .. '~' 637< Use 'backupdir' to put the backup in a different directory. 638]=] , 639full_name ='backupext' , 640normal_fname_chars =true , 641scope ={ 'global' } , 642short_desc =N_ ( 'extension used for the backup file' ), 643tags ={ 'E589' } , 644type ='string' , 645varname ='p_bex' , 646} , 647{ 648abbreviation ='bsk' , 649defaults ={ 650if_true ='' , 651doc =[["$TMPDIR/*,$TMP/*,$TEMP/*" 652Unix: "/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*" 653Mac: "/private/tmp/*,$TMPDIR/*,$TMP/*,$TEMP/*"]] , 654meta ='/tmp/*' , 655} , 656deny_duplicates =true , 657desc =[=[ 658A list of file patterns. When one of the patterns matches with the 659name of the file which is written, no backup file is created. Both 660the specified file name and the full path name of the file are used. 661The pattern is used like with |:autocmd|, see |autocmd-pattern|. 662Watch out for special characters, see |option-backslash|. 663When $TMPDIR, $TMP or $TEMP is not defined, it is not used for the 664default value. "/tmp/*" is only used for Unix. 665 666WARNING: Not having a backup file means that when Vim fails to write 667your buffer correctly and then, for whatever reason, Vim exits, you 668lose both the original file and what you were writing. Only disable 669backups if you don't care about losing the file. 670 671Note that environment variables are not expanded. If you want to use 672$HOME you must expand it explicitly, e.g.: >vim 673let &backupskip = escape(expand('$HOME'), '\') .. '/tmp/*' 674 675< Note that the default also makes sure that "crontab -e" works (when a 676backup would be made by renaming the original file crontab won't see 677the newly created file). Also see 'backupcopy' and |crontab|. 678]=] , 679full_name ='backupskip' , 680list ='onecomma' , 681scope ={ 'global' } , 682short_desc =N_ ( 'no backup for files that match these patterns' ), 683type ='string' , 684varname ='p_bsk' , 685} , 686{ 687abbreviation ='bo' , 688validation_cb ='validate_str_generic' , 689defaults ='all' , 690schema ={ 691flags ={ 692'all' , 693'backspace' , 694'cursor' , 695'complete' , 696'copy' , 697'ctrlg' , 698'error' , 699'esc' , 700'ex' , 701'hangul' , 702'insertmode' , 703'lang' , 704'mess' , 705'showmatch' , 706'operator' , 707'register' , 708'shell' , 709'spell' , 710'term' , 711'wildmode' , 712} , 713} , 714deny_duplicates =true , 715desc =[=[ 716Specifies for which events the bell will not be rung. It is a comma- 717separated list of items. For each item that is present, the bell will 718be silenced. This is most useful to specify specific events in insert 719mode to be silenced. 720You can also make it flash by using 'visualbell'. 721 722item meaning when present ~ 723all All events. 724backspace When hitting <BS> or <Del> and deleting results in an 725error. 726cursor Fail to move around using the cursor keys or 727<PageUp>/<PageDown> in |Insert-mode|. 728complete Error occurred when using |i_CTRL-X_CTRL-K| or 729|i_CTRL-X_CTRL-T|. 730copy Cannot copy char from insert mode using |i_CTRL-Y| or 731|i_CTRL-E|. 732ctrlg Unknown Char after <C-G> in Insert mode. 733error Other Error occurred (e.g. try to join last line) 734(mostly used in |Normal-mode| or |Cmdline-mode|). 735esc hitting <Esc> in |Normal-mode|. 736hangul Ignored. 737lang Calling the beep module for Lua/Mzscheme/TCL. 738mess No output available for |g<|. 739showmatch Error occurred for 'showmatch' function. 740operator Empty region error |cpo-E|. 741register Unknown register after <C-R> in |Insert-mode|. 742shell Bell from shell output |:!|. 743spell Error happened on spell suggest. 744term Bell from |:terminal| output. 745wildmode More matches in |cmdline-completion| available 746(depends on the 'wildmode' setting). 747 748This is most useful to fine tune when in Insert mode the bell should 749be rung. For Normal mode and Ex commands, the bell is often rung to 750indicate that an error occurred. It can be silenced by adding the 751"error" keyword. 752]=] , 753full_name ='belloff' , 754list ='comma' , 755scope ={ 'global' } , 756short_desc =N_ ( 'do not ring the bell for these reasons' ), 757type ='string' , 758varname ='p_bo' , 759flags_varname ='bo_flags' , 760} , 761{ 762abbreviation ='bin' , 763cb ='did_set_binary' , 764defaults =false , 765desc =[=[ 766This option should be set before editing a binary file. You can also 767use the |-b| Vim argument. When this option is switched on a few 768options will be changed (also when it already was on): 769'textwidth' will be set to 0 770'wrapmargin' will be set to 0 771'modeline' will be off 772'expandtab' will be off 773Also, 'fileformat' and 'fileformats' options will not be used, the 774file is read and written like 'fileformat' was "unix" (a single <NL> 775separates lines). 776The 'fileencoding' and 'fileencodings' options will not be used, the 777file is read without conversion. 778NOTE: When you start editing a(nother) file while the 'bin' option is 779on, settings from autocommands may change the settings again (e.g., 780'textwidth'), causing trouble when editing. You might want to set 781'bin' again when the file has been loaded. 782The previous values of these options are remembered and restored when 783'bin' is switched from on to off. Each buffer has its own set of 784saved option values. 785To edit a file with 'binary' set you can use the |++bin| argument. 786This avoids you have to do ":set bin", which would have effect for all 787files you edit. 788When writing a file the <EOL> for the last line is only written if 789there was one in the original file (normally Vim appends an <EOL> to 790the last line if there is none; this would make the file longer). See 791the 'endofline' option. 792]=] , 793full_name ='binary' , 794redraw ={ 'statuslines' } , 795scope ={ 'buf' } , 796short_desc =N_ ( 'read/write/edit file in binary mode' ), 797type ='boolean' , 798varname ='p_bin' , 799} , 800{ 801cb ='did_set_eof_eol_fixeol_bomb' , 802defaults =false , 803desc =[=[ 804When writing a file and the following conditions are met, a BOM (Byte 805Order Mark) is prepended to the file: 806- this option is on 807- the 'binary' option is off 808- 'fileencoding' is "utf-8", "ucs-2", "ucs-4" or one of the little/big 809endian variants. 810Some applications use the BOM to recognize the encoding of the file. 811Often used for UCS-2 files on MS-Windows. For other applications it 812causes trouble, for example: "cat file1 file2" makes the BOM of file2 813appear halfway through the resulting file. Gcc doesn't accept a BOM. 814When Vim reads a file and 'fileencodings' starts with "ucs-bom", a 815check for the presence of the BOM is done and 'bomb' set accordingly. 816Unless 'binary' is set, it is removed from the first line, so that you 817don't see it when editing. When you don't change the options, the BOM 818will be restored when writing the file. 819]=] , 820full_name ='bomb' , 821no_mkrc =true , 822redraw ={ 'statuslines' } , 823scope ={ 'buf' } , 824short_desc =N_ ( 'a Byte Order Mark to the file' ), 825type ='boolean' , 826varname ='p_bomb' , 827} , 828{ 829abbreviation ='brk' , 830cb ='did_set_breakat' , 831defaults ={ 832if_true =' \t!@*-+;:,./?' , 833doc ='" ^I!@*-+;:,./?"' , 834} , 835desc =[=[ 836This option lets you choose which characters might cause a line 837break if 'linebreak' is on. Only works for ASCII characters. 838]=] , 839full_name ='breakat' , 840list ='flags' , 841redraw ={ 'all_windows' } , 842scope ={ 'global' } , 843short_desc =N_ ( 'characters that may cause a line break' ), 844type ='string' , 845varname ='p_breakat' , 846} , 847{ 848abbreviation ='bri' , 849defaults =false , 850desc =[=[ 851Every wrapped line will continue visually indented (same amount of 852space as the beginning of that line), thus preserving horizontal 853blocks of text. 854]=] , 855full_name ='breakindent' , 856redraw ={ 'current_window' } , 857scope ={ 'win' } , 858short_desc =N_ ( 'wrapped line repeats indent' ), 859type ='boolean' , 860} , 861{ 862abbreviation ='briopt' , 863cb ='did_set_breakindentopt' , 864defaults ='' , 865schema ={ 866dict ={ 867{ 'shift' , 'snum' } , 868{ 'min' , 'num' } , 869'sbr' , -- unsigned number. 870{ 'list' , 'snum' } , 871{ 'column' , 'snum' } , 872} , 873} , 874deny_duplicates =true , 875desc =[=[ 876Settings for 'breakindent'. It can consist of the following optional 877items and must be separated by a comma: 878min:{n} Minimum text width that will be kept after 879applying 'breakindent', even if the resulting 880text should normally be narrower. This prevents 881text indented almost to the right window border 882occupying lots of vertical space when broken. 883(default: 20) 884shift:{n} After applying 'breakindent', the wrapped line's 885beginning will be shifted by the given number of 886characters. It permits dynamic French paragraph 887indentation (negative) or emphasizing the line 888continuation (positive). 889(default: 0) 890sbr Display the 'showbreak' value before applying the 891additional indent. 892(default: off) 893list:{n} Adds an additional indent for lines that match a 894numbered or bulleted list (using the 895'formatlistpat' setting). 896(default: 0) 897list:-1 Uses the width of a match with 'formatlistpat' for 898indentation. 899column:{n} Indent at column {n}. Will overrule the other 900sub-options. Note: an additional indent may be 901added for the 'showbreak' setting. 902(default: off) 903]=] , 904full_name ='breakindentopt' , 905list ='onecomma' , 906redraw ={ 'current_buffer' } , 907scope ={ 'win' } , 908short_desc =N_ ( "settings for 'breakindent'" ), 909type ='string' , -- OptKeyDict_briopt 910} , 911{ 912abbreviation ='bsdir' , 913defaults ={ 914if_true ='' , 915doc ='"last"' , 916} , 917desc =[=[ 918Which directory to use for the file browser: 919last Use same directory as with last file browser, where a 920file was opened or saved. 921buffer Use the directory of the related buffer. 922current Use the current directory. 923{path} Use the specified directory 924]=] , 925full_name ='browsedir' , 926scope ={ 'global' } , 927short_desc =N_ ( 'which directory to start browsing in' ), 928type ='string' , 929immutable =true , 930} , 931{ 932abbreviation ='bh' , 933validation_cb ='validate_str_generic' , 934defaults ='' , 935schema ={ 936enum ={ '' , 'hide' , 'unload' , 'delete' , 'wipe' } , 937} , 938desc =[=[ 939This option specifies what happens when a buffer is no longer 940displayed in a window: 941<empty> follow the global 'hidden' option 942hide hide the buffer (don't unload it), even if 'hidden' is 943not set 944unload unload the buffer, even if 'hidden' is set; the 945|:hide| command will also unload the buffer 946delete delete the buffer from the buffer list, even if 947'hidden' is set; the |:hide| command will also delete 948the buffer, making it behave like |:bdelete| 949wipe wipe the buffer from the buffer list, even if 950'hidden' is set; the |:hide| command will also wipe 951out the buffer, making it behave like |:bwipeout| 952 953CAREFUL: when "unload", "delete" or "wipe" is used changes in a buffer 954are lost without a warning. Also, these values may break autocommands 955that switch between buffers temporarily. 956This option is used together with 'buftype' and 'swapfile' to specify 957special kinds of buffers. See |special-buffers|. 958]=] , 959full_name ='bufhidden' , 960noglob =true , 961scope ={ 'buf' } , 962short_desc =N_ ( 'what to do when buffer is no longer in window' ), 963type ='string' , 964varname ='p_bh' , 965} , 966{ 967abbreviation ='bl' , 968cb ='did_set_buflisted' , 969defaults =true , 970desc =[=[ 971When this option is set, the buffer shows up in the buffer list. If 972it is reset it is not used for ":bnext", "ls", the Buffers menu, etc. 973This option is reset by Vim for buffers that are only used to remember 974a file name or marks. Vim sets it when starting to edit a buffer. 975But not when moving to a buffer with ":buffer". 976]=] , 977full_name ='buflisted' , 978noglob =true , 979scope ={ 'buf' } , 980short_desc =N_ ( 'whether the buffer shows up in the buffer list' ), 981tags ={ 'E85' } , 982type ='boolean' , 983varname ='p_bl' , 984} , 985{ 986abbreviation ='bt' , 987cb ='did_set_buftype' , 988validation_cb ='validate_buftype' , 989defaults ='' , 990schema ={ 991enum ={ 992'' , 993'acwrite' , 994'help' , 995'nofile' , 996'nowrite' , 997'quickfix' , 998'terminal' , 999'prompt' , 1000} , 1001} , 1002desc =[=[ 1003The value of this option specifies the type of a buffer: 1004(empty) Normal buffer. 1005acwrite Buffer will always be written with |BufWriteCmd|. 1006help Help buffer (do not set this manually). 1007nofile Buffer is not a file, will not be written. 1008nowrite Buffer represents a filepath (such as a directory), 1009but will not be written. 1010prompt Buffer where only the last section can be edited, for 1011use by plugins. |prompt-buffer| 1012quickfix List of errors |:cwindow| or locations |:lwindow| 1013terminal |terminal-emulator| buffer 1014 1015This option is used together with 'bufhidden' and 'swapfile' to 1016specify special kinds of buffers. See |special-buffers|. 1017Also see |win_gettype()|, which returns the type of the window. 1018 1019Be careful with changing this option, it can have many side effects! 1020One such effect is that Vim will not check the timestamp of the file, 1021if the file is changed by another program this will not be noticed. 1022 1023A "quickfix" buffer is only used for the error list and the location 1024list. This value is set by the |:cwindow| and |:lwindow| commands and 1025you are not supposed to change it. 1026 1027"nofile" and "nowrite" buffers are similar: 1028both: The buffer is not to be written to disk, ":w" doesn't 1029work (":w filename" does work though). 1030both: The buffer is never considered to be 'modified'. 1031There is no warning when the changes will be lost, for 1032example when you quit Vim. 1033both: A swap file is only created when using too much memory 1034(when 'swapfile' has been reset there is never a swap 1035file). 1036nofile only: The buffer name is fixed, it is not handled like a 1037file name. It is not modified in response to a |:cd| 1038command. 1039both: When using ":e bufname" and already editing "bufname" 1040the buffer is made empty and autocommands are 1041triggered as usual for |:edit|. 1042*E676* 1043"acwrite" implies that the buffer name is not related to a file, like 1044"nofile", but it will be written. Thus, in contrast to "nofile" and 1045"nowrite", ":w" does work and a modified buffer can't be abandoned 1046without saving. For writing there must be matching |BufWriteCmd|, 1047|FileWriteCmd| or |FileAppendCmd| autocommands. 1048]=] , 1049full_name ='buftype' , 1050noglob =true , 1051scope ={ 'buf' } , 1052tags ={ 'E382' } , 1053short_desc =N_ ( 'special type of buffer' ), 1054type ='string' , 1055varname ='p_bt' , 1056} , 1057{ 1058defaults =0 , 1059desc =[=[ 1060Sets a buffer "busy" status. Indicated in the default statusline. 1061When busy status is larger then 0 busy flag is shown in statusline. 1062The semantics of "busy" are arbitrary, typically decided by the plugin that owns the buffer. 1063]=] , 1064full_name ='busy' , 1065redraw ={ 'statuslines' } , 1066noglob =true , 1067scope ={ 'buf' } , 1068short_desc =N_ ( 'buffer is busy' ), 1069type ='number' , 1070varname ='p_busy' , 1071} , 1072{ 1073abbreviation ='cmp' , 1074validation_cb ='validate_str_generic' , 1075defaults ='internal,keepascii' , 1076schema ={ 1077flags ={ 'internal' , 'keepascii' } , 1078} , 1079deny_duplicates =true , 1080desc =[=[ 1081Specifies details about changing the case of letters. It may contain 1082these words, separated by a comma: 1083internal Use internal case mapping functions, the current 1084locale does not change the case mapping. When 1085"internal" is omitted, the towupper() and towlower() 1086system library functions are used when available. 1087keepascii For the ASCII characters (0x00 to 0x7f) use the US 1088case mapping, the current locale is not effective. 1089This probably only matters for Turkish. 1090]=] , 1091full_name ='casemap' , 1092list ='onecomma' , 1093scope ={ 'global' } , 1094short_desc =N_ ( 'specifies how case of letters is changed' ), 1095type ='string' , 1096varname ='p_cmp' , 1097flags_varname ='cmp_flags' , 1098} , 1099{ 1100abbreviation ='cdh' , 1101defaults ={ 1102condition ='MSWIN' , 1103if_false =true , 1104if_true =false , 1105doc =[[on on Unix, off on Windows]] , 1106} , 1107desc =[=[ 1108When on, |:cd|, |:tcd|, |:lcd| and |:bcd| without an argument changes the 1109current working directory to the |$HOME| directory like in Unix. 1110When off, those commands just print the current directory name. 1111]=] , 1112full_name ='cdhome' , 1113scope ={ 'global' } , 1114secure =true , 1115short_desc =N_ ( ':cd without argument goes to the home directory' ), 1116type ='boolean' , 1117varname ='p_cdh' , 1118} , 1119{ 1120abbreviation ='cd' , 1121defaults ={ 1122if_true =',,' , 1123doc ='equivalent to $CDPATH or ",,"' , 1124} , 1125deny_duplicates =true , 1126desc =[=[ 1127This is a list of directories which will be searched when using the 1128|:cd|, |:tcd|, |:lcd| and |:bcd| commands, provided that the directory being 1129searched for has a relative path, not an absolute part starting with 1130"/", "./" or "../", the 'cdpath' option is not used then. 1131The 'cdpath' option's value has the same form and semantics as 1132'path'. Also see |file-searching|. 1133The default value is taken from $CDPATH, with a "," prepended to look 1134in the current directory first. 1135If the default value taken from $CDPATH is not what you want, include 1136a modified version of the following command in your vimrc file to 1137override it: >vim 1138let &cdpath = ',' .. substitute(substitute($CDPATH, '[, ]', '\\\0', 'g'), ':', ',', 'g') 1139< Environment variables are expanded |:set_env|. 1140(parts of 'cdpath' can be passed to the shell to expand file names). 1141]=] , 1142expand =true , 1143full_name ='cdpath' , 1144list ='comma' , 1145scope ={ 'global' } , 1146secure =true , 1147short_desc =N_ ( 'list of directories searched with ":cd"' ), 1148tags ={ 'E344' , 'E346' } , 1149type ='string' , 1150varname ='p_cdpath' , 1151} , 1152{ 1153cb ='did_set_cedit' , 1154defaults ={ 1155if_true =macros ( 'CTRL_F_STR' , 'string' ), 1156doc ='CTRL-F' , 1157} , 1158desc =[=[ 1159The key used in Command-line Mode to open the command-line window. 1160Only non-printable keys are allowed. 1161The key can be specified as a single character, but it is difficult to 1162type. The preferred way is to use |key-notation| (e.g. <Up>, <C-F>) or 1163a letter preceded with a caret (e.g. `^F` is CTRL-F). Examples: >vim 1164set cedit=^Y 1165set cedit=<Esc> 1166< |Nvi| also has this option, but it only uses the first character. 1167See |cmdwin|. 1168]=] , 1169full_name ='cedit' , 1170scope ={ 'global' } , 1171short_desc =N_ ( 'used to open the command-line window' ), 1172type ='string' , 1173varname ='p_cedit' , 1174} , 1175{ 1176defaults =0 , 1177desc =[=[ 1178|channel| connected to the buffer, or 0 if no channel is connected. 1179In a |:terminal| buffer this is the terminal channel. 1180Read-only. 1181]=] , 1182full_name ='channel' , 1183no_mkrc =true , 1184nodefault =true , 1185scope ={ 'buf' } , 1186short_desc =N_ ( 'Channel connected to the buffer' ), 1187type ='number' , 1188varname ='p_channel' , 1189} , 1190{ 1191abbreviation ='ccv' , 1192defaults ='' , 1193desc =[=[ 1194An expression that is used for character encoding conversion. It is 1195evaluated when a file that is to be read or has been written has a 1196different encoding from what is desired. 1197'charconvert' is not used when the internal iconv() function is 1198supported and is able to do the conversion. Using iconv() is 1199preferred, because it is much faster. 1200'charconvert' is not used when reading stdin |--|, because there is no 1201file to convert from. You will have to save the text in a file first. 1202The expression must return zero, false or an empty string for success, 1203non-zero or true for failure. 1204See |encoding-names| for possible encoding names. 1205Additionally, names given in 'fileencodings' and 'fileencoding' are 1206used. 1207Conversion between "latin1", "unicode", "ucs-2", "ucs-4" and "utf-8" 1208is done internally by Vim, 'charconvert' is not used for this. 1209Also used for Unicode conversion. 1210Example: >lua 1211vim.o.charconvert = function() 1212vim.fn.system(('recode %s..%s <%s >%s'):format( 1213vim.v.charconvert_from, vim.v.charconvert_to, 1214vim.v.fname_in, vim.v.fname_out)) 1215return vim.v.shell_error 1216end 1217< The related Vim variables are: 1218v:charconvert_from name of the current encoding 1219v:charconvert_to name of the desired encoding 1220v:fname_in name of the input file 1221v:fname_out name of the output file 1222Note that v:fname_in and v:fname_out will never be the same. 1223 1224The advantage of using a function call without arguments is that it is 1225faster, see |expr-option-function|. 1226 1227If the 'charconvert' expression starts with s: or |<SID>|, then it is 1228replaced with the script ID (|local-function|). Example: >vim 1229set charconvert=s:MyConvert() 1230set charconvert=<SID>SomeConvert() 1231< Otherwise the expression is evaluated in the context of the script 1232where the option was set, thus script-local items are available. 1233]=] , 1234full_name ='charconvert' , 1235scope ={ 'global' } , 1236secure =true , 1237short_desc =N_ ( 'expression for character encoding conversion' ), 1238type ='expr' , 1239tags ={ 'E202' , 'E214' , 'E513' } , 1240varname ='p_ccv' , 1241} , 1242{ 1243abbreviation ='chi' , 1244cb ='did_set_xhistory' , 1245defaults =10 , 1246desc =[=[ 1247Number of quickfix lists that should be remembered for the quickfix 1248stack. Must be between 1 and 100. If the option is set to a value 1249that is lower than the amount of entries in the quickfix list stack, 1250entries will be removed starting from the oldest one. If the current 1251quickfix list was removed, then the quickfix list at top of the stack 1252(the most recently created) will be used in its place. For additional 1253info, see |quickfix-stack|. 1254]=] , 1255full_name ='chistory' , 1256scope ={ 'global' } , 1257short_desc =N_ ( 'number of quickfix lists stored in history' ), 1258tags ={ 'E1542' , 'E1543' } , 1259type ='number' , 1260varname ='p_chi' , 1261} , 1262{ 1263abbreviation ='cin' , 1264defaults =false , 1265desc =[=[ 1266Enables automatic C program indenting. See 'cinkeys' to set the keys 1267that trigger reindenting in insert mode and 'cinoptions' to set your 1268preferred indent style. 1269If 'indentexpr' is not empty, it overrules 'cindent'. 1270If 'lisp' is not on and both 'indentexpr' and 'equalprg' are empty, 1271the "=" operator indents using this algorithm rather than calling an 1272external program. 1273See |C-indenting|. 1274When you don't like the way 'cindent' works, try the 'smartindent' 1275option or 'indentexpr'. 1276]=] , 1277full_name ='cindent' , 1278scope ={ 'buf' } , 1279short_desc =N_ ( 'do C program indenting' ), 1280type ='boolean' , 1281varname ='p_cin' , 1282} , 1283{ 1284abbreviation ='cink' , 1285defaults ='0{,0},0),0],:,0#,!^F,o,O,e' , 1286deny_duplicates =true , 1287desc =[=[ 1288A list of keys that, when typed in Insert mode, cause reindenting of 1289the current line. Only used if 'cindent' is on and 'indentexpr' is 1290empty. 1291For the format of this option see |cinkeys-format|. 1292See |C-indenting|. 1293]=] , 1294full_name ='cinkeys' , 1295list ='onecomma' , 1296scope ={ 'buf' } , 1297short_desc =N_ ( "keys that trigger indent when 'cindent' is set" ), 1298type ='string' , 1299varname ='p_cink' , 1300} , 1301{ 1302abbreviation ='cino' , 1303cb ='did_set_cinoptions' , 1304defaults ='' , 1305deny_duplicates =true , 1306desc =[=[ 1307The 'cinoptions' affect the way 'cindent' reindents lines in a C 1308program. See |cinoptions-values| for the values of this option, and 1309|C-indenting| for info on C indenting in general. 1310]=] , 1311full_name ='cinoptions' , 1312list ='onecomma' , 1313scope ={ 'buf' } , 1314short_desc =N_ ( "how to do indenting when 'cindent' is set" ), 1315type ='string' , 1316varname ='p_cino' , 1317} , 1318{ 1319abbreviation ='cinsd' , 1320defaults ='public,protected,private' , 1321deny_duplicates =true , 1322desc =[=[ 1323Keywords that are interpreted as a C++ scope declaration by |cino-g|. 1324Useful e.g. for working with the Qt framework that defines additional 1325scope declarations "signals", "public slots" and "private slots": >vim 1326set cinscopedecls+=signals,public\ slots,private\ slots 1327< 1328]=] , 1329full_name ='cinscopedecls' , 1330list ='onecomma' , 1331scope ={ 'buf' } , 1332short_desc =N_ ( "words that are recognized by 'cino-g'" ), 1333type ='string' , 1334varname ='p_cinsd' , 1335} , 1336{ 1337abbreviation ='cinw' , 1338defaults ='if,else,while,do,for,switch' , 1339deny_duplicates =true , 1340desc =[=[ 1341These keywords start an extra indent in the next line when 1342'smartindent' or 'cindent' is set. For 'cindent' this is only done at 1343an appropriate place (inside {}). 1344Note that 'ignorecase' isn't used for 'cinwords'. If case doesn't 1345matter, include the keyword both the uppercase and lowercase: 1346"if,If,IF". 1347]=] , 1348full_name ='cinwords' , 1349list ='onecomma' , 1350scope ={ 'buf' } , 1351short_desc =N_ ( "words where 'si' and 'cin' add an indent" ), 1352type ='string' , 1353varname ='p_cinw' , 1354} , 1355{ 1356abbreviation ='cb' , 1357validation_cb ='validate_str_generic' , 1358defaults ='' , 1359schema ={ 1360flags ={ 'unnamed' , 'unnamedplus' } , 1361} , 1362desc =[=[ 1363This option is a list of comma-separated names. 1364These names are recognized: 1365 1366*clipboard-unnamed* 1367unnamed When included, Vim will use the clipboard register "*" 1368for all yank, delete, change and put operations which 1369would normally go to the unnamed register. When a 1370register is explicitly specified, it will always be 1371used regardless of whether "unnamed" is in 'clipboard' 1372or not. The clipboard register can always be 1373explicitly accessed using the "* notation. Also see 1374|clipboard|. 1375 1376*clipboard-unnamedplus* 1377unnamedplus A variant of the "unnamed" flag which uses the 1378clipboard register "+" (|quoteplus|) instead of 1379register "*" for all yank, delete, change and put 1380operations which would normally go to the unnamed 1381register. When "unnamed" is also included to the 1382option, yank and delete operations (but not put) 1383will additionally copy the text into register 1384"*". See |clipboard|. 1385]=] , 1386deny_duplicates =true , 1387full_name ='clipboard' , 1388list ='onecomma' , 1389scope ={ 'global' } , 1390short_desc =N_ ( 'use the clipboard as the unnamed register' ), 1391type ='string' , 1392varname ='p_cb' , 1393flags_varname ='cb_flags' , 1394} , 1395{ 1396abbreviation ='ch' , 1397cb ='did_set_cmdheight' , 1398defaults =1 , 1399desc =[=[ 1400Number of screen lines to use for the command-line. Helps avoiding 1401|hit-enter| prompts. 1402The value of this option is stored with the tabpage, so that each 1403tabpage can have a different value. 1404 1405When 'cmdheight' is zero, there is no command-line unless it is being 1406used. The command-line will cover the last line of the screen when 1407shown. 1408 1409WARNING: `cmdheight=0` is EXPERIMENTAL. Works better with |ui2| enabled. 1410]=] , 1411full_name ='cmdheight' , 1412redraw ={ 'all_windows' } , 1413scope ={ 'global' , 'tab' } , 1414short_desc =N_ ( 'number of lines to use for the command-line' ), 1415type ='number' , 1416varname ='p_ch' , 1417} , 1418{ 1419abbreviation ='cwh' , 1420defaults =7 , 1421desc =[=[ 1422Number of screen lines to use for the command-line window. |cmdwin| 1423]=] , 1424full_name ='cmdwinheight' , 1425scope ={ 'global' } , 1426short_desc =N_ ( 'height of the command-line window' ), 1427type ='number' , 1428varname ='p_cwh' , 1429} , 1430{ 1431abbreviation ='cc' , 1432cb ='did_set_colorcolumn' , 1433validation_cb ='validate_colorcolumn' , 1434defaults ='' , 1435deny_duplicates =true , 1436desc =[=[ 1437'colorcolumn' is a comma-separated list of screen columns that are 1438highlighted with ColorColumn |hl-ColorColumn|. Useful to align 1439text. Will make screen redrawing slower. 1440The screen column can be an absolute number, or a number preceded with 1441'+' or '-', which is added to or subtracted from 'textwidth'. >vim 1442 1443set cc=+1 " highlight column after 'textwidth' 1444set cc=+1,+2,+3 " highlight three columns after 'textwidth' 1445hi ColorColumn ctermbg=lightgrey guibg=lightgrey 1446< 1447When 'textwidth' is zero then the items with '-' and '+' are not used. 1448A maximum of 256 columns are highlighted. 1449]=] , 1450full_name ='colorcolumn' , 1451list ='onecomma' , 1452redraw ={ 'current_window' , 'highlight_only' } , 1453scope ={ 'win' } , 1454short_desc =N_ ( 'columns to highlight' ), 1455type ='string' , 1456} , 1457{ 1458abbreviation ='co' , 1459cb ='did_set_lines_or_columns' , 1460defaults ={ 1461if_true =macros ( 'DFLT_COLS' , 'number' ), 1462doc ='80 or terminal width' , 1463} , 1464desc =[=[ 1465Number of columns of the screen. Normally this is set by the terminal 1466initialization and does not have to be set by hand. 1467When Vim is running in the GUI or in a resizable window, setting this 1468option will cause the window size to be changed. When you only want 1469to use the size for the GUI, put the command in your |ginit.vim| file. 1470When you set this option and Vim is unable to change the physical 1471number of columns of the display, the display may be messed up. For 1472the GUI it is always possible and Vim limits the number of columns to 1473what fits on the screen. You can use this command to get the widest 1474window possible: >vim 1475set columns=9999 1476< Minimum value is 12, maximum value is 10000. 1477]=] , 1478full_name ='columns' , 1479no_mkrc =true , 1480scope ={ 'global' } , 1481short_desc =N_ ( 'number of columns in the display' ), 1482tags ={ 'E594' } , 1483type ='number' , 1484varname ='p_columns' , 1485} , 1486{ 1487abbreviation ='com' , 1488validation_cb ='validate_comments' , 1489defaults ='s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-,fb:•' , 1490deny_duplicates =true , 1491desc =[=[ 1492A comma-separated list of strings that can start a comment line. See 1493|format-comments|. See |option-backslash| about using backslashes to 1494insert a space. 1495]=] , 1496full_name ='comments' , 1497list ='onecomma' , 1498scope ={ 'buf' } , 1499short_desc =N_ ( 'patterns that can start a comment line' ), 1500tags ={ 'E524' , 'E525' } , 1501type ='string' , 1502varname ='p_com' , 1503} , 1504{ 1505abbreviation ='cms' , 1506validation_cb ='validate_commentstring' , 1507defaults ='' , 1508desc =[=[ 1509A template for a comment. The "%s" in the value is replaced with the 1510comment text, and should be padded with a space when possible. 1511Used for |commenting| and to add markers for folding, see |fold-marker|. 1512]=] , 1513full_name ='commentstring' , 1514scope ={ 'buf' } , 1515short_desc =N_ ( 'template for comments; used for fold marker' ), 1516tags ={ 'E537' } , 1517type ='string' , 1518varname ='p_cms' , 1519} , 1520{ 1521abbreviation ='cp' , 1522defaults =false , 1523full_name ='compatible' , 1524scope ={ 'global' } , 1525short_desc =N_ ( 'Deprecated' ), 1526type ='boolean' , 1527immutable =true , 1528} , 1529{ 1530abbreviation ='cpt' , 1531cb ='did_set_complete' , 1532validation_cb ='validate_complete' , 1533defaults ='.,w,b,u,t' , 1534schema ={ 1535set ={ '.' , 'w' , 'b' , 'u' , 'k' , 'kspell' , 's' , 'i' , 'd' , ']' , 't' , 'U' , 'f' , 'F' , 'o' } , 1536} , 1537deny_duplicates =true , 1538desc =[=[ 1539This option controls how completion |ins-completion| behaves when 1540using CTRL-P, CTRL-N, or |ins-autocompletion|. It is also used for 1541whole-line completion |i_CTRL-X_CTRL-L|. It indicates the type of 1542completion and the places to scan. It is a comma-separated list of 1543flags: 1544. scan the current buffer ('wrapscan' is ignored) 1545w scan buffers from other windows 1546b scan other loaded buffers that are in the buffer list 1547u scan the unloaded buffers that are in the buffer list 1548U scan the buffers that are not in the buffer list 1549k scan the files given with the 'dictionary' option 1550kspell use the currently active spell checking |spell| 1551k{dict} scan the file {dict}. Several "k" flags can be given, 1552patterns are valid too. For example: >vim 1553set cpt=k/usr/dict/*,k~/spanish 1554< s scan the files given with the 'thesaurus' option 1555s{tsr} scan the file {tsr}. Several "s" flags can be given, patterns 1556are valid too. 1557i scan current and included files 1558d scan current and included files for defined name or macro 1559|i_CTRL-X_CTRL-D| 1560] tag completion 1561t same as "]" 1562f scan the buffer names (as opposed to buffer contents) 1563F{func} call the function {func}. Multiple "F" flags may be 1564specified. Refer to |complete-functions| for details on how 1565the function is invoked and what it should return. The value 1566can be the name of a function or a |Funcref|. For |Funcref| 1567values, spaces must be escaped with a backslash ('\'), and 1568commas with double backslashes ('\\') (see |option-backslash|). 1569Unlike other sources, functions can provide completions 1570starting from a non-keyword character before the cursor, and 1571their start position for replacing text may differ from other 1572sources. If the Dict returned by the {func} includes 1573`{"refresh": "always"}`, the function will be invoked again 1574whenever the leading text changes. 1575If generating matches is potentially slow, call 1576|complete_check()| periodically to keep Vim responsive. This 1577is especially important for |ins-autocompletion|. 1578F equivalent to using "F{func}", where the function is taken 1579from the 'completefunc' option. 1580o equivalent to using "F{func}", where the function is taken 1581from the 'omnifunc' option. 1582 1583Unloaded buffers are not loaded, thus their autocmds |:autocmd| are 1584not executed, this may lead to unexpected completions from some files 1585(gzipped files for example). Unloaded buffers are not scanned for 1586whole-line completion. 1587 1588CTRL-N, CTRL-P, and |ins-autocompletion| can be used for any 1589'iskeyword'-based completion (dictionary |i_CTRL-X_CTRL-K|, included 1590patterns |i_CTRL-X_CTRL-I|, tags |i_CTRL-X_CTRL-]|, and normal 1591expansions). With the "F" and "o" flags in 'complete', non-keywords 1592can also be completed. 1593 1594An optional match limit can be specified for a completion source by 1595appending a caret ("^") followed by a {count} to the source flag. 1596For example: ".^9,w,u,t^5" limits matches from the current buffer to 9 1597and from tags to 5. Other sources remain unlimited. 1598Note: The match limit takes effect only during forward completion 1599(CTRL-N) and is ignored during backward completion (CTRL-P). 1600 1601This option cannot be set in a modeline when 'modelineexpr' is off. 1602]=] , 1603full_name ='complete' , 1604modelineexpr =true , 1605list ='onecomma' , 1606scope ={ 'buf' } , 1607short_desc =N_ ( 'specify how Insert mode completion works' ), 1608tags ={ 'E535' } , 1609type ='string' , 1610varname ='p_cpt' , 1611} , 1612{ 1613abbreviation ='cfu' , 1614defaults ='' , 1615desc =[=[ 1616This option specifies a function to be used for Insert mode completion 1617with CTRL-X CTRL-U. |i_CTRL-X_CTRL-U| 1618See |complete-functions| for an explanation of how the function is 1619invoked and what it should return. The value can be the name of a 1620function, a |lambda| or a |Funcref|. See |option-value-function| for 1621more information. 1622]=] , 1623full_name ='completefunc' , 1624scope ={ 'buf' } , 1625secure =true , 1626short_desc =N_ ( 'function to be used for Insert mode completion' ), 1627type ='func' , 1628varname ='p_cfu' , 1629} , 1630{ 1631abbreviation ='cia' , 1632cb ='did_set_completeitemalign' , 1633defaults ='abbr,kind,menu' , 1634deny_duplicates =true , 1635desc =[=[ 1636A comma-separated list of strings that controls the alignment and 1637display order of items in the popup menu during Insert mode 1638completion. The supported values are "abbr", "kind", and "menu". 1639These values allow customizing how |complete-items| are shown in the 1640popup menu. Note: must always contain those three values in any 1641order. 1642]=] , 1643full_name ='completeitemalign' , 1644list ='onecomma' , 1645scope ={ 'global' } , 1646short_desc =N_ ( 'Insert mode completion item align order' ), 1647type ='string' , 1648varname ='p_cia' , 1649} , 1650{ 1651abbreviation ='cot' , 1652cb ='did_set_completeopt' , 1653validation_cb ='validate_str_generic' , 1654defaults ='menu,popup' , 1655schema ={ 1656flags ={ 1657'fuzzy' , 1658'longest' , 1659'menu' , 1660'menuone' , 1661'nearest' , 1662'noinsert' , 1663'noselect' , 1664'nosort' , 1665'popup' , 1666'preinsert' , 1667'preselect' , 1668'preview' , 1669} , 1670} , 1671deny_duplicates =true , 1672desc =[=[ 1673A comma-separated list of options for Insert mode completion 1674|ins-completion|. The supported values are: 1675 1676fuzzy Enable |fuzzy-matching| for completion candidates. This 1677allows for more flexible and intuitive matching, where 1678characters can be skipped and matches can be found even 1679if the exact sequence is not typed (disabled for thesaurus 1680completion |compl-thesaurus|). 1681 1682longest 1683When 'autocomplete' is not active, only the longest common 1684prefix of the matches is inserted (disabled for thesaurus 1685completion |compl-thesaurus|). If the popup menu is 1686displayed, you can use CTRL-L to add more characters. 1687Whether case is ignored depends on the type of completion. 1688For buffer text the 'ignorecase' option applies. 1689 1690When 'autocomplete' is active and no completion item is 1691selected, the longest common prefix of the matches is 1692inserted after the cursor. The prefix is taken either 1693from all displayed items or only from items in the current 1694buffer. The inserted text is highlighted with 1695|hl-PreInsert|, and the cursor position does not change 1696(similar to `"preinsert"`). Press CTRL-Y to accept. 1697See also |preinserted()|. 1698 1699menu Use a popup menu to show the possible completions. The 1700menu is only shown when there is more than one match. 1701|ins-completion-menu| 1702 1703menuone Use the popup menu also when there is only one match. 1704Useful when there is additional information about the 1705match, e.g., what file it comes from. 1706 1707nearest Matches are listed based on their proximity to the cursor 1708position, unlike the default behavior, which only 1709considers proximity for matches appearing below the 1710cursor. This applies only to matches from the current 1711buffer. No effect if "fuzzy" is present. 1712 1713noinsert Do not insert any text for a match until the user selects 1714a match from the menu. Only works in combination with 1715"menu" or "menuone". No effect if "longest" is present. 1716 1717noselect Same as "noinsert", except that no menu item is 1718pre-selected. Takes precedence over "noinsert". Enabled 1719automatically when 'autocomplete' is on, unless 1720"preinsert" is also enabled. 1721 1722nosort Disable sorting of completion candidates based on fuzzy 1723scores when "fuzzy" is enabled. Candidates will appear 1724in their original order. 1725 1726popup Show extra information about the currently selected 1727completion in a popup window. Only works in combination 1728with "menu" or "menuone". Overrides "preview". 1729 1730preinsert 1731Inserts the text of the first completion candidate beyond 1732the current leader, highlighted with |hl-PreInsert|. 1733The cursor does not move. 1734Requires "fuzzy" to be unset, and either "menuone" in 1735'completeopt' or 'autocomplete' enabled. When 1736'autocomplete' is enabled, this does not work if 1737'ignorecase' is set without 'infercase'. 1738See also |preinserted()|. 1739 1740preselect 1741When one of |complete-items| has its "preselect" field set 1742(e.g., as indicated by an LSP server), select the first 1743such item in the |popupmenu-completion|. Takes precedence 1744over "noselect". 1745 1746Unlike the implicit selection behavior (when "noselect" is 1747not set), this preserves the original sort order and 1748navigates to the preselect item rather than always 1749selecting the first item. 1750 1751preview Show extra information about the currently selected 1752completion in the preview window. Only works in 1753combination with "menu" or "menuone". 1754 1755Only "fuzzy", "longest", "popup", "preinsert", "preselect" and 1756"preview" have an effect when 'autocomplete' is enabled. 1757 1758This option does not apply to |cmdline-completion|. See 'wildoptions' 1759for that. 1760]=] , 1761full_name ='completeopt' , 1762list ='onecomma' , 1763scope ={ 'global' , 'buf' } , 1764short_desc =N_ ( 'options for Insert mode completion' ), 1765type ='string' , 1766varname ='p_cot' , 1767flags_varname ='cot_flags' , 1768} , 1769{ 1770abbreviation ='csl' , 1771cb ='did_set_completeslash' , 1772validation_cb ='validate_str_generic' , 1773defaults ='' , 1774schema ={ 1775enum ={ '' , 'slash' , 'backslash' } , 1776} , 1777desc =[=[ 1778only modifiable in MS-Windows 1779When this option is set it overrules 'shellslash' for completion: 1780- When this option is set to "slash", a forward slash is used for path 1781completion in insert mode. This is useful when editing HTML tag, or 1782Makefile with 'noshellslash' on MS-Windows. 1783- When this option is set to "backslash", backslash is used. This is 1784useful when editing a batch file with 'shellslash' set on 1785MS-Windows. 1786- When this option is empty, same character is used as for 1787'shellslash'. 1788For Insert mode completion the buffer-local value is used. For 1789command line completion the global value is used. 1790]=] , 1791enable_if ='BACKSLASH_IN_FILENAME' , 1792full_name ='completeslash' , 1793scope ={ 'buf' } , 1794type ='string' , 1795varname ='p_csl' , 1796} , 1797{ 1798abbreviation ='cto' , 1799defaults =0 , 1800desc =[=[ 1801Like 'autocompletetimeout', but applies to |i_CTRL-N| and |i_CTRL-P| 1802completion. Value of 0 disables the timeout; positive values allowed. 1803]=] , 1804full_name ='completetimeout' , 1805scope ={ 'global' } , 1806short_desc =N_ ( 'initial decay timeout for CTRL-N and CTRL-P' ), 1807type ='number' , 1808varname ='p_cto' , 1809} , 1810{ 1811abbreviation ='cocu' , 1812validation_cb ='validate_concealcursor' , 1813defaults ='' , 1814desc =[=[ 1815Sets the modes in which text in the cursor line can also be concealed. 1816When the current mode is listed then concealing happens just like in 1817other lines. 1818n Normal mode 1819v Visual mode 1820i Insert mode 1821c Command line editing, for 'incsearch' 1822 1823'v' applies to all lines in the Visual area, not only the cursor. 1824A useful value is "nc". This is used in help files. So long as you 1825are moving around text is concealed, but when starting to insert text 1826or selecting a Visual area the concealed text is displayed, so that 1827you can see what you are doing. 1828Keep in mind that the cursor position is not always where it's 1829displayed. E.g., when moving vertically it may change column. 1830]=] , 1831expand_cb ='expand_set_concealcursor' , 1832full_name ='concealcursor' , 1833list ='flags' , 1834redraw ={ 'current_window' } , 1835scope ={ 'win' } , 1836short_desc =N_ ( 'whether concealable text is hidden in cursor line' ), 1837type ='string' , 1838} , 1839{ 1840abbreviation ='cole' , 1841defaults =0 , 1842desc =[=[ 1843Determine how text with the "conceal" syntax attribute |:syn-conceal| 1844is shown: 1845 1846Value Effect ~ 18470 Text is shown normally 18481 Each block of concealed text is replaced with one 1849character. If the syntax item does not have a custom 1850replacement character defined (see |:syn-cchar|) the 1851character defined in 'listchars' is used. 1852It is highlighted with the "Conceal" highlight group. 18532 Concealed text is completely hidden unless it has a 1854custom replacement character defined (see 1855|:syn-cchar|). 18563 Concealed text is completely hidden. 1857 1858Note: in the cursor line concealed text is not hidden, so that you can 1859edit and copy the text. This can be changed with the 'concealcursor' 1860option. 1861]=] , 1862full_name ='conceallevel' , 1863redraw ={ 'current_window' } , 1864scope ={ 'win' } , 1865short_desc =N_ ( 'whether concealable text is shown or hidden' ), 1866type ='number' , 1867} , 1868{ 1869abbreviation ='cf' , 1870defaults =false , 1871desc =[=[ 1872When 'confirm' is on, certain operations that would normally 1873fail because of unsaved changes to a buffer, e.g. ":q" and ":e", 1874instead raise a dialog asking if you wish to save the current 1875file(s). You can still use a ! to unconditionally |abandon| a buffer. 1876If 'confirm' is off you can still activate confirmation for one 1877command only (this is most useful in mappings) with the |:confirm| 1878command. 1879Also see the |confirm()| function and the 'v' flag in 'guioptions'. 1880]=] , 1881full_name ='confirm' , 1882scope ={ 'global' } , 1883short_desc =N_ ( 'ask what to do about unsaved/read-only files' ), 1884type ='boolean' , 1885varname ='p_confirm' , 1886} , 1887{ 1888abbreviation ='ci' , 1889defaults =false , 1890desc =[=[ 1891Copy the structure of the existing lines indent when autoindenting a 1892new line. Normally the new indent is reconstructed by a series of 1893tabs followed by spaces as required (unless 'expandtab' is enabled, 1894in which case only spaces are used). Enabling this option makes the 1895new line copy whatever characters were used for indenting on the 1896existing line. 'expandtab' has no effect on these characters, a Tab 1897remains a Tab. If the new indent is greater than on the existing 1898line, the remaining space is filled in the normal manner. 1899See 'preserveindent'. 1900]=] , 1901full_name ='copyindent' , 1902scope ={ 'buf' } , 1903short_desc =N_ ( "make 'autoindent' use existing indent structure" ), 1904type ='boolean' , 1905varname ='p_ci' , 1906} , 1907{ 1908abbreviation ='cpo' , 1909validation_cb ='validate_cpoptions' , 1910defaults =macros ( 'CPO_VIM' , 'string' ), 1911desc =[=[ 1912A sequence of single character flags. When a character is present 1913this indicates Vi-compatible behavior. This is used for things where 1914not being Vi-compatible is mostly or sometimes preferred. 1915'cpoptions' stands for "compatible-options". 1916Commas can be added for readability. 1917To avoid problems with flags that are added in the future, use the 1918"+=" and "-=" feature of ":set" |add-option-flags|. 1919 1920contains behavior ~ 1921*cpo-a* 1922a When included, a ":read" command with a file name 1923argument will set the alternate file name for the 1924current window. 1925*cpo-A* 1926A When included, a ":write" command with a file name 1927argument will set the alternate file name for the 1928current window. 1929*cpo-b* 1930b "\|" in a ":map" command is recognized as the end of 1931the map command. The '\' is included in the mapping, 1932the text after the '|' is interpreted as the next 1933command. Use a CTRL-V instead of a backslash to 1934include the '|' in the mapping. Applies to all 1935mapping, abbreviation, menu and autocmd commands. 1936See also |map_bar|. 1937*cpo-B* 1938B A backslash has no special meaning in mappings, 1939abbreviations, user commands and the "to" part of the 1940menu commands. Remove this flag to be able to use a 1941backslash like a CTRL-V. For example, the command 1942":map X \\<Esc>" results in X being mapped to: 1943'B' included: "\^[" (^[ is a real <Esc>) 1944'B' excluded: "<Esc>" (5 characters) 1945*cpo-c* 1946c Searching continues at the end of any match at the 1947cursor position, but not further than the start of the 1948next line. When not present searching continues 1949one character from the cursor position. With 'c' 1950"abababababab" only gets three matches when repeating 1951"/abab", without 'c' there are five matches. 1952*cpo-C* 1953C Do not concatenate sourced lines that start with a 1954backslash. See |line-continuation|. 1955*cpo-d* 1956d Using "./" in the 'tags' option doesn't mean to use 1957the tags file relative to the current file, but the 1958tags file in the current directory. 1959*cpo-D* 1960D Can't use CTRL-K to enter a digraph after Normal mode 1961commands with a character argument, like |r|, |f| and 1962|t|. 1963*cpo-e* 1964e When executing a register with ":@r", always add a 1965<CR> to the last line, also when the register is not 1966linewise. If this flag is not present, the register 1967is not linewise and the last line does not end in a 1968<CR>, then the last line is put on the command-line 1969and can be edited before hitting <CR>. 1970*cpo-E* 1971E It is an error when using "y", "d", "c", "g~", "gu" or 1972"gU" on an Empty region. The operators only work when 1973at least one character is to be operated on. Example: 1974This makes "y0" fail in the first column. 1975*cpo-f* 1976f When included, a ":read" command with a file name 1977argument will set the file name for the current 1978buffer, if the current buffer doesn't have a file name 1979yet. 1980*cpo-F* 1981F When included, a ":write" command with a file name 1982argument will set the file name for the current 1983buffer, if the current buffer doesn't have a file name 1984yet. Also see |cpo-P|. 1985*cpo-i* 1986i When included, interrupting the reading of a file will 1987leave it modified. 1988*cpo-I* 1989I When moving the cursor up or down just after inserting 1990indent for 'autoindent', do not delete the indent. 1991*cpo-J* 1992J A |sentence| has to be followed by two spaces after 1993the '.', '!' or '?'. A <Tab> is not recognized as 1994white space. 1995*cpo-K* 1996K Don't wait for a key code to complete when it is 1997halfway through a mapping. This breaks mapping 1998<F1><F1> when only part of the second <F1> has been 1999read. It enables cancelling the mapping by typing 2000<F1><Esc>. 2001*cpo-l* 2002l Backslash in a [] range in a search pattern is taken 2003literally, only "\]", "\^", "\-" and "\\" are special. 2004See |/[]| 2005'l' included: "/[ \t]" finds <Space>, '\' and 't' 2006'l' excluded: "/[ \t]" finds <Space> and <Tab> 2007*cpo-L* 2008L When the 'list' option is set, 'wrapmargin', 2009'textwidth', 'softtabstop' and Virtual Replace mode 2010(see |gR|) count a <Tab> as two characters, instead of 2011the normal behavior of a <Tab>. 2012*cpo-m* 2013m When included, a showmatch will always wait half a 2014second. When not included, a showmatch will wait half 2015a second or until a character is typed. 'showmatch' 2016*cpo-M* 2017M When excluded, "%" matching will take backslashes into 2018account. Thus in "( \( )" and "\( ( \)" the outer 2019parenthesis match. When included "%" ignores 2020backslashes, which is Vi compatible. 2021*cpo-n* 2022n When included, the column used for 'number' and 2023'relativenumber' will also be used for text of wrapped 2024lines. 2025*cpo-o* 2026o Line offset to search command is not remembered for 2027next search. 2028*cpo-O* 2029O Don't complain if a file is being overwritten, even 2030when it didn't exist when editing it. This is a 2031protection against a file unexpectedly created by 2032someone else. Vi didn't complain about this. 2033*cpo-P* 2034P When included, a ":write" command that appends to a 2035file will set the file name for the current buffer, if 2036the current buffer doesn't have a file name yet and 2037the 'F' flag is also included |cpo-F|. 2038*cpo-q* 2039q When joining multiple lines leave the cursor at the 2040position where it would be when joining two lines. 2041*cpo-r* 2042r Redo ("." command) uses "/" to repeat a search 2043command, instead of the actually used search string. 2044*cpo-R* 2045R Remove marks from filtered lines. Without this flag 2046marks are kept like |:keepmarks| was used. 2047*cpo-s* 2048s Set buffer options when entering the buffer for the 2049first time. This is like it is in Vim version 3.0. 2050And it is the default. If not present the options are 2051set when the buffer is created. 2052*cpo-S* 2053S Set buffer options always when entering a buffer 2054(except 'readonly', 'fileformat', 'filetype' and 2055'syntax'). This is the (most) Vi compatible setting. 2056The options are set to the values in the current 2057buffer. When you change an option and go to another 2058buffer, the value is copied. Effectively makes the 2059buffer options global to all buffers. 2060 2061's' 'S' copy buffer options 2062no no when buffer created 2063yes no when buffer first entered (default) 2064X yes each time when buffer entered (vi comp.) 2065*cpo-t* 2066t Search pattern for the tag command is remembered for 2067"n" command. Otherwise Vim only puts the pattern in 2068the history for search pattern, but doesn't change the 2069last used search pattern. 2070*cpo-u* 2071u Undo is Vi compatible. See |undo-two-ways|. 2072*cpo-v* 2073v Backspaced characters remain visible on the screen in 2074Insert mode. Without this flag the characters are 2075erased from the screen right away. With this flag the 2076screen newly typed text overwrites backspaced 2077characters. 2078*cpo-W* 2079W Don't overwrite a readonly file. When omitted, ":w!" 2080overwrites a readonly file, if possible. 2081*cpo-x* 2082x <Esc> on the command-line executes the command-line. 2083The default in Vim is to abandon the command-line, 2084because <Esc> normally aborts a command. |c_<Esc>| 2085*cpo-X* 2086X When using a count with "R" the replaced text is 2087deleted only once. Also when repeating "R" with "." 2088and a count. 2089*cpo-y* 2090y A yank command can be redone with ".". Think twice if 2091you really want to use this, it may break some 2092plugins, since most people expect "." to only repeat a 2093change. 2094*cpo-Z* 2095Z When using "w!" while the 'readonly' option is set, 2096don't reset 'readonly'. 2097*cpo-!* 2098! When redoing a filter command, use the last used 2099external command, whatever it was. Otherwise the last 2100used -filter- command is used. 2101*cpo-$* 2102$ When making a change to one line, don't redisplay the 2103line, but put a '$' at the end of the changed text. 2104The changed text will be overwritten when you type the 2105new text. The line is redisplayed if you type any 2106command that moves the cursor from the insertion 2107point. 2108*cpo-%* 2109% Vi-compatible matching is done for the "%" command. 2110Does not recognize "#if", "#endif", etc. 2111Does not recognize "/*" and "*/". 2112Parens inside single and double quotes are also 2113counted, causing a string that contains a paren to 2114disturb the matching. For example, in a line like 2115"if (strcmp("foo(", s))" the first paren does not 2116match the last one. When this flag is not included, 2117parens inside single and double quotes are treated 2118specially. When matching a paren outside of quotes, 2119everything inside quotes is ignored. When matching a 2120paren inside quotes, it will find the matching one (if 2121there is one). This works very well for C programs. 2122This flag is also used for other features, such as 2123C-indenting. 2124*cpo-+* 2125+ When included, a ":write file" command will reset the 2126'modified' flag of the buffer, even though the buffer 2127itself may still be different from its file. 2128*cpo->* 2129> When appending to a register, put a line break before 2130the appended text. 2131*cpo-;* 2132; When using |,| or |;| to repeat the last |t| search 2133and the cursor is right in front of the searched 2134character, the cursor won't move. When not included, 2135the cursor would skip over it and jump to the 2136following occurrence. 2137*cpo-~* 2138~ When included, don't resolve symbolic links when 2139changing directory with |:cd|, |:tcd|, |:lcd|, or |:bcd|. 2140This preserves the symbolic link path in buffer names 2141and when displaying the current directory. When 2142excluded (default), symbolic links are resolved to 2143their target paths. 2144*cpo-_* 2145_ When using |cw| on a word, do not include the 2146whitespace following the word in the motion. 2147]=] , 2148expand_cb ='expand_set_cpoptions' , 2149-- Generates kCpo* flag constants. CPO_VI/CPO_VIM stay hand-defined in option_vars.h. 2150schema ={ 2151flagchars ={ 2152altread ='a' , -- ":read" sets alternate file name 2153altwrite ='A' , -- ":write" sets alternate file name 2154bar ='b' , -- "\|" ends a mapping 2155bslash ='B' , -- backslash in mapping is not special 2156search ='c' , 2157concat ='C' , -- Don't concatenate sourced lines 2158dottag ='d' , -- "./tags" in 'tags' is in current dir 2159digraph ='D' , -- No digraph after "r", "f", etc. 2160execbuf ='e' , 2161emptyregion ='E' , -- operating on empty region is an error 2162fnamer ='f' , -- set file name for ":r file" 2163fnamew ='F' , -- set file name for ":w file" 2164intmod ='i' , -- interrupt a read makes buffer modified 2165indent ='I' , -- remove auto-indent more often 2166endofsent ='J' , -- need two spaces to detect end of sentence 2167koffset ='K' , -- don't wait for key code in mappings 2168literal ='l' , -- take char after backslash in [] literal 2169listwm ='L' , -- 'list' changes wrapmargin 2170showmatch ='m' , 2171matchbsl ='M' , -- "%" ignores use of backslashes 2172numcol ='n' , -- 'number' column also used for text 2173lineoff ='o' , 2174overnew ='O' , -- silently overwrite new file 2175fnameapp ='P' , -- set file name for ":w >>file" 2176joincol ='q' , -- with "3J" use column after first join 2177redo ='r' , 2178remmark ='R' , -- remove marks when filtering 2179bufopt ='s' , 2180bufoptglob ='S' , 2181tagpat ='t' , -- tag pattern is used for "n" 2182undo ='u' , -- "u" undoes itself 2183backspace ='v' , -- "v" keep deleted text 2184fwrite ='W' , -- "w!" doesn't overwrite readonly files 2185esc ='x' , 2186replcnt ='X' , -- "R" with a count only deletes chars once 2187yank ='y' , 2188keepro ='Z' , -- don't reset 'readonly' on ":w!" 2189dollar ='$' , 2190filter ='!' , 2191match ='%' , 2192plus ='+' , -- ":write file" resets 'modified' 2193regappend ='>' , -- insert NL when appending to a register 2194scolon =';' , -- using "," and ";" will skip over char if cursor would not move 2195nosymlinks ='~' , -- don't resolve symlinks when changing directory 2196changew ='_' , -- "cw" special-case 2197} , 2198} , 2199full_name ='cpoptions' , 2200list ='flags' , 2201redraw ={ 'all_windows' } , 2202scope ={ 'global' } , 2203short_desc =N_ ( 'flags for Vi-compatible behavior' ), 2204tags ={ 'cpo' } , 2205type ='string' , 2206varname ='p_cpo' , 2207} , 2208{ 2209abbreviation ='crb' , 2210defaults =false , 2211desc =[=[ 2212When this option is set, as the cursor in the current 2213window moves other cursorbound windows (windows that also have 2214this option set) move their cursors to the corresponding line and 2215column. This option is useful for viewing the 2216differences between two versions of a file (see 'diff'); in diff mode, 2217inserted and deleted lines (though not characters within a line) are 2218taken into account. 2219]=] , 2220full_name ='cursorbind' , 2221scope ={ 'win' } , 2222short_desc =N_ ( 'move cursor in window as it moves in other windows' ), 2223type ='boolean' , 2224} , 2225{ 2226abbreviation ='cuc' , 2227defaults =false , 2228desc =[=[ 2229Highlight the screen column of the cursor with CursorColumn 2230|hl-CursorColumn|. Useful to align text. Will make screen redrawing 2231slower. 2232If you only want the highlighting in the current window you can use 2233these autocommands: >vim 2234au WinLeave * set nocursorline nocursorcolumn 2235au WinEnter * set cursorline cursorcolumn 2236< 2237]=] , 2238full_name ='cursorcolumn' , 2239redraw ={ 'current_window' , 'highlight_only' } , 2240scope ={ 'win' } , 2241short_desc =N_ ( 'highlight the screen column of the cursor' ), 2242type ='boolean' , 2243} , 2244{ 2245abbreviation ='cul' , 2246defaults =false , 2247desc =[=[ 2248Highlighting used for the line the cursor is on: 2249 2250CursorLine the text line |hl-CursorLine| 2251CursorLineFold the fold column |hl-CursorLineFold| 2252CursorLineSign the sign column |hl-CursorLineSign| 2253CursorLineNr the line number, when 'cursorlineopt' contains 2254"number" |hl-CursorLineNr| 2255 2256Useful to easily spot the cursor. Will make screen redrawing slower. 2257When Visual mode is active the highlighting isn't used to make it 2258easier to see the selected text. 2259]=] , 2260full_name ='cursorline' , 2261redraw ={ 'current_window' , 'highlight_only' } , 2262scope ={ 'win' } , 2263short_desc =N_ ( 'highlight the screen line of the cursor' ), 2264type ='boolean' , 2265} , 2266{ 2267abbreviation ='culopt' , 2268cb ='did_set_cursorlineopt' , 2269defaults ='both' , 2270-- Keep this in sync with fill_culopt_flags(). "both" is an alias (line+number), not its own bit. 2271schema ={ 2272flags ={ 2273{ 'line' , 0x01 } , 2274{ 'screenline' , 0x02 } , 2275{ 'number' , 0x04 } , 2276} , 2277enum ={ 'both' } , 2278} , 2279deny_duplicates =true , 2280desc =[=[ 2281Comma-separated list of settings for how 'cursorline' is displayed. 2282Valid values: 2283"line" Highlight the text line of the cursor with 2284CursorLine |hl-CursorLine|. 2285"screenline" Highlight only the screen line of the cursor with 2286CursorLine |hl-CursorLine|. 2287"number" Highlight the line number of the cursor with 2288CursorLineNr |hl-CursorLineNr|. 2289 2290Special value: 2291"both" Alias for the values "line,number". 2292 2293"line" and "screenline" cannot be used together. 2294]=] , 2295full_name ='cursorlineopt' , 2296list ='onecomma' , 2297redraw ={ 'current_window' , 'highlight_only' } , 2298scope ={ 'win' } , 2299short_desc =N_ ( "settings for 'cursorline'" ), 2300type ='string' , 2301} , 2302{ 2303validation_cb ='validate_str_generic' , 2304defaults ='' , 2305schema ={ 2306set ={ 'msg' , 'throw' , 'beep' } , 2307} , 2308desc =[=[ 2309These values can be used: 2310msg Error messages that would otherwise be omitted will be given 2311anyway. 2312throw Error messages that would otherwise be omitted will be given 2313anyway and also throw an exception and set |v:errmsg|. 2314beep A message will be given when otherwise only a beep would be 2315produced. 2316The values can be combined, separated by a comma. 2317"msg" and "throw" are useful for debugging 'foldexpr', 'formatexpr' or 2318'indentexpr'. 2319]=] , 2320-- TODO(lewis6991): bug, values currently cannot be combined 2321full_name ='debug' , 2322list ='comma' , 2323scope ={ 'global' } , 2324short_desc =N_ ( 'to "msg" to see all error messages' ), 2325type ='string' , 2326varname ='p_debug' , 2327} , 2328{ 2329abbreviation ='def' , 2330defaults ='' , 2331desc =[=[ 2332Pattern to be used to find a macro definition. It is a search 2333pattern, just like for the "/" command. This option is used for the 2334commands like "[i" and "[d" |include-search|. The 'isident' option is 2335used to recognize the defined name after the match: > 2336{match with 'define'}{non-ID chars}{defined name}{non-ID char} 2337< See |option-backslash| about inserting backslashes to include a space 2338or backslash. 2339For C++ this value would be useful, to include const type declarations: > 2340^\(#\s*define\|[a-z]*\s*const\s*[a-z]*\) 2341< You can also use "\ze" just before the name and continue the pattern 2342to check what is following. E.g. for Javascript, if a function is 2343defined with `func_name = function(args)`: > 2344^\s*\ze\i\+\s*=\s*function( 2345< If the function is defined with `func_name : function() {...`: > 2346^\s*\ze\i\+\s*[:]\s*(*function\s*( 2347< When using the ":set" command, you need to double the backslashes! 2348To avoid that use `:let` with a single quote string: >vim 2349let &l:define = '^\s*\ze\k\+\s*=\s*function(' 2350< 2351]=] , 2352full_name ='define' , 2353scope ={ 'global' , 'buf' } , 2354short_desc =N_ ( 'pattern to be used to find a macro definition' ), 2355type ='string' , 2356varname ='p_def' , 2357} , 2358{ 2359abbreviation ='deco' , 2360defaults =false , 2361desc =[=[ 2362If editing Unicode and this option is set, backspace and Normal mode 2363"x" delete each combining character on its own. When it is off (the 2364default) the character along with its combining characters are 2365deleted. 2366Note: When 'delcombine' is set "xx" may work differently from "2x"! 2367 2368This is useful for Arabic, Hebrew and many other languages where one 2369may have combining characters overtop of base characters, and want 2370to remove only the combining ones. 2371]=] , 2372full_name ='delcombine' , 2373scope ={ 'global' } , 2374short_desc =N_ ( 'delete combining characters on their own' ), 2375type ='boolean' , 2376varname ='p_deco' , 2377} , 2378{ 2379abbreviation ='dict' , 2380defaults ='' , 2381deny_duplicates =true , 2382desc =[=[ 2383List of file names, separated by commas, that are used to lookup words 2384for keyword completion commands |i_CTRL-X_CTRL-K|. Each file should 2385contain a list of words. This can be one word per line, or several 2386words per line, separated by non-keyword characters (white space is 2387preferred). Maximum line length is 510 bytes. 2388 2389When this option is empty or an entry "spell" is present, and spell 2390checking is enabled, words in the word lists for the currently active 2391'spelllang' are used. See |spell|. 2392 2393To include a comma in a file name precede it with a backslash. Spaces 2394after a comma are ignored, otherwise spaces are included in the file 2395name. See |option-backslash| about using backslashes. 2396Environment variables are expanded |:set_env|. 2397This has nothing to do with the |Dictionary| variable type. 2398Where to find a list of words? 2399- BSD/macOS include the "/usr/share/dict/words" file. 2400- Try "apt install spell" to get the "/usr/share/dict/words" file on 2401apt-managed systems (Debian/Ubuntu). 2402The use of |:set+=| and |:set-=| is preferred when adding or removing 2403directories from the list. This avoids problems when a future version 2404uses another default. 2405Backticks cannot be used in this option for security reasons. 2406]=] , 2407expand =true , 2408full_name ='dictionary' , 2409list ='onecomma' , 2410normal_dname_chars =true , 2411scope ={ 'global' , 'buf' } , 2412short_desc =N_ ( 'list of file names used for keyword completion' ), 2413type ='string' , 2414varname ='p_dict' , 2415} , 2416{ 2417cb ='did_set_diff' , 2418defaults =false , 2419desc =[=[ 2420Join the current window in the group of windows that shows differences 2421between files. See |diff-mode|. 2422]=] , 2423full_name ='diff' , 2424noglob =true , 2425redraw ={ 'current_window' } , 2426scope ={ 'win' } , 2427short_desc =N_ ( 'diff mode for the current window' ), 2428type ='boolean' , 2429} , 2430{ 2431abbreviation ='dia' , 2432cb ='did_set_diffanchors' , 2433defaults ='' , 2434desc =[=[ 2435List of {address} in each buffer, separated by commas, that are 2436considered anchors when used for diffing. It's valid to specify "$+1" 2437for 1 past the last line. "%" cannot be used for this option. There 2438can be at most 20 anchors set for each buffer. 2439 2440Each anchor line splits the buffer (the split happens above the 2441anchor), with each part being diff'ed separately before the final 2442result is joined. When more than one {address} are provided, the 2443anchors will be sorted internally by line number. If using buffer 2444local options, each buffer should have the same number of anchors 2445(extra anchors will be ignored). This option is only used when 2446'diffopt' has "anchor" set. See |diff-anchors| for more details and 2447examples. 2448*E1550* 2449If some of the {address} do not resolve to a line in each buffer (e.g. 2450a pattern search that does not match anything), none of the anchors 2451will be used. 2452*E1562* 2453Diff anchors can only be used when there are no hidden diff buffers. 2454]=] , 2455full_name ='diffanchors' , 2456list ='onecomma' , 2457scope ={ 'global' , 'buf' } , 2458short_desc =N_ ( 'list of addresses for anchoring a diff' ), 2459type ='string' , 2460varname ='p_dia' , 2461} , 2462{ 2463abbreviation ='dex' , 2464defaults ='' , 2465desc =[=[ 2466Expression which is evaluated to obtain a diff file (either ed-style 2467or unified-style) from two versions of a file. See |diff-diffexpr|. 2468]=] , 2469full_name ='diffexpr' , 2470redraw ={ 'curswant' } , 2471scope ={ 'global' } , 2472secure =true , 2473short_desc =N_ ( 'expression used to obtain a diff file' ), 2474type ='expr' , 2475varname ='p_dex' , 2476} , 2477{ 2478abbreviation ='dip' , 2479cb ='did_set_diffopt' , 2480defaults ='internal,filler,closeoff,indent-heuristic,inline:char,linematch:40' , 2481schema ={ 2482dict ={ 2483'filler' , 2484'anchor' , 2485{ 'context' , 'num' } , 2486'iblank' , 2487'icase' , 2488'iwhite' , 2489'iwhiteall' , 2490'iwhiteeol' , 2491'horizontal' , 2492'vertical' , 2493'closeoff' , 2494'hiddenoff' , 2495{ 'foldcolumn' , 'num' } , 2496'followwrap' , 2497'internal' , 2498'indent-heuristic' , 2499{ 'algorithm' , 'enum' , { values ={ 'myers' , 'minimal' , 'patience' , 'histogram' } } } , 2500{ 'inline' , 'enum' , { values ={ 'none' , 'simple' , 'char' , 'word' } } } , 2501{ 'linematch' , 'num' } , 2502} , 2503} , 2504deny_duplicates =true , 2505desc =[=[ 2506Option settings for diff mode. It can consist of the following items. 2507All are optional. Items must be separated by a comma. 2508 2509algorithm:{text} Use the specified diff algorithm with the 2510internal diff engine. Currently supported 2511algorithms are: 2512myers the default algorithm 2513minimal spend extra time to generate the 2514smallest possible diff 2515patience patience diff algorithm 2516histogram histogram diff algorithm 2517 2518anchor Anchor specific lines in each buffer to be 2519aligned with each other if 'diffanchors' is 2520set. See |diff-anchors|. 2521 2522closeoff When a window is closed where 'diff' is set 2523and there is only one window remaining in the 2524same tabpage with 'diff' set, execute 2525`:diffoff` in that window. This undoes a 2526`:diffsplit` command. 2527 2528context:{n} Use a context of {n} lines between a change 2529and a fold that contains unchanged lines. 2530When omitted a context of six lines is used. 2531When using zero the context is actually one, 2532since folds require a line in between, also 2533for a deleted line. Set it to a very large 2534value (999999) to disable folding completely. 2535See |fold-diff|. 2536 2537filler Show filler lines, to keep the text 2538synchronized with a window that has inserted 2539lines at the same position. Mostly useful 2540when windows are side-by-side and 'scrollbind' 2541is set. 2542 2543foldcolumn:{n} Set the 'foldcolumn' option to {n} when 2544starting diff mode. Without this 2 is used. 2545 2546followwrap Follow the 'wrap' option and leave as it is. 2547 2548horizontal Start diff mode with horizontal splits (unless 2549explicitly specified otherwise). 2550 2551hiddenoff Do not use diff mode for a buffer when it 2552becomes hidden. 2553 2554iblank Ignore changes where lines are all blank. 2555Adds the "-B" flag to the "diff" command if 2556'diffexpr' is empty. Check the documentation 2557of the "diff" command for what this does 2558exactly. 2559NOTE: the diff windows will get out of sync, 2560because no differences between blank lines are 2561taken into account. 2562 2563icase Ignore changes in case of text. "a" and "A" 2564are considered the same. Adds the "-i" flag 2565to the "diff" command if 'diffexpr' is empty. 2566 2567indent-heuristic 2568Use the indent heuristic for the internal 2569diff library. 2570 2571inline:{text} Highlight inline differences within a change. 2572See |view-diffs|. Supported values are: 2573 2574none Do not perform inline highlighting. 2575simple Highlight from first different 2576character to the last one in each 2577line. This is the default if no 2578`inline:` value is set. 2579char Use internal diff to perform a 2580character-wise diff and highlight the 2581difference. 2582word Use internal diff to perform a 2583|word|-wise diff and highlight the 2584difference. Non-alphanumeric 2585multi-byte characters such as emoji 2586and CJK characters are considered 2587individual words. Small gaps of 2588non-word characters (5 bytes or less) 2589between changes are merged into a 2590single highlight block. 2591 2592internal Use the internal diff library. This is 2593ignored when 'diffexpr' is set. *E960* 2594When running out of memory when writing a 2595buffer or the diff is larger than 1 GB this 2596item will be ignored for diffs involving that 2597buffer. Set the 'verbose' option to see when 2598this happens. 2599 2600iwhite Ignore changes in amount of white space. Adds 2601the "-b" flag to the "diff" command if 2602'diffexpr' is empty. Check the documentation 2603of the "diff" command for what this does 2604exactly. It should ignore adding trailing 2605white space, but not leading white space. 2606 2607iwhiteall Ignore all white space changes. Adds 2608the "-w" flag to the "diff" command if 2609'diffexpr' is empty. Check the documentation 2610of the "diff" command for what this does 2611exactly. 2612 2613iwhiteeol Ignore white space changes at end of line. 2614Adds the "-Z" flag to the "diff" command if 2615'diffexpr' is empty. Check the documentation 2616of the "diff" command for what this does 2617exactly. 2618 2619linematch:{n} Align and mark changes between the most 2620similar lines between the buffers. When the 2621total number of lines in the diff hunk exceeds 2622{n}, the lines will not be aligned because for 2623very large diff hunks there will be a 2624noticeable lag. A reasonable setting is 2625"linematch:60", as this will enable alignment 2626for a 2 buffer diff hunk of 30 lines each, or 2627a 3 buffer diff hunk of 20 lines each. 2628Implicitly sets "filler" when this is set. 2629 2630vertical Start diff mode with vertical splits (unless 2631explicitly specified otherwise). 2632 2633Examples: >vim 2634set diffopt=internal,filler,context:4 2635set diffopt= 2636set diffopt=internal,filler,foldcolumn:3 2637set diffopt-=internal " do NOT use the internal diff parser 2638< 2639]=] , 2640expand_cb ='expand_set_diffopt' , 2641full_name ='diffopt' , 2642list ='onecommacolon' , 2643redraw ={ 'current_window' } , 2644scope ={ 'global' } , 2645short_desc =N_ ( 'options for using diff mode' ), 2646type ='string' , -- OptKeyDict_dip 2647varname ='p_dip' , 2648} , 2649{ 2650abbreviation ='dg' , 2651defaults =false , 2652desc =[=[ 2653Enable the entering of digraphs in Insert mode with {char1} <BS> 2654{char2}. See |digraphs|. 2655]=] , 2656full_name ='digraph' , 2657scope ={ 'global' } , 2658short_desc =N_ ( 'enable the entering of digraphs in Insert mode' ), 2659type ='boolean' , 2660varname ='p_dg' , 2661} , 2662{ 2663abbreviation ='dir' , 2664defaults ='' , 2665deny_duplicates =true , 2666desc =[=[ 2667List of directory names for the swap file, separated with commas. 2668 2669Possible items: 2670- The swap file will be created in the first directory where this is 2671possible. If it is not possible in any directory, but last 2672directory listed in the option does not exist, it is created. 2673- Empty means that no swap file will be used (recovery is 2674impossible!) and no |E303| error will be given. 2675- A directory "." means to put the swap file in the same directory as 2676the edited file. On Unix, a dot is prepended to the file name, so 2677it doesn't show in a directory listing. On MS-Windows the "hidden" 2678attribute is set and a dot prepended if possible. 2679- A directory starting with "./" (or ".\" for MS-Windows) means to put 2680the swap file relative to where the edited file is. The leading "." 2681is replaced with the path name of the edited file. 2682- For Unix and Win32, if a directory ends in two path separators "//", 2683the swap file name will be built from the complete path to the file 2684with all path separators replaced by percent '%' signs (including 2685the colon following the drive letter on Win32). This will ensure 2686file name uniqueness in the preserve directory. 2687On Win32, it is also possible to end with "\\". However, When a 2688separating comma is following, you must use "//", since "\\" will 2689include the comma in the file name. Therefore it is recommended to 2690use '//', instead of '\\'. 2691- Spaces after the comma are ignored, other spaces are considered part 2692of the directory name. To have a space at the start of a directory 2693name, precede it with a backslash. 2694- To include a comma in a directory name precede it with a backslash. 2695- A directory name may end in an ':' or '/'. 2696- Environment variables are expanded |:set_env|. 2697- Careful with '\' characters, type one before a space, type two to 2698get one in the option (see |option-backslash|), for example: >vim 2699set dir=c:\\tmp,\ dir\\,with\\,commas,\\\ dir\ with\ spaces 2700< 2701Editing the same file twice will result in a warning. Using "/tmp" on 2702is discouraged: if the system crashes you lose the swap file. And 2703others on the computer may be able to see the files. 2704Use |:set+=| and |:set-=| when adding or removing directories from the 2705list, this avoids problems if the Nvim default is changed. 2706]=] , 2707expand ='nodefault' , 2708full_name ='directory' , 2709list ='onecomma' , 2710scope ={ 'global' } , 2711secure =true , 2712short_desc =N_ ( 'list of directory names for the swap file' ), 2713type ='string' , 2714varname ='p_dir' , 2715} , 2716{ 2717abbreviation ='dy' , 2718cb ='did_set_display' , 2719validation_cb ='validate_str_generic' , 2720defaults ='lastline' , 2721schema ={ 2722flags ={ 'lastline' , 'truncate' , 'uhex' , 'msgsep' } , 2723} , 2724deny_duplicates =true , 2725desc =[=[ 2726Change the way text is displayed. This is a comma-separated list of 2727flags: 2728lastline When included, as much as possible of the last line 2729in a window will be displayed. "@@@" is put in the 2730last columns of the last screen line to indicate the 2731rest of the line is not displayed. 2732truncate Like "lastline", but "@@@" is displayed in the first 2733column of the last screen line. Overrules "lastline". 2734uhex Show unprintable characters hexadecimal as <xx> 2735instead of using ^C and ~C. 2736msgsep Obsolete flag. Allowed but takes no effect. |msgsep| 2737 2738When neither "lastline" nor "truncate" is included, a last line that 2739doesn't fit is replaced with "@" lines. 2740 2741The "@" character can be changed by setting the "lastline" item in 2742'fillchars'. The character is highlighted with |hl-NonText|. 2743]=] , 2744full_name ='display' , 2745list ='onecomma' , 2746redraw ={ 'all_windows' } , 2747scope ={ 'global' } , 2748short_desc =N_ ( 'list of flags for how to display text' ), 2749type ='string' , 2750varname ='p_dy' , 2751flags_varname ='dy_flags' , 2752} , 2753{ 2754abbreviation ='ead' , 2755validation_cb ='validate_str_generic' , 2756defaults ='both' , 2757schema ={ 2758enum ={ 'both' , 'ver' , 'hor' } , 2759} , 2760desc =[=[ 2761Tells when the 'equalalways' option applies: 2762ver vertically, width of windows is not affected 2763hor horizontally, height of windows is not affected 2764both width and height of windows is affected 2765]=] , 2766full_name ='eadirection' , 2767scope ={ 'global' } , 2768short_desc =N_ ( "in which direction 'equalalways' works" ), 2769type ='string' , 2770varname ='p_ead' , 2771} , 2772{ 2773abbreviation ='ed' , 2774defaults =false , 2775full_name ='edcompatible' , 2776scope ={ 'global' } , 2777short_desc =N_ ( 'Deprecated' ), 2778type ='boolean' , 2779immutable =true , 2780} , 2781{ 2782abbreviation ='emo' , 2783cb ='did_set_emoji' , 2784defaults =true , 2785desc =[=[ 2786When on all Unicode emoji characters are considered to be full width. 2787This excludes "text emoji" characters, which are normally displayed as 2788single width. However, such "text emoji" are treated as full-width 2789emoji if they are followed by the U+FE0F variant selector. 2790 2791Unfortunately there is no good specification for this and it has been 2792determined on trial-and-error basis. Use the |setcellwidths()| 2793function to change the behavior. 2794]=] , 2795full_name ='emoji' , 2796redraw ={ 'all_windows' , 'ui_option' } , 2797scope ={ 'global' } , 2798short_desc =N_ ( 'No description' ), 2799type ='boolean' , 2800varname ='p_emoji' , 2801} , 2802{ 2803abbreviation ='enc' , 2804cb ='did_set_encoding' , 2805defaults =macros ( 'ENC_DFLT' , 'string' ), 2806desc =[=[ 2807String-encoding used internally and for |RPC| communication. 2808Always UTF-8. 2809 2810See 'fileencoding' to control file-content encoding. 2811]=] , 2812full_name ='encoding' , 2813scope ={ 'global' } , 2814short_desc =N_ ( 'encoding used internally' ), 2815type ='string' , 2816varname ='p_enc' , 2817} , 2818{ 2819abbreviation ='eof' , 2820cb ='did_set_eof_eol_fixeol_bomb' , 2821defaults =false , 2822desc =[=[ 2823Indicates that a CTRL-Z character was found at the end of the file 2824when reading it. Normally only happens when 'fileformat' is "dos". 2825When writing a file and this option is off and the 'binary' option 2826is on, or 'fixeol' option is off, no CTRL-Z will be written at the 2827end of the file. 2828See |eol-and-eof| for example settings. 2829]=] , 2830full_name ='endoffile' , 2831no_mkrc =true , 2832redraw ={ 'statuslines' } , 2833scope ={ 'buf' } , 2834short_desc =N_ ( 'write CTRL-Z for last line in file' ), 2835type ='boolean' , 2836varname ='p_eof' , 2837} , 2838{ 2839abbreviation ='eol' , 2840cb ='did_set_eof_eol_fixeol_bomb' , 2841defaults =true , 2842desc =[=[ 2843When writing a file and this option is off and the 'binary' option 2844is on, or 'fixeol' option is off, no <EOL> will be written for the 2845last line in the file. This option is automatically set or reset when 2846starting to edit a new file, depending on whether file has an <EOL> 2847for the last line in the file. Normally you don't have to set or 2848reset this option. 2849When 'binary' is off and 'fixeol' is on the value is not used when 2850writing the file. When 'binary' is on or 'fixeol' is off it is used 2851to remember the presence of a <EOL> for the last line in the file, so 2852that when you write the file the situation from the original file can 2853be kept. But you can change it if you want to. 2854See |eol-and-eof| for example settings. 2855]=] , 2856full_name ='endofline' , 2857no_mkrc =true , 2858redraw ={ 'statuslines' } , 2859scope ={ 'buf' } , 2860short_desc =N_ ( 'write <EOL> for last line in file' ), 2861type ='boolean' , 2862varname ='p_eol' , 2863} , 2864{ 2865abbreviation ='ea' , 2866cb ='did_set_equalalways' , 2867defaults =true , 2868desc =[=[ 2869When on, all the windows are automatically made the same size after 2870splitting or closing a window. This also happens the moment the 2871option is switched on. When off, splitting a window will reduce the 2872size of the current window and leave the other windows the same. When 2873closing a window the extra lines are given to the window next to it 2874(depending on 'splitbelow' and 'splitright'). 2875When mixing vertically and horizontally split windows, a minimal size 2876is computed and some windows may be larger if there is room. The 2877'eadirection' option tells in which direction the size is affected. 2878Changing the height and width of a window can be avoided by setting 2879'winfixheight' and 'winfixwidth', respectively. 2880If a window size is specified when creating a new window sizes are 2881currently not equalized (it's complicated, but may be implemented in 2882the future). 2883]=] , 2884full_name ='equalalways' , 2885scope ={ 'global' } , 2886short_desc =N_ ( 'windows are automatically made the same size' ), 2887type ='boolean' , 2888varname ='p_ea' , 2889} , 2890{ 2891abbreviation ='ep' , 2892defaults ='' , 2893desc =[=[ 2894External program to use for "=" command. When this option is empty 2895the internal formatting functions are used; either 'lisp', 'cindent' 2896or 'indentexpr'. 2897Environment variables are expanded |:set_env|. See |option-backslash| 2898about including spaces and backslashes. 2899]=] , 2900expand =true , 2901full_name ='equalprg' , 2902scope ={ 'global' , 'buf' } , 2903secure =true , 2904short_desc =N_ ( 'external program to use for "=" command' ), 2905type ='string' , 2906varname ='p_ep' , 2907} , 2908{ 2909abbreviation ='eb' , 2910defaults =false , 2911desc =[=[ 2912Ring the bell (beep or screen flash) for error messages. This only 2913makes a difference for error messages, the bell will be used always 2914for a lot of errors without a message (e.g., hitting <Esc> in Normal 2915mode). See 'visualbell' to make the bell behave like a screen flash 2916or do nothing. See 'belloff' to finetune when to ring the bell. 2917]=] , 2918full_name ='errorbells' , 2919scope ={ 'global' } , 2920short_desc =N_ ( 'ring the bell for error messages' ), 2921type ='boolean' , 2922varname ='p_eb' , 2923} , 2924{ 2925abbreviation ='ef' , 2926defaults =macros ( 'DFLT_ERRORFILE' , 'string' ), 2927desc =[=[ 2928Name of the errorfile for the QuickFix mode (see |:cf|). 2929When the "-q" command-line argument is used, 'errorfile' is set to the 2930following argument. See |-q|. 2931NOT used for the ":make" command. See 'makeef' for that. 2932Environment variables are expanded |:set_env|. 2933See |option-backslash| about including spaces and backslashes. 2934]=] , 2935expand =true , 2936full_name ='errorfile' , 2937scope ={ 'global' } , 2938secure =true , 2939short_desc =N_ ( 'name of the errorfile for the QuickFix mode' ), 2940type ='string' , 2941varname ='p_ef' , 2942} , 2943{ 2944abbreviation ='efm' , 2945defaults ={ 2946if_true =macros ( 'DFLT_EFM' , 'string' ), 2947doc ='is very long' , 2948} , 2949deny_duplicates =true , 2950desc =[=[ 2951Scanf-like description of the format for the lines in the error file 2952(see |errorformat|). 2953]=] , 2954full_name ='errorformat' , 2955list ='onecomma' , 2956scope ={ 'global' , 'buf' } , 2957short_desc =N_ ( 'description of the lines in the error file' ), 2958type ='string' , 2959varname ='p_efm' , 2960} , 2961{ 2962abbreviation ='ei' , 2963validation_cb ='validate_eventignore' , 2964defaults ='' , 2965deny_duplicates =true , 2966desc =[=[ 2967A list of autocommand event names, which are to be ignored. 2968When set to "all" or when "all" is one of the items, all autocommand 2969events are ignored, autocommands will not be executed. 2970Otherwise this is a comma-separated list of event names. Example: >vim 2971set ei=WinEnter,WinLeave 2972< 2973To ignore all but some events, a "-" prefix can be used: >vim 2974:set ei=all,-WinLeave 2975< 2976]=] , 2977expand_cb ='expand_set_eventignore' , 2978full_name ='eventignore' , 2979list ='onecomma' , 2980scope ={ 'global' } , 2981short_desc =N_ ( 'autocommand events that are ignored' ), 2982type ='string' , 2983varname ='p_ei' , 2984} , 2985{ 2986abbreviation ='eiw' , 2987validation_cb ='validate_eventignore' , 2988defaults ='' , 2989deny_duplicates =true , 2990desc =[=[ 2991Similar to 'eventignore' but applies to a particular window and its 2992buffers, for which window and buffer related autocommands can be 2993ignored indefinitely without affecting the global 'eventignore'. 2994 2995Note: The following events are considered to happen outside of a 2996window context and thus cannot be ignored by 'eventignorewin': 2997 2998<PLACEHOLDER> 2999]=] , 3000expand_cb ='expand_set_eventignore' , 3001full_name ='eventignorewin' , 3002list ='onecomma' , 3003scope ={ 'win' } , 3004short_desc =N_ ( 'autocommand events that are ignored in a window' ), 3005type ='string' , 3006} , 3007{ 3008abbreviation ='et' , 3009defaults =false , 3010desc =[=[ 3011In Insert mode: Use the appropriate number of spaces to insert a 3012<Tab>. Spaces are used in indents with the '>' and '<' commands and 3013when 'autoindent' is on. To insert a real tab when 'expandtab' is 3014on, use CTRL-V<Tab>. See also |:retab| and |ins-expandtab|. 3015]=] , 3016full_name ='expandtab' , 3017scope ={ 'buf' } , 3018short_desc =N_ ( 'use spaces when <Tab> is inserted' ), 3019type ='boolean' , 3020varname ='p_et' , 3021} , 3022{ 3023abbreviation ='ex' , 3024defaults =false , 3025desc =[=[ 3026Enables project-local configuration. Nvim will execute any .nvim.lua, 3027.nvimrc, or .exrc file found in the |current-directory| and all parent 3028directories (ordered upwards), if the files are in the |trust| list. 3029Use |:trust| to manage trusted files. See also |vim.secure.read()|. 3030 3031Unset 'exrc' to stop further searching of 'exrc' files in parent 3032directories, similar to |editorconfig.root|. 3033 3034To get its own location, a Lua exrc file can use |debug.getinfo()|. 3035See |lua-script-location|. 3036 3037Compare 'exrc' to |editorconfig|: 3038- 'exrc' can execute any code; editorconfig only specifies settings. 3039- 'exrc' is Nvim-specific; editorconfig works in other editors. 3040 3041To achieve project-local LSP configuration: 30421. Enable 'exrc'. 30432. Place LSP configs at ".nvim/lsp/*.lua" in your project root. 30443. Create ".nvim.lua" in your project root directory with this line: >lua 3045vim.cmd[[set runtimepath+=.nvim]] 3046< 3047]=] , 3048full_name ='exrc' , 3049scope ={ 'global' } , 3050secure =true , 3051short_desc =N_ ( 'read project-local configuration in parent directories' ), 3052tags ={ 'project-config' , 'workspace-config' } , 3053type ='boolean' , 3054varname ='p_exrc' , 3055} , 3056{ 3057abbreviation ='fenc' , 3058cb ='did_set_encoding' , 3059defaults ='' , 3060desc =[=[ 3061File-content encoding for the current buffer. Conversion is done with 3062iconv() or as specified with 'charconvert'. 3063 3064When 'fileencoding' is not UTF-8, conversion will be done when 3065writing the file. For reading see below. 3066When 'fileencoding' is empty, the file will be saved with UTF-8 3067encoding (no conversion when reading or writing a file). 3068 3069WARNING: Conversion to a non-Unicode encoding can cause loss of 3070information! 3071 3072See |encoding-names| for the possible values. Additionally, values may be 3073specified that can be handled by the converter, see 3074|mbyte-conversion|. 3075 3076When reading a file 'fileencoding' will be set from 'fileencodings'. 3077To read a file in a certain encoding it won't work by setting 3078'fileencoding', use the |++enc| argument. One exception: when 3079'fileencodings' is empty the value of 'fileencoding' is used. 3080For a new file the global value of 'fileencoding' is used. 3081 3082Prepending "8bit-" and "2byte-" has no meaning here, they are ignored. 3083When the option is set, the value is converted to lowercase. Thus 3084you can set it with uppercase values too. '_' characters are 3085replaced with '-'. If a name is recognized from the list at 3086|encoding-names|, it is replaced by the standard name. For example 3087"ISO8859-2" becomes "iso-8859-2". 3088 3089When this option is set, after starting to edit a file, the 'modified' 3090option is set, because the file would be different when written. 3091 3092Keep in mind that changing 'fenc' from a modeline happens 3093AFTER the text has been read, thus it applies to when the file will be 3094written. If you do set 'fenc' in a modeline, you might want to set 3095'nomodified' to avoid not being able to ":q". 3096 3097This option cannot be changed when 'modifiable' is off. 3098]=] , 3099expand_cb ='expand_set_encoding' , 3100full_name ='fileencoding' , 3101no_mkrc =true , 3102redraw ={ 'statuslines' , 'current_buffer' } , 3103scope ={ 'buf' } , 3104short_desc =N_ ( 'file encoding for multi-byte text' ), 3105tags ={ 'E213' } , 3106type ='string' , 3107varname ='p_fenc' , 3108} , 3109{ 3110abbreviation ='fencs' , 3111defaults ='ucs-bom,utf-8,default,latin1' , 3112deny_duplicates =true , 3113desc =[=[ 3114This is a list of character encodings considered when starting to edit 3115an existing file. When a file is read, Vim tries to use the first 3116mentioned character encoding. If an error is detected, the next one 3117in the list is tried. When an encoding is found that works, 3118'fileencoding' is set to it. If all fail, 'fileencoding' is set to 3119an empty string, which means that UTF-8 is used. 3120WARNING: Conversion can cause loss of information! You can use 3121the |++bad| argument to specify what is done with characters 3122that can't be converted. 3123For an empty file or a file with only ASCII characters most encodings 3124will work and the first entry of 'fileencodings' will be used (except 3125"ucs-bom", which requires the BOM to be present). If you prefer 3126another encoding use an BufReadPost autocommand event to test if your 3127preferred encoding is to be used. Example: >vim 3128au BufReadPost * if search('\S', 'w') == 0 | 3129\ set fenc=iso-2022-jp | endif 3130< This sets 'fileencoding' to "iso-2022-jp" if the file does not contain 3131non-blank characters. 3132When the |++enc| argument is used then the value of 'fileencodings' is 3133not used. 3134Note that 'fileencodings' is not used for a new file, the global value 3135of 'fileencoding' is used instead. You can set it with: >vim 3136setglobal fenc=iso-8859-2 3137< This means that a non-existing file may get a different encoding than 3138an empty file. 3139The special value "ucs-bom" can be used to check for a Unicode BOM 3140(Byte Order Mark) at the start of the file. It must not be preceded 3141by "utf-8" or another Unicode encoding for this to work properly. 3142An entry for an 8-bit encoding (e.g., "latin1") should be the last, 3143because Vim cannot detect an error, thus the encoding is always 3144accepted. 3145The special value "default" can be used for the encoding from the 3146environment. It is useful when your environment uses a non-latin1 3147encoding, such as Russian. 3148When a file contains an illegal UTF-8 byte sequence it won't be 3149recognized as "utf-8". You can use the |8g8| command to find the 3150illegal byte sequence. 3151WRONG VALUES: WHAT'S WRONG: 3152latin1,utf-8 "latin1" will always be used 3153utf-8,ucs-bom,latin1 BOM won't be recognized in a utf-8 3154file 3155cp1250,latin1 "cp1250" will always be used 3156If 'fileencodings' is empty, 'fileencoding' is not modified. 3157See 'fileencoding' for the possible values. 3158Setting this option does not have an effect until the next time a file 3159is read. 3160]=] , 3161expand_cb ='expand_set_encoding' , 3162full_name ='fileencodings' , 3163list ='onecomma' , 3164scope ={ 'global' } , 3165short_desc =N_ ( 'automatically detected character encodings' ), 3166type ='string' , 3167varname ='p_fencs' , 3168} , 3169{ 3170abbreviation ='ff' , 3171cb ='did_set_fileformat' , 3172validation_cb ='validate_fileformat' , 3173defaults ={ 3174condition ='USE_CRNL' , 3175if_true ='dos' , 3176if_false ='unix' , 3177doc ='Windows: "dos", Unix: "unix"' , 3178} , 3179schema ={ 3180enum ={ 'unix' , 'dos' , 'mac' } , 3181} , 3182desc =[=[ 3183This gives the <EOL> of the current buffer, which is used for 3184reading/writing the buffer from/to a file: 3185dos <CR><NL> 3186unix <NL> 3187mac <CR> 3188When "dos" is used, CTRL-Z at the end of a file is ignored. 3189See |file-formats| and |file-read|. 3190For the character encoding of the file see 'fileencoding'. 3191When 'binary' is set, the value of 'fileformat' is ignored, file I/O 3192works like it was set to "unix". 3193This option is set automatically when starting to edit a file and 3194'fileformats' is not empty and 'binary' is off. 3195When this option is set, after starting to edit a file, the 'modified' 3196option is set, because the file would be different when written. 3197This option cannot be changed when 'modifiable' is off. 3198]=] , 3199full_name ='fileformat' , 3200no_mkrc =true , 3201redraw ={ 'curswant' , 'statuslines' } , 3202scope ={ 'buf' } , 3203short_desc =N_ ( 'file format used for file I/O' ), 3204type ='string' , 3205varname ='p_ff' , 3206} , 3207{ 3208abbreviation ='ffs' , 3209validation_cb ='validate_str_generic' , 3210defaults ={ 3211condition ='USE_CRNL' , 3212if_true ='dos,unix' , 3213if_false ='unix,dos' , 3214doc ='Windows: "dos,unix", Unix: "unix,dos"' , 3215} , 3216deny_duplicates =true , 3217desc =[=[ 3218This gives the end-of-line (<EOL>) formats that will be tried when 3219starting to edit a new buffer and when reading a file into an existing 3220buffer: 3221- When empty, the format defined with 'fileformat' will be used 3222always. It is not set automatically. 3223- When set to one name, that format will be used whenever a new buffer 3224is opened. 'fileformat' is set accordingly for that buffer. The 3225'fileformats' name will be used when a file is read into an existing 3226buffer, no matter what 'fileformat' for that buffer is set to. 3227- When more than one name is present, separated by commas, automatic 3228<EOL> detection will be done when reading a file. When starting to 3229edit a file, a check is done for the <EOL>: 32301. If all lines end in <CR><NL>, and 'fileformats' includes "dos", 3231'fileformat' is set to "dos". 32322. If a <NL> is found and 'fileformats' includes "unix", 3233'fileformat' is set to "unix". Note that when a <NL> is found 3234without a preceding <CR>, "unix" is preferred over "dos". 32353. If 'fileformat' has not yet been set, and if a <CR> is found, and 3236if 'fileformats' includes "mac", 'fileformat' is set to "mac". 3237This means that "mac" is only chosen when: 3238"unix" is not present or no <NL> is found in the file, and 3239"dos" is not present or no <CR><NL> is found in the file. 3240Except: if "unix" was chosen, but there is a <CR> before 3241the first <NL>, and there appear to be more <CR>s than <NL>s in 3242the first few lines, "mac" is used. 32434. If 'fileformat' is still not set, the first name from 3244'fileformats' is used. 3245When reading a file into an existing buffer, the same is done, but 3246this happens like 'fileformat' has been set appropriately for that 3247file only, the option is not changed. 3248When 'binary' is set, the value of 'fileformats' is not used. 3249 3250When Vim starts up with an empty buffer the first item is used. You 3251can overrule this by setting 'fileformat' in your .vimrc. 3252 3253For systems with a Dos-like <EOL> (<CR><NL>), when reading files that 3254are ":source"ed and for vimrc files, automatic <EOL> detection may be 3255done: 3256- When 'fileformats' is empty, there is no automatic detection. Dos 3257format will be used. 3258- When 'fileformats' is set to one or more names, automatic detection 3259is done. This is based on the first <NL> in the file: If there is a 3260<CR> in front of it, Dos format is used, otherwise Unix format is 3261used. 3262Also see |file-formats|. 3263]=] , 3264expand_cb ='expand_set_str_generic' , 3265full_name ='fileformats' , 3266list ='onecomma' , 3267scope ={ 'global' } , 3268short_desc =N_ ( "automatically detected values for 'fileformat'" ), 3269type ='string' , 3270varname ='p_ffs' , 3271} , 3272{ 3273abbreviation ='fic' , 3274defaults ={ 3275condition ='CASE_INSENSITIVE_FILENAME' , 3276if_false =false , 3277if_true =true , 3278doc =[[on for systems where case in file 3279names is normally ignored]] , 3280} , 3281desc =[=[ 3282When set, case is ignored when using file and directory names. 3283 3284This option is on by default on systems where the filesystem is 3285traditionally case-insensitive (for example MS-Windows and macOS). 3286However, Vim cannot determine at runtime whether a particular 3287filesystem is case-sensitive or case-insensitive. 3288 3289See 'wildignorecase' for only ignoring case when doing completion. 3290]=] , 3291full_name ='fileignorecase' , 3292scope ={ 'global' } , 3293short_desc =N_ ( 'ignore case when using file names' ), 3294type ='boolean' , 3295varname ='p_fic' , 3296} , 3297{ 3298abbreviation ='ft' , 3299cb ='did_set_filetype_or_syntax' , 3300validation_cb ='validate_filetype' , 3301defaults ='' , 3302desc =[=[ 3303When this option is set, the FileType autocommand event is triggered. 3304All autocommands that match with the value of this option will be 3305executed. Thus the value of 'filetype' is used in place of the file 3306name. 3307Otherwise this option does not always reflect the current file type. 3308This option is normally set when the file type is detected. To enable 3309this use the ":filetype on" command. |:filetype| 3310Setting this option to a different value is most useful in a modeline, 3311for a file for which the file type is not automatically recognized. 3312Example, for in an IDL file: >c 3313/* vim: set filetype=idl : */ 3314< |FileType| |filetypes| 3315When a dot appears in the value then this separates two filetype 3316names, it should therefore not be used for a filetype. Example: >c 3317/* vim: set filetype=c.doxygen : */ 3318< This will use the "c" filetype first, then the "doxygen" filetype. 3319This works both for filetype plugins and for syntax files. More than 3320one dot may appear. 3321This option is not copied to another buffer, independent of the 's' or 3322'S' flag in 'cpoptions'. 3323Only alphanumeric characters, '-' and '_' can be used (and a '.' is 3324allowed as delimiter when combining different filetypes). 3325]=] , 3326full_name ='filetype' , 3327noglob =true , 3328normal_fname_chars =true , 3329scope ={ 'buf' } , 3330short_desc =N_ ( 'type of file, used for autocommands' ), 3331type ='string' , 3332varname ='p_ft' , 3333} , 3334{ 3335abbreviation ='fcs' , 3336cb ='did_set_chars_option' , 3337validation_cb ='validate_chars_option' , 3338defaults ='' , 3339deny_duplicates =true , 3340-- 'fillchars' schema: generates `fcs_tab` (the `fcs_chars` dispatch table). 3341schema ={ 3342chars ={ 3343{ 'stl' , 'char' , { def =' ' } } , 3344{ 'stlnc' , 'char' , { def =' ' } } , 3345{ 'wbr' , 'char' , { def =' ' } } , 3346{ 'horiz' , 'char' , { def ='─' , fallback ='-' } } , 3347{ 'horizup' , 'char' , { def ='┴' , fallback ='-' } } , 3348{ 'horizdown' , 'char' , { def ='┬' , fallback ='-' } } , 3349{ 'vert' , 'char' , { def ='│' , fallback ='|' } } , 3350{ 'vertleft' , 'char' , { def ='┤' , fallback ='|' } } , 3351{ 'vertright' , 'char' , { def ='├' , fallback ='|' } } , 3352{ 'verthoriz' , 'char' , { def ='┼' , fallback ='+' } } , 3353{ 'fold' , 'char' , { def ='·' , fallback ='-' } } , 3354{ 'foldopen' , 'char' , { def ='-' } } , 3355{ 'foldclose' , 'char' , { field ='foldclosed' , def ='+' } } , 3356{ 'foldsep' , 'char' , { def ='│' , fallback ='|' } } , 3357{ 'foldinner' , 'char' } , 3358{ 'diff' , 'char' , { def ='-' } } , 3359{ 'msgsep' , 'char' , { def =' ' } } , 3360{ 'eob' , 'char' , { def ='~' } } , 3361{ 'lastline' , 'char' , { def ='@' } } , 3362{ 'trunc' , 'char' , { def ='>' } } , 3363{ 'truncrl' , 'char' , { def ='<' } } , 3364} , 3365} , 3366desc =[=[ 3367Characters to fill the statuslines, vertical separators, special 3368lines in the window and truncated text in the |ins-completion-menu|. 3369It is a comma-separated list of items. Each item has a name, a colon 3370and the value of that item: |E1511| 3371 3372item default Used for ~ 3373stl ' ' statusline of the current window 3374stlnc ' ' statusline of the non-current windows 3375wbr ' ' window bar 3376horiz '─' or '-' horizontal separators |:split| 3377horizup '┴' or '-' upwards facing horizontal separator 3378horizdown '┬' or '-' downwards facing horizontal separator 3379vert '│' or '|' vertical separators |:vsplit| 3380vertleft '┤' or '|' left facing vertical separator 3381vertright '├' or '|' right facing vertical separator 3382verthoriz '┼' or '+' overlapping vertical and horizontal 3383separator 3384fold '·' or '-' filling 'foldtext' 3385foldopen '-' mark the beginning of a fold 3386foldclose '+' show a closed fold 3387foldsep '│' or '|' open fold middle marker 3388foldinner none character to show instead of the 3389numeric foldlevel when it would be 3390repeated in a narrow 'foldcolumn' 3391diff '-' deleted lines of the 'diff' option 3392msgsep ' ' message separator 'display' 3393eob '~' empty lines at the end of a buffer 3394lastline '@' 'display' contains lastline/truncate 3395trunc '>' truncated text in the 3396|ins-completion-menu|. 3397truncrl '<' same as "trunc" in 'rightleft' mode 3398 3399Any one that is omitted will fall back to the default. 3400 3401Note that "horiz", "horizup", "horizdown", "vertleft", "vertright" and 3402"verthoriz" are only used when 'laststatus' is 3, since only vertical 3403window separators are used otherwise. 3404 3405If 'ambiwidth' is "double" then "horiz", "horizup", "horizdown", 3406"vert", "vertleft", "vertright", "verthoriz", "foldsep" and "fold" 3407default to single-byte alternatives. 3408 3409Example: >vim 3410set fillchars=stl:\ ,stlnc:\ ,vert:│,fold:·,diff:- 3411< 3412All items support single-byte and multibyte characters. But 3413double-width characters are not supported. |E1512| 3414 3415The highlighting used for these items: 3416item highlight group ~ 3417stl StatusLine |hl-StatusLine| 3418stlnc StatusLineNC |hl-StatusLineNC| 3419wbr WinBar |hl-WinBar| or |hl-WinBarNC| 3420horiz WinSeparator |hl-WinSeparator| 3421horizup WinSeparator |hl-WinSeparator| 3422horizdown WinSeparator |hl-WinSeparator| 3423vert WinSeparator |hl-WinSeparator| 3424vertleft WinSeparator |hl-WinSeparator| 3425vertright WinSeparator |hl-WinSeparator| 3426verthoriz WinSeparator |hl-WinSeparator| 3427fold Folded |hl-Folded| 3428foldopen FoldColumn |hl-FoldColumn| 3429foldclose FoldColumn |hl-FoldColumn| 3430foldsep FoldColumn |hl-FoldColumn| 3431diff DiffDelete |hl-DiffDelete| 3432msgsep MsgSeparator |hl-MsgSeparator| 3433eob EndOfBuffer |hl-EndOfBuffer| 3434lastline NonText |hl-NonText| 3435trunc one of the many Popup menu highlighting groups like 3436|hl-PmenuSel| 3437truncrl same as "trunc" 3438]=] , 3439expand_cb ='expand_set_chars_option' , 3440full_name ='fillchars' , 3441list ='onecommacolon' , 3442redraw ={ 'current_window' } , 3443scope ={ 'global' , 'win' } , 3444short_desc =N_ ( 'characters to use for displaying special items' ), 3445type ='string' , 3446varname ='p_fcs' , 3447} , 3448{ 3449abbreviation ='ffu' , 3450defaults ='' , 3451desc =[=[ 3452Function that is called to obtain the filename(s) for the |:find| 3453command. When this option is empty, the internal |file-searching| 3454mechanism is used. 3455 3456The value can be the name of a function, a |lambda| or a |Funcref|. 3457See |option-value-function| for more information. 3458 3459The function is called with two arguments. The first argument is a 3460|String| and is the |:find| command argument. The second argument is 3461a |Boolean| and is set to |v:true| when the function is called to get 3462a List of command-line completion matches for the |:find| command. 3463The function should return a List, which is handled similarly to the 3464return value of a |:command-completion-customlist| function. 3465 3466The function can process all the directories specified in 'path'. 3467 3468If a match is found, the function should return a |List| containing 3469one or more file names. If a match is not found, the function 3470should return an empty List. 3471 3472If any errors are encountered during the function invocation, an 3473empty List is used as the return value. 3474 3475It is not allowed to change text or jump to another window while 3476executing the 'findfunc' |textlock|. 3477 3478 3479Examples: 3480>lua 3481-- Use vim.fn.glob() 3482vim.o.findfunc = function(cmdarg, cmdcomplete) 3483local pat = cmdcomplete and (cmdarg .. '*') or cmdarg 3484return vim.fn.glob(pat, false, true) 3485end 3486 3487-- Use the "git ls-files" output 3488vim.o.findfunc = function(cmdarg, cmdcomplete) 3489local fnames = vim.fn.systemlist('git ls-files') 3490return vim.tbl_filter(function(v) 3491return v:lower():find(cmdarg:lower(), 1, true) ~= nil 3492end, fnames) 3493end 3494< 3495]=] , 3496full_name ='findfunc' , 3497scope ={ 'global' , 'buf' } , 3498secure =true , 3499short_desc =N_ ( 'function called for :find' ), 3500tags ={ 'E1514' } , 3501type ='func' , 3502varname ='p_ffu' , 3503} , 3504{ 3505abbreviation ='fixeol' , 3506cb ='did_set_eof_eol_fixeol_bomb' , 3507defaults =true , 3508desc =[=[ 3509When writing a file and this option is on, <EOL> at the end of file 3510will be restored if missing. Turn this option off if you want to 3511preserve the situation from the original file. 3512When the 'binary' option is set the value of this option doesn't 3513matter. 3514See the 'endofline' option. 3515See |eol-and-eof| for example settings. 3516]=] , 3517full_name ='fixendofline' , 3518redraw ={ 'statuslines' } , 3519scope ={ 'buf' } , 3520short_desc =N_ ( 'make sure last line in file has <EOL>' ), 3521type ='boolean' , 3522varname ='p_fixeol' , 3523} , 3524{ 3525abbreviation ='fcl' , 3526validation_cb ='validate_str_generic' , 3527defaults ='' , 3528schema ={ 3529set ={ 'all' } , 3530} , 3531deny_duplicates =true , 3532desc =[=[ 3533When set to "all", a fold is closed when the cursor isn't in it and 3534its level is higher than 'foldlevel'. Useful if you want folds to 3535automatically close when moving out of them. 3536]=] , 3537full_name ='foldclose' , 3538list ='onecomma' , 3539redraw ={ 'current_window' } , 3540scope ={ 'global' } , 3541short_desc =N_ ( 'close a fold when the cursor leaves it' ), 3542type ='string' , 3543varname ='p_fcl' , 3544} , 3545{ 3546abbreviation ='fdc' , 3547validation_cb ='validate_str_generic' , 3548defaults ='0' , 3549schema ={ 3550enum ={ 3551'auto' , 3552'auto:1' , 3553'auto:2' , 3554'auto:3' , 3555'auto:4' , 3556'auto:5' , 3557'auto:6' , 3558'auto:7' , 3559'auto:8' , 3560'auto:9' , 3561'0' , 3562'1' , 3563'2' , 3564'3' , 3565'4' , 3566'5' , 3567'6' , 3568'7' , 3569'8' , 3570'9' , 3571} , 3572} , 3573desc =[=[ 3574When and how to draw the foldcolumn. Valid values are: 3575"auto": resize to the minimum amount of folds to display. 3576"auto:[1-9]": resize to accommodate multiple folds up to the 3577selected level 3578"0": to disable foldcolumn 3579"[1-9]": to display a fixed number of columns 3580See |folding|. 3581]=] , 3582full_name ='foldcolumn' , 3583redraw ={ 'current_window' } , 3584scope ={ 'win' } , 3585short_desc =N_ ( 'width of the column used to indicate folds' ), 3586type ='string' , 3587} , 3588{ 3589abbreviation ='fen' , 3590cb ='did_set_foldenable' , 3591defaults =true , 3592desc =[=[ 3593When off, all folds are open. This option can be used to quickly 3594switch between showing all text unfolded and viewing the text with 3595folds (including manually opened or closed folds). It can be toggled 3596with the |zi| command. The 'foldcolumn' will remain blank when 3597'foldenable' is off. 3598This option is set by commands that create a new fold or close a fold. 3599See |folding|. 3600]=] , 3601full_name ='foldenable' , 3602redraw ={ 'current_window' } , 3603scope ={ 'win' } , 3604short_desc =N_ ( 'set to display all folds open' ), 3605type ='boolean' , 3606} , 3607{ 3608abbreviation ='fde' , 3609cb ='did_set_foldexpr' , 3610defaults ='0' , 3611desc =[=[ 3612The expression used for when 'foldmethod' is "expr". It is evaluated 3613for each line to obtain its fold level. The context is set to the 3614script where 'foldexpr' was set, script-local items can be accessed. 3615See |fold-expr| for the usage. 3616 3617The expression will be evaluated in the |sandbox| if set from a 3618modeline, see |sandbox-option|. 3619This option can't be set from a |modeline| when the 'diff' option is 3620on or the 'modelineexpr' option is off. 3621 3622It is not allowed to change text or jump to another window while 3623evaluating 'foldexpr' |textlock|. 3624]=] , 3625full_name ='foldexpr' , 3626modelineexpr =true , 3627redraw ={ 'current_window' } , 3628scope ={ 'win' } , 3629short_desc =N_ ( 'expression used when \'foldmethod\' is "expr"' ), 3630type ='expr' , 3631} , 3632{ 3633abbreviation ='fdi' , 3634cb ='did_set_foldignore' , 3635defaults ='#' , 3636desc =[=[ 3637Used only when 'foldmethod' is "indent". Lines starting with 3638characters in 'foldignore' will get their fold level from surrounding 3639lines. White space is skipped before checking for this character. 3640The default "#" works well for C programs. See |fold-indent|. 3641]=] , 3642full_name ='foldignore' , 3643redraw ={ 'current_window' } , 3644scope ={ 'win' } , 3645short_desc =N_ ( 'ignore lines when \'foldmethod\' is "indent"' ), 3646type ='string' , 3647} , 3648{ 3649abbreviation ='fdl' , 3650cb ='did_set_foldlevel' , 3651defaults =0 , 3652desc =[=[ 3653Sets the fold level: Folds with a higher level will be closed. 3654Setting this option to zero will close all folds. Higher numbers will 3655close fewer folds. 3656This option is set by commands like |zm|, |zM| and |zR|. 3657See |fold-foldlevel|. 3658]=] , 3659full_name ='foldlevel' , 3660redraw ={ 'current_window' } , 3661scope ={ 'win' } , 3662short_desc =N_ ( 'close folds with a level higher than this' ), 3663type ='number' , 3664} , 3665{ 3666abbreviation ='fdls' , 3667defaults =- 1 , 3668desc =[=[ 3669Sets 'foldlevel' when starting to edit another buffer in a window. 3670Useful to always start editing with all folds closed (value zero), 3671some folds closed (one) or no folds closed (99). 3672This is done before reading any modeline, thus a setting in a modeline 3673overrules this option. Starting to edit a file for |diff-mode| also 3674ignores this option and closes all folds. 3675It is also done before BufReadPre autocommands, to allow an autocmd to 3676overrule the 'foldlevel' value for specific files. 3677When the value is negative, it is not used. 3678]=] , 3679full_name ='foldlevelstart' , 3680redraw ={ 'curswant' } , 3681scope ={ 'global' } , 3682short_desc =N_ ( "'foldlevel' when starting to edit a file" ), 3683type ='number' , 3684varname ='p_fdls' , 3685} , 3686{ 3687abbreviation ='fmr' , 3688cb ='did_set_foldmarker' , 3689validation_cb ='validate_foldmarker' , 3690defaults ='{{{,}}}' , 3691deny_duplicates =true , 3692desc =[=[ 3693The start and end marker used when 'foldmethod' is "marker". There 3694must be one comma, which separates the start and end marker. The 3695marker is a literal string (a regular expression would be too slow). 3696See |fold-marker|. 3697]=] , 3698full_name ='foldmarker' , 3699list ='onecomma' , 3700redraw ={ 'current_window' } , 3701scope ={ 'win' } , 3702short_desc =N_ ( 'markers used when \'foldmethod\' is "marker"' ), 3703tags ={ 'E536' } , 3704type ='string' , 3705} , 3706{ 3707abbreviation ='fdm' , 3708cb ='did_set_foldmethod' , 3709validation_cb ='validate_str_generic' , 3710defaults ='manual' , 3711schema ={ 3712enum ={ 'manual' , 'expr' , 'marker' , 'indent' , 'syntax' , 'diff' } , 3713} , 3714desc =[=[ 3715The kind of folding used for the current window. Possible values: 3716|fold-manual| manual Folds are created manually. 3717|fold-indent| indent Lines with equal indent form a fold. 3718|fold-expr| expr 'foldexpr' gives the fold level of a line. 3719|fold-marker| marker Markers are used to specify folds. 3720|fold-syntax| syntax Syntax highlighting items specify folds. 3721|fold-diff| diff Fold text that is not changed. 3722]=] , 3723full_name ='foldmethod' , 3724redraw ={ 'current_window' } , 3725scope ={ 'win' } , 3726short_desc =N_ ( 'folding type' ), 3727type ='string' , 3728} , 3729{ 3730abbreviation ='fml' , 3731cb ='did_set_foldminlines' , 3732defaults =1 , 3733desc =[=[ 3734Sets the number of screen lines above which a fold can be displayed 3735closed. Also for manually closed folds. With the default value of 3736one a fold can only be closed if it takes up two or more screen lines. 3737Set to zero to be able to close folds of just one screen line. 3738Note that this only has an effect on what is displayed. After using 3739"zc" to close a fold, which is displayed open because it's smaller 3740than 'foldminlines', a following "zc" may close a containing fold. 3741]=] , 3742full_name ='foldminlines' , 3743redraw ={ 'current_window' } , 3744scope ={ 'win' } , 3745short_desc =N_ ( 'minimum number of lines for a fold to be closed' ), 3746type ='number' , 3747} , 3748{ 3749abbreviation ='fdn' , 3750cb ='did_set_foldnestmax' , 3751defaults =20 , 3752desc =[=[ 3753Sets the maximum nesting of folds for the "indent" and "syntax" 3754methods. This avoids that too many folds will be created. Using more 3755than 20 doesn't work, because the internal limit is 20. 3756]=] , 3757full_name ='foldnestmax' , 3758redraw ={ 'current_window' } , 3759scope ={ 'win' } , 3760short_desc =N_ ( 'maximum fold depth' ), 3761type ='number' , 3762} , 3763{ 3764abbreviation ='fdo' , 3765validation_cb ='validate_str_generic' , 3766defaults ='block,hor,mark,percent,quickfix,search,tag,undo' , 3767schema ={ 3768flags ={ 3769'all' , 3770'block' , 3771'hor' , 3772'mark' , 3773'percent' , 3774'quickfix' , 3775'search' , 3776'tag' , 3777'insert' , 3778'undo' , 3779'jump' , 3780} , 3781} , 3782deny_duplicates =true , 3783desc =[=[ 3784Specifies for which type of commands folds will be opened, if the 3785command moves the cursor into a closed fold. It is a comma-separated 3786list of items. 3787NOTE: When the command is part of a mapping this option is not used. 3788Add the |zv| command to the mapping to get the same effect. 3789(rationale: the mapping may want to control opening folds itself) 3790 3791item commands ~ 3792all any 3793block (, {, [[, [{, etc. 3794hor horizontal movements: "l", "w", "fx", etc. 3795insert any command in Insert mode 3796jump far jumps: "G", "gg", etc. 3797mark jumping to a mark: "'m", CTRL-O, etc. 3798percent "%" 3799quickfix ":cn", ":crew", ":make", etc. 3800search search for a pattern: "/", "n", "*", "gd", etc. 3801(not for a search pattern in a ":" command) 3802Also for |[s| and |]s|. 3803tag jumping to a tag: ":ta", CTRL-T, etc. 3804undo undo or redo: "u" and CTRL-R 3805When a movement command is used for an operator (e.g., "dl" or "y%") 3806this option is not used. This means the operator will include the 3807whole closed fold. 3808Note that vertical movements are not here, because it would make it 3809very difficult to move onto a closed fold. 3810In insert mode the folds containing the cursor will always be open 3811when text is inserted. 3812To close folds you can re-apply 'foldlevel' with the |zx| command or 3813set the 'foldclose' option to "all". 3814]=] , 3815full_name ='foldopen' , 3816list ='onecomma' , 3817redraw ={ 'curswant' } , 3818scope ={ 'global' } , 3819short_desc =N_ ( 'for which commands a fold will be opened' ), 3820type ='string' , 3821varname ='p_fdo' , 3822flags_varname ='fdo_flags' , 3823} , 3824{ 3825abbreviation ='fdt' , 3826defaults ='foldtext()' , 3827desc =[=[ 3828An expression which is used to specify the text displayed for a closed 3829fold. The context is set to the script where 'foldexpr' was set, 3830script-local items can be accessed. See |fold-foldtext| for the 3831usage. 3832 3833The expression will be evaluated in the |sandbox| if set from a 3834modeline, see |sandbox-option|. 3835This option cannot be set in a modeline when 'modelineexpr' is off. 3836 3837It is not allowed to change text or jump to another window while 3838evaluating 'foldtext' |textlock|. 3839 3840When set to an empty string, foldtext is disabled, and the line 3841is displayed normally with highlighting and no line wrapping. 3842]=] , 3843full_name ='foldtext' , 3844modelineexpr =true , 3845redraw ={ 'current_window' } , 3846scope ={ 'win' } , 3847short_desc =N_ ( 'expression used to display for a closed fold' ), 3848type ='expr' , 3849} , 3850{ 3851cb ='did_set_follow' , 3852defaults =false , 3853desc =[=[ 3854Enables |multicursor| follow-mode: cursor-relative motions performed 3855by the primary cursor, cascade to all cursors |mcursor|. Toggled by 3856|q=| (buffer-local). 3857]=] , 3858full_name ='follow' , 3859scope ={ 'buf' } , 3860short_desc =N_ ( 'multicursor: motions cascade to all cursors' ), 3861type ='boolean' , 3862varname ='p_follow' , 3863} , 3864{ 3865abbreviation ='fex' , 3866defaults ='' , 3867desc =[=[ 3868Expression which is evaluated to format a range of lines for the |gq| 3869operator or automatic formatting (see 'formatoptions'). When this 3870option is empty 'formatprg' is used. 3871 3872The |v:lnum| variable holds the first line to be formatted. 3873The |v:count| variable holds the number of lines to be formatted. 3874The |v:char| variable holds the character that is going to be 3875inserted if the expression is being evaluated due to 3876automatic formatting. This can be empty. Don't insert 3877it yet! 3878 3879Example: >vim 3880set formatexpr=mylang#Format() 3881< This will invoke the mylang#Format() function in the 3882autoload/mylang.vim file in 'runtimepath'. |autoload| 3883 3884The advantage of using a function call without arguments is that it is 3885faster, see |expr-option-function|. 3886 3887The expression is also evaluated when 'textwidth' is set and adding 3888text beyond that limit. This happens under the same conditions as 3889when internal formatting is used. Make sure the cursor is kept in the 3890same spot relative to the text then! The |mode()| function will 3891return "i" or "R" in this situation. 3892 3893When the expression evaluates to non-zero Vim will fall back to using 3894the internal format mechanism. 3895 3896If the expression starts with s: or |<SID>|, then it is replaced with 3897the script ID (|local-function|). Example: >vim 3898set formatexpr=s:MyFormatExpr() 3899set formatexpr=<SID>SomeFormatExpr() 3900< Otherwise, the expression is evaluated in the context of the script 3901where the option was set, thus script-local items are available. 3902 3903The expression will be evaluated in the |sandbox| when set from a 3904modeline, see |sandbox-option|. That stops the option from working, 3905since changing the buffer text is not allowed. 3906This option cannot be set in a modeline when 'modelineexpr' is off. 3907]=] , 3908full_name ='formatexpr' , 3909modelineexpr =true , 3910scope ={ 'buf' } , 3911short_desc =N_ ( 'expression used with "gq" command' ), 3912type ='expr' , 3913varname ='p_fex' , 3914} , 3915{ 3916abbreviation ='flp' , 3917defaults ='^\\s*\\d\\+[\\]:.)}\\t ]\\s*' , 3918desc =[=[ 3919A pattern that is used to recognize a list header. This is used for 3920the "n" flag in 'formatoptions'. 3921The pattern must match exactly the text that will be the indent for 3922the line below it. You can use |/\ze| to mark the end of the match 3923while still checking more characters. There must be a character 3924following the pattern, when it matches the whole line it is handled 3925like there is no match. 3926The default recognizes a number, followed by an optional punctuation 3927character and white space. 3928]=] , 3929full_name ='formatlistpat' , 3930scope ={ 'buf' } , 3931short_desc =N_ ( 'pattern used to recognize a list header' ), 3932type ='string' , 3933varname ='p_flp' , 3934} , 3935{ 3936abbreviation ='fo' , 3937validation_cb ='validate_formatoptions' , 3938defaults =macros ( 'DFLT_FO_VIM' , 'string' ), 3939desc =[=[ 3940This is a sequence of letters which describes how automatic 3941formatting is to be done. 3942See |fo-table| for possible values and |gq| for how to format text. 3943Commas can be inserted for readability. 3944To avoid problems with flags that are added in the future, use the 3945"+=" and "-=" feature of ":set" |add-option-flags|. 3946]=] , 3947expand_cb ='expand_set_formatoptions' , 3948-- Generates kFo* flag constants (used by has_format_option()). Keep the concatenated set in 3949-- sync with FO_ALL in option_vars.h. 3950schema ={ 3951flagchars ={ 3952wrap ='t' , 3953wrap_coms ='c' , 3954ret_coms ='r' , 3955open_coms ='o' , 3956no_open_coms ='/' , 3957q_coms ='q' , 3958q_number ='n' , 3959q_second ='2' , 3960ins_vi ='v' , 3961ins_long ='l' , 3962ins_blank ='b' , 3963mbyte_break ='m' , -- break before/after multi-byte char 3964mbyte_join ='M' , -- no space before/after multi-byte char 3965mbyte_join2 ='B' , -- no space between multi-byte chars 3966one_letter ='1' , 3967white_par ='w' , -- trailing white space continues paragr. 3968auto ='a' , -- automatic formatting 3969rigorous_tw =']' , -- respect textwidth rigorously 3970remove_coms ='j' , -- remove comment leaders when joining lines 3971period_abbr ='p' , -- don't break a single space after a period 3972} , 3973} , 3974full_name ='formatoptions' , 3975list ='flags' , 3976scope ={ 'buf' } , 3977short_desc =N_ ( 'how automatic formatting is to be done' ), 3978type ='string' , 3979varname ='p_fo' , 3980} , 3981{ 3982abbreviation ='fp' , 3983defaults ='' , 3984desc =[=[ 3985External program used to format lines with |gq|. Ignored if 3986'formatexpr' is set. 3987 3988If empty, the internal |C-indenting| function will be used. 3989 3990The program must take input on stdin and produce output on stdout. The 3991Unix program "fmt" is such a program. Environment variables are 3992expanded |:set_env|. See |option-backslash| about including spaces 3993and backslashes. 3994]=] , 3995expand =true , 3996full_name ='formatprg' , 3997scope ={ 'global' , 'buf' } , 3998secure =true , 3999short_desc =N_ ( 'name of external program used with "gq" command' ), 4000type ='string' , 4001varname ='p_fp' , 4002} , 4003{ 4004abbreviation ='fs' , 4005defaults =true , 4006desc =[=[ 4007When on, the OS function fsync() will be called after saving a file 4008(|:write|, |writefile()|, …), |swap-file|, |undo-persistence| and |shada-file|. 4009This flushes the file to disk, ensuring that it is safely written. 4010Slow on some systems: writing buffers, quitting Nvim, and other 4011operations may sometimes take a few seconds. 4012 4013Files are ALWAYS flushed ('fsync' is ignored) when: 4014- |CursorHold| event is triggered 4015- |:preserve| is called 4016- system signals low battery life 4017- Nvim exits abnormally 4018 4019This is a |global-local| option, so it can be set per buffer, for 4020example when writing to a slow filesystem. 4021]=] , 4022full_name ='fsync' , 4023scope ={ 'global' , 'buf' } , 4024secure =true , 4025short_desc =N_ ( 'whether to invoke fsync() after file write' ), 4026type ='boolean' , 4027varname ='p_fs' , 4028} , 4029{ 4030abbreviation ='gd' , 4031defaults =false , 4032full_name ='gdefault' , 4033scope ={ 'global' } , 4034short_desc =N_ ( 'Deprecated' ), 4035type ='boolean' , 4036varname ='p_gd' , 4037} , 4038{ 4039abbreviation ='gfm' , 4040defaults =macros ( 'DFLT_GREPFORMAT' , 'string' ), 4041deny_duplicates =true , 4042desc =[=[ 4043Format to recognize for the ":grep" command output. 4044This is a scanf-like string that uses the same format as the 4045'errorformat' option: see |errorformat|. 4046 4047Defaults to "%f:%l:%c:%m" if ripgrep ('grepprg') is available. 4048]=] , 4049full_name ='grepformat' , 4050list ='onecomma' , 4051scope ={ 'global' , 'buf' } , 4052short_desc =N_ ( "format of 'grepprg' output" ), 4053type ='string' , 4054varname ='p_gefm' , 4055} , 4056{ 4057abbreviation ='gp' , 4058defaults ={ 4059condition ='MSWIN' , 4060if_false ='grep -HIn $* /dev/null' , 4061if_true ='findstr /n $* nul' , 4062doc =[[see below]] , 4063} , 4064desc =[=[ 4065Program to use for the |:grep| command. 4066Note: if you change this then you must also update 'grepformat'. 4067 4068May contain "%" and "#" characters, are expanded per |cmdline-special|. 4069The placeholder "$*" specifies where the arguments will be included. 4070Environment variables are expanded |:set_env|. See |option-backslash| 4071about including spaces and backslashes. 4072 4073Special value: When 'grepprg' is set to "internal" the |:grep| command 4074works like |:vimgrep|, |:lgrep| like |:lvimgrep|, |:grepadd| like 4075|:vimgrepadd| and |:lgrepadd| like |:lvimgrepadd|. 4076 4077See also |:make_makeprg|, most of the comments there apply to 'grepprg'. 4078 4079Defaults to: 4080- "rg --vimgrep -uu " if ripgrep is available (|:checkhealth|), 4081- "grep -HIn $* /dev/null" on Unix, 4082- "findstr /n $* nul" on Windows. 4083 4084Ripgrep may perform additional filtering such as using .gitignore rules 4085and skipping hidden files. This is disabled by default (via "-u") to 4086more closely match the behaviour of standard grep. 4087You can make ripgrep match Vim's case handling using the 4088-i/--ignore-case and -S/--smart-case options. Handle |OptionSet| to 4089dynamically update 'grepprg' when e.g. 'ignorecase' is changed. 4090]=] , 4091expand =true , 4092full_name ='grepprg' , 4093scope ={ 'global' , 'buf' } , 4094secure =true , 4095short_desc =N_ ( 'program to use for ":grep"' ), 4096type ='string' , 4097varname ='p_gp' , 4098} , 4099{ 4100abbreviation ='gcr' , 4101cb ='did_set_guicursor' , 4102defaults ='n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20,t:block-blinkon500-blinkoff500-TermCursor' , 4103deny_duplicates =true , 4104desc =[=[ 4105Configures the cursor style for each mode. Works in the GUI and many 4106terminals. See |tui-cursor-shape|. 4107 4108To disable cursor-styling, reset the option: >vim 4109set guicursor= 4110 4111< To enable mode shapes, "Cursor" highlight, and blinking: >vim 4112set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50 4113\,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor 4114\,sm:block-blinkwait175-blinkoff150-blinkon175 4115 4116< The option is a comma-separated list of parts. Each part consists of a 4117mode-list and an argument-list: 4118mode-list:argument-list,mode-list:argument-list,.. 4119The mode-list is a dash separated list of these modes: 4120n Normal mode 4121v Visual mode 4122ve Visual mode with 'selection' "exclusive" (same as 'v', 4123if not specified) 4124o Operator-pending mode 4125i Insert mode 4126r Replace mode 4127c Command-line Normal (append) mode 4128ci Command-line Insert mode 4129cr Command-line Replace mode 4130sm showmatch in Insert mode 4131t Terminal mode 4132a all modes 4133The argument-list is a dash separated list of these arguments: 4134hor{N} horizontal bar, {N} percent of the character height 4135ver{N} vertical bar, {N} percent of the character width 4136block block cursor, fills the whole character 4137- Only one of the above three should be present. 4138- Default is "block" for each mode. 4139blinkwait{N} *cursor-blinking* 4140blinkon{N} 4141blinkoff{N} 4142blink times for cursor: blinkwait is the delay before 4143the cursor starts blinking, blinkon is the time that 4144the cursor is shown and blinkoff is the time that the 4145cursor is not shown. Times are in msec. When one of 4146the numbers is zero, there is no blinking. E.g.: >vim 4147set guicursor=n:blinkon0 4148< 4149Default is "blinkon0" for each mode. 4150{group-name} 4151Highlight group that decides the color and font of the 4152cursor. 4153In the |TUI|: 4154- |inverse|/reverse and no group-name are interpreted 4155as "host-terminal default cursor colors" which 4156typically means "inverted bg and fg colors". 4157- |ctermfg| and |guifg| are ignored. 4158{group-name}/{group-name} 4159Two highlight group names, the first is used when 4160no language mappings are used, the other when they 4161are. |language-mapping| 4162 4163Examples of parts: 4164n-c-v:block-nCursor In Normal, Command-line and Visual mode, use a 4165block cursor with colors from the "nCursor" 4166highlight group 4167n-v-c-sm:block,i-ci-ve:ver25-Cursor,r-cr-o:hor20 4168In Normal et al. modes, use a block cursor 4169with the default colors defined by the host 4170terminal. In Insert-like modes, use 4171a vertical bar cursor with colors from 4172"Cursor" highlight group. In Replace-like 4173modes, use an underline cursor with 4174default colors. 4175i-ci:ver30-iCursor-blinkwait300-blinkon200-blinkoff150 4176In Insert and Command-line Insert mode, use a 417730% vertical bar cursor with colors from the 4178"iCursor" highlight group. Blink a bit 4179faster. 4180 4181The 'a' mode is different. It will set the given argument-list for 4182all modes. It does not reset anything to defaults. This can be used 4183to do a common setting for all modes. For example, to switch off 4184blinking: "a:blinkon0" 4185 4186Examples of cursor highlighting: >vim 4187highlight Cursor gui=reverse guifg=NONE guibg=NONE 4188" Note: gui=reverse overrides colors. 4189highlight Cursor gui=NONE guifg=bg guibg=fg 4190< 4191]=] , 4192full_name ='guicursor' , 4193list ='onecomma' , 4194scope ={ 'global' } , 4195short_desc =N_ ( 'GUI: settings for cursor shape and blinking' ), 4196tags ={ 'E545' , 'E546' , 'E548' , 'E549' } , 4197type ='string' , 4198varname ='p_guicursor' , 4199} , 4200{ 4201abbreviation ='gfn' , 4202defaults ={ 4203if_true =macros ( 'DFLT_GFN' , 'string' ), 4204doc =[["DejaVu Sans Mono,Courier New,monospace" 4205Mac: "SF Mono,Menlo,Monaco,Courier New,monospace" 4206Linux: "Source Code Pro,DejaVu Sans Mono,Courier New,monospace" 4207MS-Windows: "Cascadia Code,Cascadia Mono,Consolas,Courier New,monospace"]] , 4208meta ='DFLT_GFN' , 4209} , 4210desc =[=[ 4211This is a list of fonts which will be used for the GUI version of Vim. 4212In its simplest form the value is just one font name. When 4213the font cannot be found you will get an error message. To try other 4214font names a list can be specified, font names separated with commas. 4215The first valid font is used. 4216 4217Spaces after a comma are ignored. To include a comma in a font name 4218precede it with a backslash. Setting an option requires an extra 4219backslash before a space and a backslash. See also 4220|option-backslash|. For example: >vim 4221set guifont=Screen15,\ 7x13,font\\,with\\,commas 4222< will make Vim try to use the font "Screen15" first, and if it fails it 4223will try to use "7x13" and then "font,with,commas" instead. 4224 4225If none of the fonts can be loaded, Vim will keep the current setting. 4226If an empty font list is given, Vim will try using other resource 4227settings (for X, it will use the Vim.font resource), and finally it 4228will try some builtin default which should always be there ("7x13" in 4229the case of X). The font names given should be "normal" fonts. Vim 4230will try to find the related bold and italic fonts. 4231 4232For Win32 and Mac OS: >vim 4233set guifont=* 4234< will bring up a font requester, where you can pick the font you want. 4235 4236The font name depends on the GUI used. 4237 4238For Mac OSX you can use something like this: >vim 4239set guifont=Monaco:h10 4240< *E236* 4241Note that the fonts must be mono-spaced (all characters have the same 4242width). 4243 4244To preview a font on X11, you might be able to use the "xfontsel" 4245program. The "xlsfonts" program gives a list of all available fonts. 4246 4247For the Win32 GUI *E244* *E245* 4248- takes these options in the font name: 4249hXX - height is XX (points, can be floating-point) 4250wXX - width is XX (points, can be floating-point) 4251b - bold 4252i - italic 4253u - underline 4254s - strikeout 4255cXX - character set XX. Valid charsets are: ANSI, ARABIC, 4256BALTIC, CHINESEBIG5, DEFAULT, EASTEUROPE, GB2312, GREEK, 4257HANGEUL, HEBREW, JOHAB, MAC, OEM, RUSSIAN, SHIFTJIS, 4258SYMBOL, THAI, TURKISH, VIETNAMESE ANSI and BALTIC. 4259Normally you would use "cDEFAULT". 4260 4261Use a ':' to separate the options. 4262- A '_' can be used in the place of a space, so you don't need to use 4263backslashes to escape the spaces. 4264- Examples: >vim 4265set guifont=courier_new:h12:w5:b:cRUSSIAN 4266set guifont=Andale_Mono:h7.5:w4.5 4267< 4268]=] , 4269deny_duplicates =true , 4270full_name ='guifont' , 4271list ='onecomma' , 4272redraw ={ 'ui_option' } , 4273scope ={ 'global' } , 4274short_desc =N_ ( 'GUI: Name(s) of font(s) to be used' ), 4275tags ={ 'E235' , 'E596' } , 4276type ='string' , 4277varname ='p_guifont' , 4278} , 4279{ 4280abbreviation ='gfw' , 4281defaults ='' , 4282deny_duplicates =true , 4283desc =[=[ 4284Comma-separated list of fonts to be used for double-width characters. 4285The first font that can be loaded is used. 4286Note: The size of these fonts must be exactly twice as wide as the one 4287specified with 'guifont' and the same height. 4288 4289When 'guifont' has a valid font and 'guifontwide' is empty Vim will 4290attempt to set 'guifontwide' to a matching double-width font. 4291]=] , 4292full_name ='guifontwide' , 4293list ='onecomma' , 4294redraw ={ 'ui_option' } , 4295scope ={ 'global' } , 4296short_desc =N_ ( 'list of font names for double-wide characters' ), 4297tags ={ 'E231' , 'E533' , 'E534' } , 4298type ='string' , 4299varname ='p_guifontwide' , 4300} , 4301{ 4302abbreviation ='go' , 4303defaults ={ 4304if_true ='' , 4305doc ='"egmrLT" (MS-Windows)' , 4306} , 4307desc =[=[ 4308This option only has an effect in the GUI version of Vim. It is a 4309sequence of letters which describes what components and options of the 4310GUI should be used. 4311To avoid problems with flags that are added in the future, use the 4312"+=" and "-=" feature of ":set" |add-option-flags|. 4313 4314Valid letters are as follows: 4315*guioptions_a* *'go-a'* 4316'a' Autoselect: If present, then whenever VISUAL mode is started, 4317or the Visual area extended, Vim tries to become the owner of 4318the windowing system's global selection. This means that the 4319Visually highlighted text is available for pasting into other 4320applications as well as into Vim itself. When the Visual mode 4321ends, possibly due to an operation on the text, or when an 4322application wants to paste the selection, the highlighted text 4323is automatically yanked into the "* selection register. 4324Thus the selection is still available for pasting into other 4325applications after the VISUAL mode has ended. 4326If not present, then Vim won't become the owner of the 4327windowing system's global selection unless explicitly told to 4328by a yank or delete operation for the "* register. 4329The same applies to the modeless selection. 4330*'go-P'* 4331'P' Like autoselect but using the "+ register instead of the "* 4332register. 4333*'go-A'* 4334'A' Autoselect for the modeless selection. Like 'a', but only 4335applies to the modeless selection. 4336 4337'guioptions' autoselect Visual autoselect modeless ~ 4338"" - - 4339"a" yes yes 4340"A" - yes 4341"aA" yes yes 4342 4343*'go-c'* 4344'c' Use console dialogs instead of popup dialogs for simple 4345choices. 4346*'go-d'* 4347'd' Use dark theme variant if available. 4348*'go-e'* 4349'e' Add tabpages when indicated with 'showtabline'. 4350'guitablabel' can be used to change the text in the labels. 4351When 'e' is missing a non-GUI tabpages line may be used. 4352The GUI tabs are only supported on some systems, currently 4353Mac OS/X and MS-Windows. 4354*'go-i'* 4355'i' Use a Vim icon. 4356*'go-m'* 4357'm' Menu bar is present. 4358*'go-M'* 4359'M' The system menu "$VIMRUNTIME/menu.vim" is not sourced. Note 4360that this flag must be added in the vimrc file, before 4361switching on syntax or filetype recognition (when the |gvimrc| 4362file is sourced the system menu has already been loaded; the 4363`:syntax on` and `:filetype on` commands load the menu too). 4364*'go-g'* 4365'g' Grey menu items: Make menu items that are not active grey. If 4366'g' is not included inactive menu items are not shown at all. 4367*'go-T'* 4368'T' Include Toolbar. Currently only in Win32 GUI. 4369*'go-r'* 4370'r' Right-hand scrollbar is always present. 4371*'go-R'* 4372'R' Right-hand scrollbar is present when there is a vertically 4373split window. 4374*'go-l'* 4375'l' Left-hand scrollbar is always present. 4376*'go-L'* 4377'L' Left-hand scrollbar is present when there is a vertically 4378split window. 4379*'go-b'* 4380'b' Bottom (horizontal) scrollbar is present. Its size depends on 4381the longest visible line, or on the cursor line if the 'h' 4382flag is included. |gui-horiz-scroll| 4383*'go-h'* 4384'h' Limit horizontal scrollbar size to the length of the cursor 4385line. Reduces computations. |gui-horiz-scroll| 4386 4387And yes, you may even have scrollbars on the left AND the right if 4388you really want to :-). See |gui-scrollbars| for more information. 4389 4390*'go-v'* 4391'v' Use a vertical button layout for dialogs. When not included, 4392a horizontal layout is preferred, but when it doesn't fit a 4393vertical layout is used anyway. Not supported in GTK 3. 4394*'go-p'* 4395'p' Use Pointer callbacks for X11 GUI. This is required for some 4396window managers. If the cursor is not blinking or hollow at 4397the right moment, try adding this flag. This must be done 4398before starting the GUI. Set it in your |gvimrc|. Adding or 4399removing it after the GUI has started has no effect. 4400*'go-k'* 4401'k' Keep the GUI window size when adding/removing a scrollbar, or 4402toolbar, tabline, etc. Instead, the behavior is similar to 4403when the window is maximized and will adjust 'lines' and 4404'columns' to fit to the window. Without the 'k' flag Vim will 4405try to keep 'lines' and 'columns' the same when adding and 4406removing GUI components. 4407]=] , 4408full_name ='guioptions' , 4409list ='flags' , 4410scope ={ 'global' } , 4411short_desc =N_ ( 'GUI: Which components and options are used' ), 4412type ='string' , 4413immutable =true , 4414} , 4415{ 4416abbreviation ='gtl' , 4417defaults ='' , 4418desc =[=[ 4419When non-empty describes the text to use in a label of the GUI 4420tabpages line. When empty and when the result is empty Vim will use 4421a default label. See |setting-guitablabel| for more info. 4422 4423The format of this option is like that of 'statusline'. 4424'guitabtooltip' is used for the tooltip, see below. 4425The expression will be evaluated in the |sandbox| when set from a 4426modeline, see |sandbox-option|. 4427This option cannot be set in a modeline when 'modelineexpr' is off. 4428 4429Only used when the GUI tabpages line is displayed. 'e' must be 4430present in 'guioptions'. For the non-GUI tabpages line 'tabline' is 4431used. 4432]=] , 4433full_name ='guitablabel' , 4434modelineexpr =true , 4435redraw ={ 'current_window' } , 4436scope ={ 'global' } , 4437short_desc =N_ ( 'GUI: custom label for a tabpage' ), 4438type ='string' , 4439immutable =true , 4440} , 4441{ 4442abbreviation ='gtt' , 4443defaults ='' , 4444desc =[=[ 4445When non-empty describes the text to use in a tooltip for the GUI 4446tabpages line. When empty Vim will use a default tooltip. 4447This option is otherwise just like 'guitablabel' above. 4448You can include a line break. Simplest method is to use |:let|: >vim 4449let &guitabtooltip = "line one\nline two" 4450< 4451This option cannot be set in a modeline when 'modelineexpr' is off. 4452]=] , 4453full_name ='guitabtooltip' , 4454modelineexpr =true , 4455redraw ={ 'current_window' } , 4456scope ={ 'global' } , 4457short_desc =N_ ( 'GUI: custom tooltip for a tabpage' ), 4458type ='string' , 4459immutable =true , 4460} , 4461{ 4462abbreviation ='hf' , 4463cb ='did_set_helpfile' , 4464defaults ={ 4465if_true =macros ( 'DFLT_HELPFILE' , 'string' ), 4466doc =[["$VIMRUNTIME/doc/help.txt"]] , 4467} , 4468desc =[=[ 4469Name of the main help file. All distributed help files should be 4470placed together in one directory. Additionally, all "doc" directories 4471in 'runtimepath' will be used. 4472Environment variables are expanded |:set_env|. For example: 4473"$VIMRUNTIME/doc/help.txt". If $VIMRUNTIME is not set, $VIM is also 4474tried. Also see |$VIMRUNTIME| and |option-backslash| about including 4475spaces and backslashes. 4476]=] , 4477expand =true , 4478full_name ='helpfile' , 4479scope ={ 'global' } , 4480secure =true , 4481short_desc =N_ ( 'full path name of the main help file' ), 4482type ='string' , 4483varname ='p_hf' , 4484} , 4485{ 4486abbreviation ='hh' , 4487cb ='did_set_helpheight' , 4488defaults =20 , 4489desc =[=[ 4490Minimal initial height of the help window when it is opened with the 4491":help" command. The initial height of the help window is half of the 4492current window, or (when the 'ea' option is on) the same as other 4493windows. When the height is less than 'helpheight', the height is 4494set to 'helpheight'. Set to zero to disable. 4495]=] , 4496full_name ='helpheight' , 4497scope ={ 'global' } , 4498short_desc =N_ ( 'minimum height of a new help window' ), 4499type ='number' , 4500varname ='p_hh' , 4501} , 4502{ 4503abbreviation ='hlg' , 4504validation_cb ='validate_helplang' , 4505defaults ={ 4506if_true ='' , 4507doc ='messages language or empty' , 4508} , 4509deny_duplicates =true , 4510desc =[=[ 4511Comma-separated list of languages. Vim will use the first language 4512for which the desired help can be found. The English help will always 4513be used as a last resort. You can add "en" to prefer English over 4514another language, but that will only find tags that exist in that 4515language and not in the English help. 4516Example: >vim 4517set helplang=de,it 4518< This will first search German, then Italian and finally English help 4519files. 4520When using |CTRL-]| and ":help!" in a non-English help file Vim will 4521try to find the tag in the current language before using this option. 4522See |help-translated|. 4523]=] , 4524full_name ='helplang' , 4525list ='onecomma' , 4526scope ={ 'global' } , 4527short_desc =N_ ( 'preferred help languages' ), 4528type ='string' , 4529varname ='p_hlg' , 4530} , 4531{ 4532abbreviation ='hid' , 4533defaults =true , 4534desc =[=[ 4535When off a buffer is unloaded (including loss of undo information) 4536when it is |abandon|ed. When on a buffer becomes hidden when it is 4537|abandon|ed. A buffer displayed in another window does not become 4538hidden, of course. 4539 4540Commands that move through the buffer list sometimes hide a buffer 4541although the 'hidden' option is off when these three are true: 4542- the buffer is modified 4543- 'autowrite' is off or writing is not possible 4544- the '!' flag was used 4545Also see |windows|. 4546 4547To hide a specific buffer use the 'bufhidden' option. 4548'hidden' is set for one command with ":hide {command}" |:hide|. 4549]=] , 4550full_name ='hidden' , 4551scope ={ 'global' } , 4552short_desc =N_ ( "don't unload buffer when it is |abandon|ed" ), 4553type ='boolean' , 4554varname ='p_hid' , 4555} , 4556{ 4557abbreviation ='hl' , 4558validation_cb ='validate_highlight' , 4559defaults =macros ( 'HIGHLIGHT_INIT' , 'string' ), 4560deny_duplicates =true , 4561full_name ='highlight' , 4562list ='onecomma' , 4563scope ={ 'global' } , 4564short_desc =N_ ( 'sets highlighting mode for various occasions' ), 4565type ='string' , 4566varname ='p_hl' , 4567} , 4568{ 4569abbreviation ='hi' , 4570defaults =10000 , 4571desc =[=[ 4572A history of ":" commands, and a history of previous search patterns 4573is remembered. This option decides how many entries may be stored in 4574each of these histories (see |cmdline-editing| and 'messagesopt' for 4575the number of messages to remember). 4576The maximum value is 10000. 4577]=] , 4578full_name ='history' , 4579scope ={ 'global' } , 4580short_desc =N_ ( 'number of command-lines that are remembered' ), 4581type ='number' , 4582varname ='p_hi' , 4583} , 4584{ 4585abbreviation ='hk' , 4586defaults =false , 4587full_name ='hkmap' , 4588scope ={ 'global' } , 4589short_desc =N_ ( 'Deprecated' ), 4590type ='boolean' , 4591immutable =true , 4592} , 4593{ 4594abbreviation ='hkp' , 4595defaults =false , 4596full_name ='hkmapp' , 4597scope ={ 'global' } , 4598short_desc =N_ ( 'Deprecated' ), 4599type ='boolean' , 4600immutable =true , 4601} , 4602{ 4603abbreviation ='hls' , 4604cb ='did_set_hlsearch' , 4605defaults =true , 4606desc =[=[ 4607When there is a previous search pattern, highlight all its matches. 4608The |hl-Search| highlight group determines the highlighting for all 4609matches not under the cursor while the |hl-CurSearch| highlight group 4610(if defined) determines the highlighting for the match under the 4611cursor. If |hl-CurSearch| is not defined, then |hl-Search| is used for 4612both. Note that only the matching text is highlighted, any offsets 4613are not applied. 4614See also: 'incsearch' and |:match|. 4615When you get bored looking at the highlighted matches, you can turn it 4616off with |:nohlsearch|. This does not change the option value, as 4617soon as you use a search command, the highlighting comes back. 4618'redrawtime' specifies the maximum time spent on finding matches. 4619When the search pattern can match an end-of-line, Vim will try to 4620highlight all of the matched text. However, this depends on where the 4621search starts. This will be the first line in the window or the first 4622line below a closed fold. A match in a previous line which is not 4623drawn may not continue in a newly drawn line. 4624You can specify whether the highlight status is restored on startup 4625with the 'h' flag in 'shada' |shada-h|. 4626]=] , 4627full_name ='hlsearch' , 4628redraw ={ 'all_windows' , 'highlight_only' } , 4629scope ={ 'global' } , 4630short_desc =N_ ( 'highlight matches with last search pattern' ), 4631type ='boolean' , 4632varname ='p_hls' , 4633} , 4634{ 4635cb ='did_set_title_icon' , 4636defaults ={ 4637if_true =false , 4638doc ='off, on when title can be restored' , 4639} , 4640desc =[=[ 4641When on, the icon text of the window will be set to the value of 4642'iconstring' (if it is not empty), or to the name of the file 4643currently being edited. Only the last part of the name is used. 4644Overridden by the 'iconstring' option. 4645Only works if the terminal supports setting window icons. 4646]=] , 4647full_name ='icon' , 4648scope ={ 'global' } , 4649short_desc =N_ ( 'Vim set the text of the window icon' ), 4650type ='boolean' , 4651varname ='p_icon' , 4652} , 4653{ 4654cb ='did_set_iconstring' , 4655defaults ='' , 4656desc =[=[ 4657When this option is not empty, it will be used for the icon text of 4658the window. This happens only when the 'icon' option is on. 4659Only works if the terminal supports setting window icon text 4660When this option contains printf-style '%' items, they will be 4661expanded according to the rules used for 'statusline'. See 4662'titlestring' for example settings. 4663This option cannot be set in a modeline when 'modelineexpr' is off. 4664]=] , 4665full_name ='iconstring' , 4666modelineexpr =true , 4667scope ={ 'global' } , 4668short_desc =N_ ( 'to use for the Vim icon text' ), 4669type ='string' , 4670varname ='p_iconstring' , 4671} , 4672{ 4673abbreviation ='ic' , 4674cb ='did_set_ignorecase' , 4675defaults =false , 4676desc =[=[ 4677Ignore case in search patterns, |cmdline-completion|, when 4678searching in the tags file, |expr-==| and for Insert-mode completion 4679|ins-completion|. 4680Also see 'smartcase' and 'tagcase'. 4681Can be overruled by using "\c" or "\C" in the pattern, see 4682|/ignorecase|. 4683]=] , 4684full_name ='ignorecase' , 4685scope ={ 'global' } , 4686short_desc =N_ ( 'ignore case in search patterns' ), 4687type ='boolean' , 4688varname ='p_ic' , 4689} , 4690{ 4691abbreviation ='imc' , 4692defaults =false , 4693desc =[=[ 4694When set the Input Method is always on when starting to edit a command 4695line, unless entering a search pattern (see 'imsearch' for that). 4696Setting this option is useful when your input method allows entering 4697English characters directly, e.g., when it's used to type accented 4698characters with dead keys. 4699]=] , 4700full_name ='imcmdline' , 4701scope ={ 'global' } , 4702short_desc =N_ ( 'use IM when starting to edit a command line' ), 4703type ='boolean' , 4704immutable =true , 4705} , 4706{ 4707abbreviation ='imd' , 4708defaults ={ 4709if_true =false , 4710doc ='off, on for some systems (SGI)' , 4711} , 4712desc =[=[ 4713When set the Input Method is never used. This is useful to disable 4714the IM when it doesn't work properly. 4715Currently this option is on by default for SGI/IRIX machines. This 4716may change in later releases. 4717]=] , 4718full_name ='imdisable' , 4719scope ={ 'global' } , 4720short_desc =N_ ( 'do not use the IM in any mode' ), 4721type ='boolean' , 4722immutable =true , 4723} , 4724{ 4725abbreviation ='imi' , 4726cb ='did_set_iminsert' , 4727defaults =macros ( 'B_IMODE_NONE' , 'number' ), 4728desc =[=[ 4729Specifies whether :lmap or an Input Method (IM) is to be used in 4730Insert mode. Valid values: 47310 :lmap is off and IM is off 47321 :lmap is ON and IM is off 47332 :lmap is off and IM is ON 4734To always reset the option to zero when leaving Insert mode with <Esc> 4735this can be used: >vim 4736inoremap <ESC> <ESC>:set iminsert=0<CR> 4737< This makes :lmap and IM turn off automatically when leaving Insert 4738mode. 4739Note that this option changes when using CTRL-^ in Insert mode 4740|i_CTRL-^|. 4741The value is set to 1 when setting 'keymap' to a valid keymap name. 4742It is also used for the argument of commands like "r" and "f". 4743]=] , 4744full_name ='iminsert' , 4745scope ={ 'buf' } , 4746short_desc =N_ ( 'use :lmap or IM in Insert mode' ), 4747type ='number' , 4748varname ='p_iminsert' , 4749} , 4750{ 4751abbreviation ='ims' , 4752defaults =macros ( 'B_IMODE_USE_INSERT' , 'number' ), 4753desc =[=[ 4754Specifies whether :lmap or an Input Method (IM) is to be used when 4755entering a search pattern. Valid values: 4756-1 the value of 'iminsert' is used, makes it look like 4757'iminsert' is also used when typing a search pattern 47580 :lmap is off and IM is off 47591 :lmap is ON and IM is off 47602 :lmap is off and IM is ON 4761Note that this option changes when using CTRL-^ in Command-line mode 4762|c_CTRL-^|. 4763The value is set to 1 when it is not -1 and setting the 'keymap' 4764option to a valid keymap name. 4765]=] , 4766full_name ='imsearch' , 4767scope ={ 'buf' } , 4768short_desc =N_ ( 'use :lmap or IM when typing a search pattern' ), 4769type ='number' , 4770varname ='p_imsearch' , 4771} , 4772{ 4773abbreviation ='icm' , 4774cb ='did_set_inccommand' , 4775validation_cb ='validate_str_generic' , 4776defaults ='nosplit' , 4777schema ={ 4778enum ={ 'nosplit' , 'split' , '' } , 4779} , 4780desc =[=[ 4781When nonempty, shows the effects of |:substitute|, |:smagic|, 4782|:snomagic| and user commands with the |:command-preview| flag as you 4783type. 4784 4785Possible values: 4786nosplit Shows the effects of a command incrementally in the 4787buffer. 4788split Like "nosplit", but also shows partial off-screen 4789results in a preview window. 4790 4791If the preview for built-in commands is too slow (exceeds 4792'redrawtime') then 'inccommand' is automatically disabled until 4793|Command-line-mode| is done. 4794]=] , 4795full_name ='inccommand' , 4796scope ={ 'global' } , 4797short_desc =N_ ( 'Live preview of substitution' ), 4798type ='string' , 4799varname ='p_icm' , 4800} , 4801{ 4802abbreviation ='inc' , 4803defaults ='' , 4804desc =[=[ 4805Pattern to be used to find an include command. It is a search 4806pattern, just like for the "/" command (See |pattern|). This option 4807is used for the commands "[i", "]I", "[d", etc. 4808Normally the 'isfname' option is used to recognize the file name that 4809comes after the matched pattern. But if "\zs" appears in the pattern 4810then the text matched from "\zs" to the end, or until "\ze" if it 4811appears, is used as the file name. Use this to include characters 4812that are not in 'isfname', such as a space. You can then use 4813'includeexpr' to process the matched text. 4814See |option-backslash| about including spaces and backslashes. 4815]=] , 4816full_name ='include' , 4817scope ={ 'global' , 'buf' } , 4818short_desc =N_ ( 'pattern to be used to find an include file' ), 4819type ='string' , 4820varname ='p_inc' , 4821} , 4822{ 4823abbreviation ='inex' , 4824defaults ='' , 4825desc =[=[ 4826Expression to be used to transform the string found with the 'include' 4827option to a file name. Mostly useful to change "." to "/" for Java: >vim 4828setlocal includeexpr=substitute(v:fname,'\\.','/','g') 4829< The "v:fname" variable will be set to the file name that was detected. 4830Note the double backslash: the `:set` command first halves them, then 4831one remains in the value, where "\." matches a dot literally. For 4832simple character replacements `tr()` avoids the need for escaping: >vim 4833setlocal includeexpr=tr(v:fname,'.','/') 4834< 4835Also used for the |gf| command if an unmodified file name can't be 4836found. Allows doing "gf" on the name after an 'include' statement. 4837Note: Not used for |<cfile>|. 4838 4839If the expression starts with s: or |<SID>|, then it is replaced with 4840the script ID (|local-function|). Example: >vim 4841setlocal includeexpr=s:MyIncludeExpr() 4842setlocal includeexpr=<SID>SomeIncludeExpr() 4843< Otherwise, the expression is evaluated in the context of the script 4844where the option was set, thus script-local items are available. 4845 4846It is more efficient if the value is just a function call without 4847arguments, see |expr-option-function|. 4848 4849The expression will be evaluated in the |sandbox| when set from a 4850modeline, see |sandbox-option|. 4851This option cannot be set in a modeline when 'modelineexpr' is off. 4852 4853It is not allowed to change text or jump to another window while 4854evaluating 'includeexpr' |textlock|. 4855]=] , 4856full_name ='includeexpr' , 4857modelineexpr =true , 4858scope ={ 'buf' } , 4859short_desc =N_ ( 'expression used to process an include line' ), 4860type ='expr' , 4861varname ='p_inex' , 4862} , 4863{ 4864abbreviation ='is' , 4865defaults =true , 4866desc =[=[ 4867While typing a search command, show where the pattern, as it was typed 4868so far, matches. The matched string is highlighted. If the pattern 4869is invalid or not found, nothing is shown. The screen will be updated 4870often, this is only useful on fast terminals. 4871Note that the match will be shown, but the cursor will return to its 4872original position when no match is found and when pressing <Esc>. You 4873still need to finish the search command with <Enter> to move the 4874cursor to the match. 4875You can use the CTRL-G and CTRL-T keys to move to the next and 4876previous match. |c_CTRL-G| |c_CTRL-T| 4877Vim only searches for about half a second. With a complicated 4878pattern and/or a lot of text the match may not be found. This is to 4879avoid that Vim hangs while you are typing the pattern. 4880The |hl-IncSearch| highlight group determines the highlighting. 4881When 'hlsearch' is on, all matched strings are highlighted too while 4882typing a search command. See also: 'hlsearch'. 4883If you don't want to turn 'hlsearch' on, but want to highlight all 4884matches while searching, you can turn on and off 'hlsearch' with 4885autocmd. Example: >vim 4886augroup vimrc-incsearch-highlight 4887autocmd! 4888autocmd CmdlineEnter [\/\?] :set hlsearch 4889autocmd CmdlineLeave [\/\?] :set nohlsearch 4890augroup END 4891< 4892CTRL-L can be used to add one character from after the current match 4893to the command line. If 'ignorecase' and 'smartcase' are set and the 4894command line has no uppercase characters, the added character is 4895converted to lowercase. 4896CTRL-R CTRL-W can be used to add the word at the end of the current 4897match, excluding the characters that were already typed (starting from 4898the beginning of the word). 4899]=] , 4900full_name ='incsearch' , 4901scope ={ 'global' } , 4902short_desc =N_ ( 'highlight match while typing search pattern' ), 4903type ='boolean' , 4904varname ='p_is' , 4905} , 4906{ 4907abbreviation ='inde' , 4908defaults ='' , 4909desc =[=[ 4910Expression which is evaluated to obtain the proper indent for a line. 4911It is used when a new line is created, for the |=| operator and 4912in Insert mode as specified with the 'indentkeys' option. 4913When this option is not empty, it overrules the 'cindent' and 4914'smartindent' indenting. When 'lisp' is set, this option is 4915only used when 'lispoptions' contains "expr:1". 4916The expression is evaluated with |v:lnum| set to the line number for 4917which the indent is to be computed. The cursor is also in this line 4918when the expression is evaluated (but it may be moved around). 4919 4920If the expression starts with s: or |<SID>|, then it is replaced with 4921the script ID (|local-function|). Example: >vim 4922set indentexpr=s:MyIndentExpr() 4923set indentexpr=<SID>SomeIndentExpr() 4924< Otherwise, the expression is evaluated in the context of the script 4925where the option was set, thus script-local items are available. 4926 4927The advantage of using a function call without arguments is that it is 4928faster, see |expr-option-function|. 4929 4930The expression must return the number of spaces worth of indent. It 4931can return "-1" to keep the current indent (this means 'autoindent' is 4932used for the indent). 4933Functions useful for computing the indent are |indent()|, |cindent()| 4934and |lispindent()|. 4935The evaluation of the expression must not have side effects! It must 4936not change the text, jump to another window, etc. Afterwards the 4937cursor position is always restored, thus the cursor may be moved. 4938Normally this option would be set to call a function: >vim 4939set indentexpr=GetMyIndent() 4940< Error messages will be suppressed, unless the 'debug' option contains 4941"msg". 4942See |indent-expression|. 4943 4944The expression will be evaluated in the |sandbox| when set from a 4945modeline, see |sandbox-option|. 4946This option cannot be set in a modeline when 'modelineexpr' is off. 4947 4948It is not allowed to change text or jump to another window while 4949evaluating 'indentexpr' |textlock|. 4950]=] , 4951full_name ='indentexpr' , 4952modelineexpr =true , 4953scope ={ 'buf' } , 4954short_desc =N_ ( 'expression used to obtain the indent of a line' ), 4955type ='expr' , 4956varname ='p_inde' , 4957} , 4958{ 4959abbreviation ='indk' , 4960defaults ='0{,0},0),0],:,0#,!^F,o,O,e' , 4961deny_duplicates =true , 4962desc =[=[ 4963A list of keys that, when typed in Insert mode, cause reindenting of 4964the current line. Only happens if 'indentexpr' isn't empty. 4965The format is identical to 'cinkeys', see |indentkeys-format|. 4966See |C-indenting| and |indent-expression|. 4967]=] , 4968full_name ='indentkeys' , 4969list ='onecomma' , 4970scope ={ 'buf' } , 4971short_desc =N_ ( "keys that trigger indenting with 'indentexpr'" ), 4972type ='string' , 4973varname ='p_indk' , 4974} , 4975{ 4976abbreviation ='inf' , 4977defaults =false , 4978desc =[=[ 4979When doing keyword completion in insert mode |ins-completion|, and 4980'ignorecase' is also on, the case of the match is adjusted depending 4981on the typed text. If the typed text contains a lowercase letter 4982where the match has an upper case letter, the completed part is made 4983lowercase. If the typed text has no lowercase letters and the match 4984has a lowercase letter where the typed text has an uppercase letter, 4985and there is a letter before it, the completed part is made uppercase. 4986With 'noinfercase' the match is used as-is. 4987]=] , 4988full_name ='infercase' , 4989scope ={ 'buf' } , 4990short_desc =N_ ( 'adjust case of match for keyword completion' ), 4991type ='boolean' , 4992varname ='p_inf' , 4993} , 4994{ 4995abbreviation ='im' , 4996defaults =false , 4997full_name ='insertmode' , 4998scope ={ 'global' } , 4999short_desc =N_ ( 'Deprecated' ), 5000type ='boolean' , 5001immutable =true , 5002} , 5003{ 5004abbreviation ='isf' , 5005cb ='did_set_isopt' , 5006validation_cb ='validate_isopt' , 5007defaults ={ 5008condition ='BACKSLASH_IN_FILENAME' , 5009if_false ='@,48-57,/,.,-,_,+,,,#,$,%,~,=' , 5010if_true ='@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,=' , 5011doc =[[for Windows: 5012"@,48-57,/,\,.,-,_,+,,,#,$,%,{,},[,],@-@,!,~,=" 5013otherwise: "@,48-57,/,.,-,_,+,,,#,$,%,~,="]] , 5014} , 5015deny_duplicates =true , 5016desc =[=[ 5017The characters specified by this option are included in file names and 5018path names. Filenames are used for commands like "gf", "[i" and in 5019the tags file. It is also used for "\f" in a |pattern|. 5020Multi-byte characters 256 and above are always included, only the 5021characters up to 255 are specified with this option. 5022For UTF-8 the characters 0xa0 to 0xff are included as well. 5023Think twice before adding white space to this option. Although a 5024space may appear inside a file name, the effect will be that Vim 5025doesn't know where a file name starts or ends when doing completion. 5026It most likely works better without a space in 'isfname'. 5027 5028Note that on systems using a backslash as path separator, Vim tries to 5029do its best to make it work as you would expect. That is a bit 5030tricky, since Vi originally used the backslash to escape special 5031characters. Vim will not remove a backslash in front of a normal file 5032name character on these systems, but it will on Unix and alikes. The 5033'&' and '^' are not included by default, because these are special for 5034cmd.exe. 5035 5036The format of this option is a list of parts, separated with commas. 5037Each part can be a single character number or a range. A range is two 5038character numbers with '-' in between. A character number can be a 5039decimal number between 0 and 255 or the ASCII character itself (does 5040not work for digits). Example: 5041"_,-,128-140,#-43" (include '_' and '-' and the range 5042128 to 140 and '#' to 43) 5043If a part starts with '^', the following character number or range 5044will be excluded from the option. The option is interpreted from left 5045to right. Put the excluded character after the range where it is 5046included. To include '^' itself use it as the last character of the 5047option or the end of a range. Example: 5048"^a-z,#,^" (exclude 'a' to 'z', include '#' and '^') 5049If the character is '@', all characters where isalpha() returns TRUE 5050are included. Normally these are the characters a to z and A to Z, 5051plus accented characters. To include '@' itself use "@-@". Examples: 5052"@,^a-z" All alphabetic characters, excluding lower 5053case ASCII letters. 5054"a-z,A-Z,@-@" All letters plus the '@' character. 5055A comma can be included by using it where a character number is 5056expected. Example: 5057"48-57,,,_" Digits, comma and underscore. 5058A comma can be excluded by prepending a '^'. Example: 5059" -~,^,,9" All characters from space to '~', excluding 5060comma, plus <Tab>. 5061See |option-backslash| about including spaces and backslashes. 5062]=] , 5063full_name ='isfname' , 5064list ='comma' , 5065scope ={ 'global' } , 5066short_desc =N_ ( 'characters included in file names and pathnames' ), 5067type ='string' , 5068varname ='p_isf' , 5069} , 5070{ 5071abbreviation ='isi' , 5072cb ='did_set_isopt' , 5073validation_cb ='validate_isopt' , 5074defaults ={ 5075condition ='MSWIN' , 5076if_false ='@,48-57,_,192-255' , 5077if_true ='@,48-57,_,128-167,224-235' , 5078doc =[[for Windows: 5079"@,48-57,_,128-167,224-235" 5080otherwise: "@,48-57,_,192-255"]] , 5081} , 5082deny_duplicates =true , 5083desc =[=[ 5084The characters given by this option are included in identifiers. 5085Identifiers are used in recognizing environment variables and after a 5086match of the 'define' option. It is also used for "\i" in a 5087|pattern|. See 'isfname' for a description of the format of this 5088option. For '@' only characters up to 255 are used. 5089Careful: If you change this option, it might break expanding 5090environment variables. E.g., when '/' is included and Vim tries to 5091expand "$HOME/.local/state/nvim/shada/main.shada". Maybe you should 5092change 'iskeyword' instead. 5093]=] , 5094full_name ='isident' , 5095list ='comma' , 5096scope ={ 'global' } , 5097short_desc =N_ ( 'characters included in identifiers' ), 5098type ='string' , 5099varname ='p_isi' , 5100} , 5101{ 5102abbreviation ='isk' , 5103cb ='did_set_iskeyword' , 5104validation_cb ='validate_isopt' , 5105defaults ='@,48-57,_,192-255' , 5106deny_duplicates =true , 5107desc =[=[ 5108Keywords are used in searching and recognizing with many commands: 5109"w", "*", "[i", etc. It is also used for "\k" in a |pattern|. See 5110'isfname' for a description of the format of this option. For '@' 5111characters above 255 check the "word" character class (any character 5112that is categorized as a letter, number or emoji according to the 5113Unicode general category). 5114 5115Note that there is a difference between the "\k" character class and 5116the |word| motion. The former matches any word character, while the 5117latter stops at a change of the character class. 5118 5119For C programs you could use "a-z,A-Z,48-57,_,.,-,>". 5120For a help file it is set to all non-blank printable characters except 5121"*", '"' and '|' (so that CTRL-] on a command finds the help for that 5122command). 5123When the 'lisp' option is on the '-' character is always included. 5124This option also influences syntax highlighting, unless the syntax 5125uses |:syn-iskeyword|. 5126]=] , 5127full_name ='iskeyword' , 5128list ='comma' , 5129scope ={ 'buf' } , 5130short_desc =N_ ( 'characters included in keywords' ), 5131type ='string' , 5132varname ='p_isk' , 5133} , 5134{ 5135abbreviation ='isp' , 5136defaults ='@,161-255' , 5137deny_duplicates =true , 5138full_name ='isprint' , 5139list ='comma' , 5140scope ={ 'global' } , 5141short_desc =N_ ( 'printable characters' ), 5142type ='string' , 5143immutable =true , 5144} , 5145{ 5146abbreviation ='js' , 5147defaults =false , 5148desc =[=[ 5149Insert two spaces after a '.', '?' and '!' with a join command. 5150Otherwise only one space is inserted. 5151]=] , 5152full_name ='joinspaces' , 5153scope ={ 'global' } , 5154short_desc =N_ ( 'two spaces after a period with a join command' ), 5155type ='boolean' , 5156varname ='p_js' , 5157} , 5158{ 5159abbreviation ='jop' , 5160validation_cb ='validate_str_generic' , 5161defaults ='clean' , 5162schema ={ 5163flags ={ 'stack' , 'view' , 'clean' } , 5164} , 5165deny_duplicates =true , 5166desc =[=[ 5167List of words that change the behavior of the |jumplist|. 5168stack Make the jumplist behave like the tagstack. 5169Relative location of entries in the jumplist is 5170preserved at the cost of discarding subsequent entries 5171when navigating backwards in the jumplist and then 5172jumping to a location. |jumplist-stack| 5173 5174view When moving through the jumplist, |changelist|, 5175|alternate-file|, using |mark-motions| or when popping 5176the |tagstack| try to restore the |mark-view| in which 5177the action occurred. 5178 5179clean Remove unloaded buffers from the jumplist. 5180]=] , 5181full_name ='jumpoptions' , 5182list ='onecomma' , 5183scope ={ 'global' } , 5184short_desc =N_ ( 'Controls the behavior of the jumplist' ), 5185type ='string' , 5186varname ='p_jop' , 5187flags_varname ='jop_flags' , 5188} , 5189{ 5190abbreviation ='kmp' , 5191cb ='did_set_keymap' , 5192validation_cb ='validate_filetype' , 5193defaults ='' , 5194desc =[=[ 5195Name of a keyboard mapping. See |mbyte-keymap|. 5196Setting this option to a valid keymap name has the side effect of 5197setting 'iminsert' to one, so that the keymap becomes effective. 5198'imsearch' is also set to one, unless it was -1 5199Only alphanumeric characters, '.', '-' and '_' can be used. 5200]=] , 5201full_name ='keymap' , 5202normal_fname_chars =true , 5203pri_mkrc =true , 5204redraw ={ 'statuslines' , 'current_buffer' } , 5205scope ={ 'buf' } , 5206short_desc =N_ ( 'name of a keyboard mapping' ), 5207tags ={ 'E544' } , 5208type ='string' , 5209varname ='p_keymap' , 5210} , 5211{ 5212abbreviation ='km' , 5213cb ='did_set_keymodel' , 5214validation_cb ='validate_str_generic' , 5215defaults ='' , 5216schema ={ 5217set ={ 'startsel' , 'stopsel' } , 5218} , 5219deny_duplicates =true , 5220desc =[=[ 5221List of comma-separated words, which enable special things that keys 5222can do. These values can be used: 5223startsel Using a shifted special key starts selection (either 5224Select mode or Visual mode, depending on "key" being 5225present in 'selectmode'). 5226stopsel Using a not-shifted special key stops selection. 5227Special keys in this context are the cursor keys, <End>, <Home>, 5228<PageUp> and <PageDown>. 5229]=] , 5230full_name ='keymodel' , 5231list ='onecomma' , 5232scope ={ 'global' } , 5233short_desc =N_ ( 'enable starting/stopping selection with keys' ), 5234type ='string' , 5235varname ='p_km' , 5236} , 5237{ 5238abbreviation ='kp' , 5239defaults ={ 5240condition ='MSWIN' , 5241if_true =':help!' , 5242if_false =':Man' , 5243doc ='":Man", Windows: ":help"' , 5244} , 5245desc =[=[ 5246Program to use for the |K| command. Environment variables are 5247expanded |:set_env|. 5248 5249Special cases: 5250- ":help" opens the |word| at cursor using |:help|. (Note that 5251previously setting the global option to the empty value did this, 5252which is now deprecated.) 5253- ":help!" performs |:help!| (DWIM) on the |WORD| at cursor. 5254- If the value starts with ":", it is invoked as an Ex command 5255and [count] is passed as the first argument, if present. 5256- If "man" or "man -s", [count] is the manpage section number. 5257 5258See |option-backslash| about including spaces and backslashes. 5259 5260Example: >vim 5261set keywordprg=:help! 5262set keywordprg=man\ -s 5263set keywordprg=:Man 5264< 5265]=] , 5266expand =true , 5267full_name ='keywordprg' , 5268scope ={ 'global' , 'buf' } , 5269secure =true , 5270short_desc =N_ ( 'program to use for the "K" command' ), 5271type ='string' , 5272varname ='p_kp' , 5273} , 5274{ 5275abbreviation ='lmap' , 5276cb ='did_set_langmap' , 5277defaults ='' , 5278deny_duplicates =true , 5279desc =[=[ 5280This option allows switching your keyboard into a special language 5281mode. When you are typing text in Insert mode the characters are 5282inserted directly. When in Normal mode the 'langmap' option takes 5283care of translating these special characters to the original meaning 5284of the key. This means you don't have to change the keyboard mode to 5285be able to execute Normal mode commands. 5286This is the opposite of the 'keymap' option, where characters are 5287mapped in Insert mode. 5288Also consider setting 'langremap' to off, to prevent 'langmap' from 5289applying to characters resulting from a mapping. 5290 5291Example (for Greek, in UTF-8): *greek* >vim 5292set 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 5293< Example (exchanges meaning of z and y for commands): >vim 5294set langmap=zy,yz,ZY,YZ 5295< 5296The 'langmap' option is a list of parts, separated with commas. Each 5297part can be in one of two forms: 52981. A list of pairs. Each pair is a "from" character immediately 5299followed by the "to" character. Examples: "aA", "aAbBcC". 53002. A list of "from" characters, a semicolon and a list of "to" 5301characters. Example: "abc;ABC" 5302Example: "aA,fgh;FGH,cCdDeE" 5303Special characters need to be preceded with a backslash. These are 5304";", ',', '"', '|' and backslash itself. 5305 5306This will allow you to activate vim actions without having to switch 5307back and forth between the languages. Your language characters will 5308be understood as normal vim English characters (according to the 5309langmap mappings) in the following cases: 5310o Normal/Visual mode (commands, buffer/register names, user mappings) 5311o Insert/Replace Mode: Register names after CTRL-R 5312o Insert/Replace Mode: Mappings 5313Characters entered in Command-line mode will NOT be affected by 5314this option. Note that this option can be changed at any time 5315allowing to switch between mappings for different languages/encodings. 5316Use a mapping to avoid having to type it each time! 5317]=] , 5318full_name ='langmap' , 5319list ='onecomma' , 5320scope ={ 'global' } , 5321secure =true , 5322short_desc =N_ ( 'alphabetic characters for other language mode' ), 5323tags ={ 'E357' , 'E358' } , 5324type ='string' , 5325varname ='p_langmap' , 5326} , 5327{ 5328abbreviation ='lm' , 5329defaults ='' , 5330desc =[=[ 5331Language to use for menu translation. Tells which file is loaded 5332from the "lang" directory in 'runtimepath': >vim 5333"lang/menu_" .. &langmenu .. ".vim" 5334< (without the spaces). For example, to always use the Dutch menus, no 5335matter what $LANG is set to: >vim 5336set langmenu=nl_NL.ISO_8859-1 5337< When 'langmenu' is empty, |v:lang| is used. 5338Only normal file name characters can be used, `/\*?[|<>` are illegal. 5339If your $LANG is set to a non-English language but you do want to use 5340the English menus: >vim 5341set langmenu=none 5342< This option must be set before loading menus, switching on filetype 5343detection or syntax highlighting. Once the menus are defined setting 5344this option has no effect. But you could do this: >vim 5345source $VIMRUNTIME/delmenu.vim 5346set langmenu=de_DE.ISO_8859-1 5347source $VIMRUNTIME/menu.vim 5348< Warning: This deletes all menus that you defined yourself! 5349]=] , 5350full_name ='langmenu' , 5351normal_fname_chars =true , 5352scope ={ 'global' } , 5353short_desc =N_ ( 'language to be used for the menus' ), 5354type ='string' , 5355varname ='p_lm' , 5356} , 5357{ 5358abbreviation ='lnr' , 5359cb ='did_set_langnoremap' , 5360defaults =true , 5361full_name ='langnoremap' , 5362scope ={ 'global' } , 5363short_desc =N_ ( "do not apply 'langmap' to mapped characters" ), 5364type ='boolean' , 5365varname ='p_lnr' , 5366} , 5367{ 5368abbreviation ='lrm' , 5369cb ='did_set_langremap' , 5370defaults =false , 5371desc =[=[ 5372When off, setting 'langmap' does not apply to characters resulting 5373from a mapping. If setting 'langmap' disables some of your mappings, 5374make sure this option is off. 5375]=] , 5376full_name ='langremap' , 5377scope ={ 'global' } , 5378short_desc =N_ ( 'Deprecated' ), 5379type ='boolean' , 5380varname ='p_lrm' , 5381} , 5382{ 5383abbreviation ='ls' , 5384cb ='did_set_laststatus' , 5385defaults =2 , 5386desc =[=[ 5387The value of this option influences when the last window will have a 5388status line: 53890: never 53901: only if there are at least two windows 53912: always 53923: always and ONLY the last window 5393 5394Here "last window" means the last window in a column, i.e. the bottom- 5395most one, just above the command line. 5396 5397The screen looks nicer with a status line if you have several 5398windows, but it takes another screen line. |status-line| 5399]=] , 5400full_name ='laststatus' , 5401redraw ={ 'all_windows' } , 5402scope ={ 'global' } , 5403short_desc =N_ ( 'tells when last window has status lines' ), 5404type ='number' , 5405varname ='p_ls' , 5406} , 5407{ 5408abbreviation ='lz' , 5409defaults =false , 5410desc =[=[ 5411When this option is set, the screen will not be redrawn while 5412executing macros, registers and other commands that have not been 5413typed. Also, updating the window title is postponed. To force an 5414update use |:redraw|. 5415This may occasionally cause display errors. It is only meant to be 5416set temporarily when performing an operation where redrawing may cause 5417flickering or cause a slowdown. 5418]=] , 5419full_name ='lazyredraw' , 5420scope ={ 'global' } , 5421short_desc =N_ ( "don't redraw while executing macros" ), 5422type ='boolean' , 5423varname ='p_lz' , 5424} , 5425{ 5426abbreviation ='lhi' , 5427cb ='did_set_xhistory' , 5428defaults =10 , 5429desc =[=[ 5430Like 'chistory', but for the location list stack associated with a 5431window. If the option is changed in either the location list window 5432itself or the window that is associated with the location list stack, 5433the new value will also be applied to the other one. This means this 5434value will always be the same for a given location list window and its 5435corresponding window. See |quickfix-stack| for additional info. 5436]=] , 5437full_name ='lhistory' , 5438scope ={ 'win' } , 5439short_desc =N_ ( 'number of location lists stored in history' ), 5440type ='number' , 5441} , 5442{ 5443abbreviation ='lbr' , 5444defaults =false , 5445desc =[=[ 5446If on, Vim will wrap long lines at a character in 'breakat' rather 5447than at the last character that fits on the screen. Unlike 5448'wrapmargin' and 'textwidth', this does not insert <EOL>s in the file, 5449it only affects the way the file is displayed, not its contents. 5450If 'breakindent' is set, line is visually indented. Then, the value 5451of 'showbreak' is used to put in front of wrapped lines. This option 5452is not used when the 'wrap' option is off. 5453Note that <Tab> characters after an <EOL> are mostly not displayed 5454with the right amount of white space. 5455]=] , 5456full_name ='linebreak' , 5457redraw ={ 'current_window' } , 5458scope ={ 'win' } , 5459short_desc =N_ ( 'wrap long lines at a blank' ), 5460type ='boolean' , 5461} , 5462{ 5463cb ='did_set_lines_or_columns' , 5464defaults ={ 5465if_true =macros ( 'DFLT_ROWS' , 'number' ), 5466doc ='24 or terminal height' , 5467} , 5468desc =[=[ 5469Number of lines of the Vim window. 5470Normally you don't need to set this. It is done automatically by the 5471terminal initialization code. 5472When Vim is running in the GUI or in a resizable window, setting this 5473option will cause the window size to be changed. When you only want 5474to use the size for the GUI, put the command in your |gvimrc| file. 5475Vim limits the number of lines to what fits on the screen. You can 5476use this command to get the tallest window possible: >vim 5477set lines=999 5478< Minimum value is 2, maximum value is 1000. 5479]=] , 5480full_name ='lines' , 5481no_mkrc =true , 5482scope ={ 'global' } , 5483short_desc =N_ ( 'of lines in the display' ), 5484tags ={ 'E593' } , 5485type ='number' , 5486varname ='p_lines' , 5487} , 5488{ 5489abbreviation ='lsp' , 5490defaults =0 , 5491desc =[=[ 5492only in the GUI 5493Number of pixel lines inserted between characters. Useful if the font 5494uses the full character cell height, making lines touch each other. 5495When non-zero there is room for underlining. 5496With some fonts there can be too much room between lines (to have 5497space for ascents and descents). Then it makes sense to set 5498'linespace' to a negative value. This may cause display problems 5499though! 5500]=] , 5501full_name ='linespace' , 5502redraw ={ 'ui_option' } , 5503scope ={ 'global' } , 5504short_desc =N_ ( 'number of pixel lines to use between characters' ), 5505type ='number' , 5506varname ='p_linespace' , 5507} , 5508{ 5509cb ='did_set_lisp' , 5510defaults =false , 5511desc =[=[ 5512Lisp mode: When <Enter> is typed in insert mode set the indent for 5513the next line to Lisp standards (well, sort of). Also happens with 5514"cc" or "S". 'autoindent' must also be on for this to work. 5515Also see 'lispwords'. 5516The '-' character is included in keyword characters. Redefines the 5517"=" operator to use this same indentation algorithm rather than 5518calling an external program if 'equalprg' is empty. 5519]=] , 5520full_name ='lisp' , 5521scope ={ 'buf' } , 5522short_desc =N_ ( 'indenting for Lisp' ), 5523type ='boolean' , 5524varname ='p_lisp' , 5525} , 5526{ 5527abbreviation ='lop' , 5528validation_cb ='validate_lispoptions' , 5529defaults ='' , 5530schema ={ 5531set ={ 'expr:0' , 'expr:1' } , 5532} , 5533deny_duplicates =true , 5534desc =[=[ 5535Comma-separated list of items that influence the Lisp indenting when 5536enabled with the 'lisp' option. Currently only one item is supported: 5537expr:1 use 'indentexpr' for Lisp indenting when it is set 5538expr:0 do not use 'indentexpr' for Lisp indenting (default) 5539Note that when using 'indentexpr' the `=` operator indents all the 5540lines, otherwise the first line is not indented (Vi-compatible). 5541]=] , 5542full_name ='lispoptions' , 5543list ='onecomma' , 5544scope ={ 'buf' } , 5545short_desc =N_ ( 'options for lisp indenting' ), 5546type ='string' , 5547varname ='p_lop' , 5548} , 5549{ 5550abbreviation ='lw' , 5551defaults ={ 5552if_true =macros ( 'LISPWORD_VALUE' , 'string' ), 5553doc ='is very long' , 5554} , 5555deny_duplicates =true , 5556desc =[=[ 5557Comma-separated list of words that influence the Lisp indenting when 5558enabled with the 'lisp' option. 5559]=] , 5560full_name ='lispwords' , 5561list ='onecomma' , 5562scope ={ 'global' , 'buf' } , 5563short_desc =N_ ( 'words that change how lisp indenting works' ), 5564type ='string' , 5565varname ='p_lispwords' , 5566} , 5567{ 5568defaults =false , 5569desc =[=[ 5570List mode: By default, show tabs as ">", trailing spaces as "-", and 5571non-breakable space characters as "+". Useful to see the difference 5572between tabs and spaces and for trailing blanks. Further changed by 5573the 'listchars' option. 5574 5575When 'listchars' does not contain "tab" field, tabs are shown as "^I" 5576or "<09>", like how unprintable characters are displayed. 5577 5578The cursor is displayed at the start of the space a Tab character 5579occupies, not at the end as usual in Normal mode. To get this cursor 5580position while displaying Tabs with spaces, use: >vim 5581let &list = v:true | let &lcs = 'tab: ' 5582< 5583Note that list mode will also affect formatting (set with 'textwidth' 5584or 'wrapmargin') when 'cpoptions' includes 'L'. See 'listchars' for 5585changing the way tabs are displayed. 5586]=] , 5587full_name ='list' , 5588redraw ={ 'current_window' } , 5589scope ={ 'win' } , 5590short_desc =N_ ( '<Tab> and <EOL>' ), 5591type ='boolean' , 5592} , 5593{ 5594abbreviation ='lcs' , 5595cb ='did_set_chars_option' , 5596validation_cb ='validate_chars_option' , 5597defaults ='tab:> ,trail:-,nbsp:+' , 5598deny_duplicates =true , 5599-- 'listchars' schema: generates `lcs_tab` (the `lcs_chars` dispatch table). 5600-- "tab"/"leadtab" fill a multi-char field; "multispace"/"leadmultispace" have no single 5601-- storage (field=false) and are handled specially in set_chars_option(). 5602schema ={ 5603chars ={ 5604{ 'eol' , 'char' } , 5605{ 'extends' , 'char' , { field ='ext' } } , 5606{ 'nbsp' , 'char' } , 5607{ 'precedes' , 'char' , { field ='prec' } } , 5608{ 'space' , 'char' } , 5609{ 'tab' , 'chars' , { field ='tab2' } } , 5610{ 'leadtab' , 'chars' , { field ='leadtab2' } } , 5611{ 'lead' , 'char' } , 5612{ 'trail' , 'char' } , 5613{ 'conceal' , 'char' } , 5614{ 'multispace' , 'chars' , { field =false } } , 5615{ 'leadmultispace' , 'chars' , { field =false } } , 5616} , 5617} , 5618desc =[=[ 5619Strings to use in 'list' mode and for the |:list| command. It is a 5620comma-separated list of string settings. *E1511* 5621 5622*lcs-eol* 5623eol:c Character to show at the end of each line. When 5624omitted, there is no extra character at the end of the 5625line. 5626*lcs-tab* 5627tab:xy[z] Two or three characters to be used to show a tab. 5628The third character is optional. 5629 5630tab:xy The 'x' is always used, then 'y' as many times as will 5631fit. Thus "tab:>-" displays: > 5632> 5633>- 5634>-- 5635etc. 5636< 5637tab:xyz The 'z' is always used, then 'x' is prepended, and 5638then 'y' is used as many times as will fit. Thus 5639"tab:<->" displays: > 5640> 5641<> 5642<-> 5643<--> 5644etc. 5645< 5646When "tab:" is omitted, a tab is shown as ^I. 5647*lcs-space* 5648space:c Character to show for a space. When omitted, spaces 5649are left blank. 5650*lcs-multispace* 5651multispace:c... 5652One or more characters to use cyclically to show for 5653multiple consecutive spaces. Overrides the "space" 5654setting, except for single spaces. When omitted, the 5655"space" setting is used. For example, 5656`:set listchars=multispace:---+` shows ten consecutive 5657spaces as: > 5658---+---+-- 5659< 5660*lcs-lead* 5661lead:c Character to show for leading spaces. When omitted, 5662leading spaces are blank. Overrides the "space" and 5663"multispace" settings for leading spaces. You can 5664combine it with "tab:", for example: >vim 5665set listchars+=tab:>-,lead:. 5666< 5667*lcs-leadmultispace* *indent-guides* 5668leadmultispace:c... 5669Like the |lcs-multispace| value, but for leading 5670spaces only. Also overrides |lcs-lead| for leading 5671multiple spaces. 5672`:set listchars=leadmultispace:---+` shows ten 5673consecutive leading spaces as: > 5674---+---+--XXX 5675< 5676Where "XXX" denotes the first non-blank characters in 5677the line. 5678 5679Combined with |lcs-leadtab|, this can be used to show 5680"indentation guides" (vertical lines). 5681For example, with 'shiftwidth' 2: >vim 5682set list listchars=leadtab:\ \ │,tab:\ \ │,leadmultispace:\ \ │ 5683< For richer rendering (per-level colors, treesitter-aware 5684scopes, etc.) use a third-party plugin. 5685*lcs-leadtab* 5686leadtab:xy[z] 5687Like |lcs-tab|, but only for leading tabs. When 5688omitted, the "tab" setting is used for leading tabs. 5689|lcs-tab| must also be set for this to work. *E1572* 5690You can combine it with "tab:", for example: >vim 5691let &listchars = 'tab:>-,leadtab:. ' 5692< This shows leading tabs as periods(.) and other tabs 5693as ">--". 5694*lcs-trail* 5695trail:c Character to show for trailing spaces. When omitted, 5696trailing spaces are blank. Overrides the "space" and 5697"multispace" settings for trailing spaces. 5698*lcs-extends* 5699extends:c Character to show in the last column, when 'wrap' is 5700off and the line continues beyond the right of the 5701screen. 5702*lcs-precedes* 5703precedes:c Character to show in the first visible column of the 5704physical line, when there is text preceding the 5705character visible in the first column. 5706*lcs-conceal* 5707conceal:c Character to show in place of concealed text, when 5708'conceallevel' is set to 1. A space when omitted. 5709*lcs-nbsp* 5710nbsp:c Character to show for a non-breakable space character 5711(0xA0 (160 decimal) and U+202F). Left blank when 5712omitted. 5713 5714The characters ':' and ',' should not be used. UTF-8 characters can 5715be used. All characters must be single width. *E1512* 5716 5717Each character can be specified as hex: >vim 5718set listchars=eol:\\x24 5719set listchars=eol:\\u21b5 5720set listchars=eol:\\U000021b5 5721< Note that a double backslash is used. The number of hex characters 5722must be exactly 2 for \\x, 4 for \\u and 8 for \\U. 5723 5724Examples: >vim 5725set lcs=tab:>-,trail:- 5726set lcs=tab:>-,eol:<,nbsp:% 5727set lcs=extends:>,precedes:< 5728< |hl-NonText| highlighting will be used for "eol", "extends" and 5729"precedes". |hl-Whitespace| for "nbsp", "space", "tab", "multispace", 5730"lead" and "trail". 5731]=] , 5732expand_cb ='expand_set_chars_option' , 5733full_name ='listchars' , 5734list ='onecommacolon' , 5735redraw ={ 'current_window' } , 5736scope ={ 'global' , 'win' } , 5737short_desc =N_ ( 'characters for displaying in list mode' ), 5738type ='string' , 5739varname ='p_lcs' , 5740} , 5741{ 5742abbreviation ='lpl' , 5743defaults =true , 5744desc =[=[ 5745When on the plugin scripts are loaded when starting up |load-plugins|. 5746This option can be reset in your |vimrc| file to disable the loading 5747of plugins. 5748Note that using the "-u NONE" and "--noplugin" command line arguments 5749reset this option. |-u| |--noplugin| 5750]=] , 5751full_name ='loadplugins' , 5752scope ={ 'global' } , 5753short_desc =N_ ( 'load plugin scripts when starting up' ), 5754type ='boolean' , 5755varname ='p_lpl' , 5756} , 5757{ 5758defaults =true , 5759full_name ='magic' , 5760scope ={ 'global' } , 5761short_desc =N_ ( 'Deprecated' ), 5762type ='boolean' , 5763varname ='p_magic' , 5764} , 5765{ 5766abbreviation ='mef' , 5767defaults ='' , 5768desc =[=[ 5769Name of the errorfile for the |:make| command (see |:make_makeprg|) 5770and the |:grep| command. 5771When it is empty, an internally generated temp file will be used. 5772When "##" is included, it is replaced by a number to make the name 5773unique. This makes sure that the ":make" command doesn't overwrite an 5774existing file. 5775NOT used for the ":cf" command. See 'errorfile' for that. 5776Environment variables are expanded |:set_env|. 5777See |option-backslash| about including spaces and backslashes. 5778]=] , 5779expand =true , 5780full_name ='makeef' , 5781scope ={ 'global' } , 5782secure =true , 5783short_desc =N_ ( 'name of the errorfile for ":make"' ), 5784type ='string' , 5785varname ='p_mef' , 5786} , 5787{ 5788abbreviation ='menc' , 5789cb ='did_set_encoding' , 5790defaults ='' , 5791desc =[=[ 5792Encoding used for reading the output of external commands. When 5793empty, encoding is not converted. 5794This is used for `:make`, `:lmake`, `:grep`, `:lgrep`, `:grepadd`, 5795`:lgrepadd`, `:cfile`, `:cgetfile`, `:caddfile`, `:lfile`, `:lgetfile`, 5796and `:laddfile`. 5797 5798This would be mostly useful when you use MS-Windows. If iconv is 5799enabled, setting 'makeencoding' to "char" has the same effect as 5800setting to the system locale encoding. Example: >vim 5801set makeencoding=char " system locale is used 5802< 5803]=] , 5804expand_cb ='expand_set_encoding' , 5805full_name ='makeencoding' , 5806scope ={ 'global' , 'buf' } , 5807short_desc =N_ ( 'Converts the output of external commands' ), 5808type ='string' , 5809varname ='p_menc' , 5810} , 5811{ 5812abbreviation ='mp' , 5813defaults ='make' , 5814desc =[=[ 5815Program to use for the ":make" command. See |:make_makeprg|. 5816This option may contain '%' and '#' characters (see |:_%| and |:_#|), 5817which are expanded to the current and alternate file name. Use |::S| 5818to escape file names in case they contain special characters. 5819Environment variables are expanded |:set_env|. See |option-backslash| 5820about including spaces and backslashes. 5821Note that a '|' must be escaped twice: once for ":set" and once for 5822the interpretation of a command. When you use a filter called 5823"myfilter" do it like this: >vim 5824set makeprg=gmake\ \\\|\ myfilter 5825< The placeholder "$*" can be given (even multiple times) to specify 5826where the arguments will be included, for example: >vim 5827set makeprg=latex\ \\\\nonstopmode\ \\\\input\\{$*} 5828< 5829]=] , 5830expand =true , 5831full_name ='makeprg' , 5832scope ={ 'global' , 'buf' } , 5833secure =true , 5834short_desc =N_ ( 'program to use for the ":make" command' ), 5835type ='string' , 5836varname ='p_mp' , 5837} , 5838{ 5839abbreviation ='mps' , 5840validation_cb ='validate_matchpairs' , 5841defaults ='(:),{:},[:]' , 5842deny_duplicates =true , 5843desc =[=[ 5844Characters that form pairs. The |%| command jumps from one to the 5845other. 5846Only character pairs are allowed that are different, thus you cannot 5847jump between two double quotes. 5848The characters must be separated by a colon. 5849The pairs must be separated by a comma. Example for including '<' and 5850'>' (for HTML): >vim 5851set mps+=<:> 5852 5853< A more exotic example, to jump between the '=' and ';' in an 5854assignment, useful for languages like C and Java: >vim 5855au FileType c,cpp,java set mps+==:; 5856 5857< For a more advanced way of using "%", see the matchit.vim plugin in 5858the $VIMRUNTIME/plugin directory. |add-local-help| 5859]=] , 5860full_name ='matchpairs' , 5861list ='onecomma' , 5862scope ={ 'buf' } , 5863short_desc =N_ ( 'pairs of characters that "%" can match' ), 5864type ='string' , 5865varname ='p_mps' , 5866} , 5867{ 5868abbreviation ='mat' , 5869defaults =5 , 5870desc =[=[ 5871Tenths of a second to show the matching paren, when 'showmatch' is 5872set. Note that this is not in milliseconds, like other options that 5873set a time. This is to be compatible with Nvi. 5874]=] , 5875full_name ='matchtime' , 5876scope ={ 'global' } , 5877short_desc =N_ ( 'tenths of a second to show matching paren' ), 5878type ='number' , 5879varname ='p_mat' , 5880} , 5881{ 5882abbreviation ='mco' , 5883defaults =macros ( 'MAX_MCO' , 'number' ), 5884full_name ='maxcombine' , 5885scope ={ 'global' } , 5886short_desc =N_ ( 'maximum nr of combining characters displayed' ), 5887type ='number' , 5888varname ='p_mco' , 5889} , 5890{ 5891abbreviation ='mfd' , 5892defaults =100 , 5893desc =[=[ 5894Maximum depth of function calls for user functions. This normally 5895catches endless recursion. When using a recursive function with 5896more depth, set 'maxfuncdepth' to a bigger number. But this will use 5897more memory, there is the danger of failing when memory is exhausted. 5898Increasing this limit above 200 also changes the maximum for Ex 5899command recursion, see |E169|. 5900See also |:function|. 5901Also used for maximum depth of callback functions. 5902]=] , 5903full_name ='maxfuncdepth' , 5904scope ={ 'global' } , 5905short_desc =N_ ( 'maximum recursive depth for user functions' ), 5906type ='number' , 5907varname ='p_mfd' , 5908} , 5909{ 5910abbreviation ='mmd' , 5911defaults =1000 , 5912desc =[=[ 5913Maximum number of times a mapping is done without resulting in a 5914character to be used. This normally catches endless mappings, like 5915":map x y" with ":map y x". It still does not catch ":map g wg", 5916because the 'w' is used before the next mapping is done. See also 5917|key-mapping|. 5918]=] , 5919full_name ='maxmapdepth' , 5920scope ={ 'global' } , 5921short_desc =N_ ( 'maximum recursive depth for mapping' ), 5922tags ={ 'E223' } , 5923type ='number' , 5924varname ='p_mmd' , 5925} , 5926{ 5927abbreviation ='mmp' , 5928defaults =1000 , 5929desc =[=[ 5930Maximum amount of memory (in Kbyte) to use for pattern matching. 5931The maximum value is about 2000000. Use this to work without a limit. 5932*E363* 5933When Vim runs into the limit it gives an error message and mostly 5934behaves like CTRL-C was typed. 5935Running into the limit often means that the pattern is very 5936inefficient or too complex. This may already happen with the pattern 5937`\(.\)*` on a very long line. `.*` works much better. 5938Might also happen on redraw, when syntax rules try to match a complex 5939text structure. 5940Vim may run out of memory before hitting the 'maxmempattern' limit, in 5941which case you get an "Out of memory" error instead. 5942]=] , 5943full_name ='maxmempattern' , 5944scope ={ 'global' } , 5945short_desc =N_ ( 'maximum memory (in Kbyte) used for pattern search' ), 5946type ='number' , 5947varname ='p_mmp' , 5948} , 5949{ 5950abbreviation ='msc' , 5951defaults =999 , 5952desc =[=[ 5953Maximum number of matches shown for the search count status |shm-S| 5954When the number of matches exceeds this value, Vim shows ">" instead 5955of the exact count to keep searching fast. 5956Note: larger values may impact performance. 5957The value must be between 1 and 9999. See also the |searchcount()| 5958function. 5959]=] , 5960full_name ='maxsearchcount' , 5961scope ={ 'global' } , 5962short_desc =N_ ( 'maximum number for the search count feature' ), 5963type ='number' , 5964varname ='p_msc' , 5965} , 5966{ 5967abbreviation ='mis' , 5968defaults =25 , 5969desc =[=[ 5970Maximum number of items to use in a menu. Used for menus that are 5971generated from a list of items, e.g., the Buffers menu. Changing this 5972option has no direct effect, the menu must be refreshed first. 5973]=] , 5974full_name ='menuitems' , 5975scope ={ 'global' } , 5976short_desc =N_ ( 'maximum number of items in a menu' ), 5977type ='number' , 5978varname ='p_mis' , 5979} , 5980{ 5981abbreviation ='mopt' , 5982cb ='did_set_messagesopt' , 5983defaults ='hit-enter,history:500,progress:c' , 5984schema ={ 5985dict ={ 5986'hit-enter' , 5987{ 'history' , 'num' } , 5988{ 'maxheight' , 'num' } , 5989{ 'pager' , 'str' } , 5990{ 'progress' , 'enum' , { values ={ '' , 'c' } } } , 5991{ 'timeout' , 'num' } , 5992{ 'wait' , 'num' } , 5993} , 5994} , 5995deny_duplicates =true , 5996desc =[=[ 5997Option settings for outputting messages. It can consist of the 5998following items. Items must be separated by a comma. 5999 6000history:{n} Determines how many entries are remembered in the 6001|:messages| history. The maximum value is 10000. 6002Setting it to zero clears the message history. 6003This item must always be present. 6004 6005hit-enter Use a |hit-enter| prompt when the message is longer than 6006'cmdheight' size. 6007 6008maxheight:{n} |ui2| only. Maximum height of the expanded cmdline 6009for message display, as a percentage of 'lines'. 6010A message longer than this is "collapsed", with 6011a `[+x]` "spill" indicator. (default: 50) 6012 6013pager:{key} |ui2| only. Key that enters the message pager after an 6014interactive |:| command showed a collapsed message. Use 6015|key-notation|, e.g. `<CR>`. A literal comma must be 6016given as "<Char-44>". Empty: no such key. 6017 6018progress:{s} Determines where to show progress messages. 6019Valid values are: 6020- empty: Progress messages not shown in cmdline. 6021- "c": Progress messages are shown in cmdline. 6022 6023timeout:{n} |ui2| only. Time in milliseconds that a message is 6024visible in the message window. 6025 6026wait:{n} Deprecated with |ui2|. 6027Instead of a |hit-enter| prompt, simply wait for {n} 6028milliseconds so the user has a chance to read the 6029message. Maximum {n} is 10000. Use 0 to disable the 6030wait (user won't see any "hit-enter" messages). 6031Ignored when "hit-enter" is present, but required when 6032"hit-enter" is not present. 6033]=] , 6034full_name ='messagesopt' , 6035list ='onecommacolon' , 6036scope ={ 'global' } , 6037short_desc =N_ ( 'options for outputting messages' ), 6038type ='string' , 6039varname ='p_mopt' , 6040} , 6041{ 6042abbreviation ='msm' , 6043validation_cb ='validate_mkspellmem' , 6044defaults ='460000,2000,500' , 6045desc =[=[ 6046Parameters for |:mkspell|. This tunes when to start compressing the 6047word tree. Compression can be slow when there are many words, but 6048it's needed to avoid running out of memory. The amount of memory used 6049per word depends very much on how similar the words are, that's why 6050this tuning is complicated. 6051 6052There are three numbers, separated by commas: > 6053{start},{inc},{added} 6054< 6055For most languages the uncompressed word tree fits in memory. {start} 6056gives the amount of memory in Kbyte that can be used before any 6057compression is done. It should be a bit smaller than the amount of 6058memory that is available to Vim. 6059 6060When going over the {start} limit the {inc} number specifies the 6061amount of memory in Kbyte that can be allocated before another 6062compression is done. A low number means compression is done after 6063less words are added, which is slow. A high number means more memory 6064will be allocated. 6065 6066After doing compression, {added} times 1024 words can be added before 6067the {inc} limit is ignored and compression is done when any extra 6068amount of memory is needed. A low number means there is a smaller 6069chance of hitting the {inc} limit, less memory is used but it's 6070slower. 6071 6072The languages for which these numbers are important are Italian and 6073Hungarian. The default works for when you have about 512 Mbyte. If 6074you have 1 Gbyte you could use: >vim 6075set mkspellmem=900000,3000,800 6076< If you have less than 512 Mbyte |:mkspell| may fail for some 6077languages, no matter what you set 'mkspellmem' to. 6078Environment variables are expanded |:set_env|. 6079]=] , 6080expand =true , 6081full_name ='mkspellmem' , 6082scope ={ 'global' } , 6083secure =true , 6084short_desc =N_ ( 'memory used before |:mkspell| compresses the tree' ), 6085type ='string' , 6086varname ='p_msm' , 6087} , 6088{ 6089abbreviation ='ml' , 6090defaults ={ 6091if_true =true , 6092doc ='on (off for root)' , 6093} , 6094desc =[=[ 6095If 'modeline' is on 'modelines' gives the number of lines that is 6096checked for set commands. If 'modeline' is off or 'modelines' is zero 6097no lines are checked. See |modeline|. 6098]=] , 6099full_name ='modeline' , 6100scope ={ 'buf' } , 6101short_desc =N_ ( 'recognize modelines at start or end of file' ), 6102type ='boolean' , 6103varname ='p_ml' , 6104} , 6105{ 6106abbreviation ='mle' , 6107defaults =false , 6108desc =[=[ 6109When on allow some options that are an expression to be set in the 6110modeline. Check the option for whether it is affected by 6111'modelineexpr'. Also see |modeline|. 6112]=] , 6113full_name ='modelineexpr' , 6114scope ={ 'global' } , 6115secure =true , 6116short_desc =N_ ( 'allow some options to be set in modeline' ), 6117type ='boolean' , 6118varname ='p_mle' , 6119} , 6120{ 6121abbreviation ='mls' , 6122defaults =5 , 6123desc =[=[ 6124If 'modeline' is on 'modelines' gives the number of lines that is 6125checked for set commands. If 'modeline' is off or 'modelines' is zero 6126no lines are checked. See |modeline|. 6127]=] , 6128full_name ='modelines' , 6129scope ={ 'global' } , 6130short_desc =N_ ( 'number of lines checked for modelines' ), 6131type ='number' , 6132varname ='p_mls' , 6133} , 6134{ 6135abbreviation ='ma' , 6136cb ='did_set_modifiable' , 6137defaults =true , 6138desc =[=[ 6139When off the buffer contents cannot be changed. The 'fileformat' and 6140'fileencoding' options also can't be changed. 6141Can be reset on startup with the |-M| command line argument. 6142]=] , 6143full_name ='modifiable' , 6144noglob =true , 6145scope ={ 'buf' } , 6146short_desc =N_ ( 'changes to the text are not possible' ), 6147tags ={ 'E21' } , 6148type ='boolean' , 6149varname ='p_ma' , 6150} , 6151{ 6152abbreviation ='mod' , 6153cb ='did_set_modified' , 6154defaults =false , 6155desc =[=[ 6156When on, the buffer is considered to be modified. This option is set 6157when: 61581. A change was made to the text since it was last written. Using the 6159|undo| command to go back to the original text will reset the 6160option. But undoing changes that were made before writing the 6161buffer will set the option again, since the text is different from 6162when it was written. 61632. 'fileformat' or 'fileencoding' is different from its original 6164value. The original value is set when the buffer is read or 6165written. A ":set nomodified" command also resets the original 6166values to the current values and the 'modified' option will be 6167reset. 6168Similarly for 'eol' and 'bomb'. 6169This option is not set when a change is made to the buffer as the 6170result of a BufNewFile, BufRead/BufReadPost, BufWritePost, 6171FileAppendPost or VimLeave autocommand event. See |gzip-example| for 6172an explanation. 6173 6174When 'buftype' is "prompt", 'modified' is not implicitly set when the 6175buffer is changed, but a user or plugin may explicitly set it. 6176 6177When 'buftype' is "nowrite" or "nofile", this option may be set, but 6178will be ignored. 6179 6180Note that the text may actually be the same, e.g. 'modified' is set 6181when using "rA" on an "A". 6182]=] , 6183full_name ='modified' , 6184no_mkrc =true , 6185redraw ={ 'statuslines' } , 6186scope ={ 'buf' } , 6187short_desc =N_ ( 'buffer has been modified' ), 6188type ='boolean' , 6189varname ='p_mod' , 6190} , 6191{ 6192defaults =true , 6193desc =[=[ 6194When on, listings pause when the whole screen is filled. You will get 6195the |more-prompt|. When this option is off there are no pauses, the 6196listing continues until finished. 6197]=] , 6198full_name ='more' , 6199scope ={ 'global' } , 6200short_desc =N_ ( 'listings when the whole screen is filled' ), 6201type ='boolean' , 6202varname ='p_more' , 6203} , 6204{ 6205validation_cb ='validate_mouse' , 6206defaults ='nvi' , 6207desc =[=[ 6208Enables mouse support. For example, to enable the mouse in Normal mode 6209and Visual mode: >vim 6210set mouse=nv 6211< 6212To temporarily disable mouse support, hold the shift key while using 6213the mouse. 6214 6215Mouse support can be enabled for different modes: 6216n Normal mode 6217v Visual mode 6218i Insert mode 6219c Command-line mode 6220h all previous modes when editing a help file 6221a all previous modes 6222r for |hit-enter| and |more-prompt| prompt 6223 6224Left-click anywhere in a text buffer to place the cursor there. This 6225works with operators too, e.g. type |d| then left-click to delete text 6226from the current cursor position to the position where you clicked. 6227 6228Drag the |status-line| or vertical separator of a window to resize it. 6229 6230If enabled for "v" (Visual mode) then double-click selects word-wise, 6231triple-click makes it line-wise, and quadruple-click makes it 6232rectangular block-wise. 6233 6234For scrolling with a mouse wheel see |scroll-mouse-wheel|. 6235 6236Note: When enabling the mouse in a terminal, copy/paste will use the 6237"* register if possible. See also 'clipboard'. 6238 6239Related options: 6240'mousefocus' window focus follows mouse pointer 6241'mousemodel' what mouse button does which action 6242'mousehide' hide mouse pointer while typing text 6243'selectmode' whether to start Select mode or Visual mode 6244]=] , 6245expand_cb ='expand_set_mouse' , 6246-- Generates kMouse* flag constants. MOUSE_A/MOUSE_ALL stay hand-defined in option_vars.h. 6247schema ={ 6248flagchars ={ 6249normal ='n' , -- use mouse in Normal mode 6250visual ='v' , -- use mouse in Visual/Select mode 6251insert ='i' , -- use mouse in Insert mode 6252command ='c' , -- use mouse in Command-line mode 6253help ='h' , -- use mouse in help buffers 6254[ 'return' ] ='r' , -- use mouse for hit-return message 6255none =' ' , -- don't use Visual selection 6256nonef ='x' , -- forced modeless selection 6257} , 6258} , 6259full_name ='mouse' , 6260list ='flags' , 6261scope ={ 'global' } , 6262short_desc =N_ ( 'the use of mouse clicks' ), 6263type ='string' , 6264varname ='p_mouse' , 6265} , 6266{ 6267abbreviation ='mousef' , 6268defaults =false , 6269desc =[=[ 6270The window that the mouse pointer is on is automatically activated. 6271When changing the window layout or window focus in another way, the 6272mouse pointer is moved to the window with keyboard focus. Off is the 6273default because it makes using the pull down menus a little goofy, as 6274a pointer transit may activate a window unintentionally. 6275]=] , 6276full_name ='mousefocus' , 6277redraw ={ 'ui_option' } , 6278scope ={ 'global' } , 6279short_desc =N_ ( 'keyboard focus follows the mouse' ), 6280type ='boolean' , 6281varname ='p_mousef' , 6282} , 6283{ 6284abbreviation ='mh' , 6285defaults =true , 6286desc =[=[ 6287only in the GUI 6288When on, the mouse pointer is hidden when characters are typed. 6289The mouse pointer is restored when the mouse is moved. 6290]=] , 6291full_name ='mousehide' , 6292redraw ={ 'ui_option' } , 6293scope ={ 'global' } , 6294short_desc =N_ ( 'hide mouse pointer while typing' ), 6295type ='boolean' , 6296varname ='p_mh' , 6297} , 6298{ 6299abbreviation ='mousem' , 6300validation_cb ='validate_str_generic' , 6301defaults ='popup_setpos' , 6302schema ={ 6303enum ={ 'extend' , 'popup' , 'popup_setpos' } , 6304} , 6305desc =[=[ 6306Sets the model to use for the mouse. The name mostly specifies what 6307the right mouse button is used for: 6308extend Right mouse button extends a selection. This works 6309like in an xterm. 6310popup Right mouse button pops up a menu. The shifted left 6311mouse button extends a selection. This works like 6312with Microsoft Windows. 6313popup_setpos Like "popup", but the cursor will be moved to the 6314position where the mouse was clicked, and thus the 6315selected operation will act upon the clicked object. 6316If clicking inside a selection, that selection will 6317be acted upon, i.e. no cursor move. This implies of 6318course, that right clicking outside a selection will 6319end Visual mode. 6320 6321For a detailed description of 'mousemodel' behaviour see 6322|mouse-mode-table|. Overview of what button does what for each model: 6323 6324mouse extend popup(_setpos) ~ 6325left click place cursor place cursor 6326left drag start selection start selection 6327shift-left search word extend selection 6328right click extend selection popup menu (place cursor) 6329right drag extend selection - 6330middle click paste paste 6331 6332In the "popup" model the right mouse button produces a pop-up menu. 6333Nvim creates a default |popup-menu| but you can redefine it. 6334 6335Note that you can further refine the meaning of buttons with mappings. 6336See |mouse-overview|. But mappings are NOT used for modeless selection. 6337 6338Example: >vim 6339map <S-LeftMouse> <RightMouse> 6340map <S-LeftDrag> <RightDrag> 6341map <S-LeftRelease> <RightRelease> 6342map <2-S-LeftMouse> <2-RightMouse> 6343map <2-S-LeftDrag> <2-RightDrag> 6344map <2-S-LeftRelease> <2-RightRelease> 6345map <3-S-LeftMouse> <3-RightMouse> 6346map <3-S-LeftDrag> <3-RightDrag> 6347map <3-S-LeftRelease> <3-RightRelease> 6348map <4-S-LeftMouse> <4-RightMouse> 6349map <4-S-LeftDrag> <4-RightDrag> 6350map <4-S-LeftRelease> <4-RightRelease> 6351< 6352Mouse commands requiring the CTRL modifier can be simulated by typing 6353the "g" key before using the mouse: 6354"g<LeftMouse>" is "<C-LeftMouse> (jump to tag under mouse click) 6355"g<RightMouse>" is "<C-RightMouse> ("CTRL-T") 6356]=] , 6357full_name ='mousemodel' , 6358scope ={ 'global' } , 6359short_desc =N_ ( 'changes meaning of mouse buttons' ), 6360type ='string' , 6361varname ='p_mousem' , 6362} , 6363{ 6364abbreviation ='mousemev' , 6365defaults =false , 6366desc =[=[ 6367When on, mouse move events are delivered to the input queue and are 6368available for mapping |<MouseMove>|. The default, off, avoids the 6369mouse movement overhead except when needed. 6370Warning: Setting this option can make pending mappings to be aborted 6371when the mouse is moved. 6372]=] , 6373full_name ='mousemoveevent' , 6374redraw ={ 'ui_option' } , 6375scope ={ 'global' } , 6376short_desc =N_ ( 'deliver mouse move events to input queue' ), 6377tags ={ 'mouse-hover' } , 6378type ='boolean' , 6379varname ='p_mousemev' , 6380} , 6381{ 6382cb ='did_set_mousescroll' , 6383validation_cb ='validate_mousescroll' , 6384defaults ='ver:3,hor:6' , 6385schema ={ 6386dict ={ { 'hor' , 'num' } , { 'ver' , 'num' } } , 6387} , 6388desc =[=[ 6389This option controls the number of lines / columns to scroll by when 6390scrolling with a mouse wheel (|scroll-mouse-wheel|). The option is 6391a comma-separated list. Each part consists of a direction and a count 6392as follows: 6393direction:count,direction:count 6394Direction is one of either "hor" or "ver". "hor" controls horizontal 6395scrolling and "ver" controls vertical scrolling. Count sets the amount 6396to scroll by for the given direction, it should be a non negative 6397integer. Each direction should be set at most once. If a direction 6398is omitted, a default value is used (6 for horizontal scrolling and 3 6399for vertical scrolling). You can disable mouse scrolling by using 6400a count of 0. 6401 6402Example: >vim 6403set mousescroll=ver:5,hor:2 6404< Will make Nvim scroll 5 lines at a time when scrolling vertically, and 6405scroll 2 columns at a time when scrolling horizontally. 6406]=] , 6407full_name ='mousescroll' , 6408list ='comma' , 6409scope ={ 'global' } , 6410short_desc =N_ ( 'amount to scroll by when scrolling with a mouse' ), 6411tags ={ 'E5080' } , 6412type ='string' , -- OptKeyDict_mousescroll 6413varname ='p_mousescroll' , 6414vi_def =true , 6415} , 6416{ 6417abbreviation ='mouses' , 6418deny_duplicates =true , 6419defaults ={ 6420if_true ='' , 6421doc =[["i:beam,r:beam,s:updown,sd:cross, 6422m:no,ml:up-arrow,v:rightup-arrow"]] , 6423} , 6424desc =[=[ 6425This option tells Vim what the mouse pointer should look like in 6426different modes. The option is a comma-separated list of parts, much 6427like used for 'guicursor'. Each part consist of a mode/location-list 6428and an argument-list: 6429mode-list:shape,mode-list:shape,.. 6430The mode-list is a dash separated list of these modes/locations: 6431In a normal window: ~ 6432n Normal mode 6433v Visual mode 6434ve Visual mode with 'selection' "exclusive" (same as 'v', 6435if not specified) 6436o Operator-pending mode 6437i Insert mode 6438r Replace mode 6439 6440Others: ~ 6441c appending to the command-line 6442ci inserting in the command-line 6443cr replacing in the command-line 6444m at the 'Hit ENTER' or 'More' prompts 6445ml idem, but cursor in the last line 6446e any mode, pointer below last window 6447s any mode, pointer on a status line 6448sd any mode, while dragging a status line 6449vs any mode, pointer on a vertical separator line 6450vd any mode, while dragging a vertical separator line 6451a everywhere 6452 6453The shape is one of the following: 6454avail name looks like ~ 6455w x arrow Normal mouse pointer 6456w x blank no pointer at all (use with care!) 6457w x beam I-beam 6458w x updown up-down sizing arrows 6459w x leftright left-right sizing arrows 6460w x busy The system's usual busy pointer 6461w x no The system's usual "no input" pointer 6462x udsizing indicates up-down resizing 6463x lrsizing indicates left-right resizing 6464x crosshair like a big thin + 6465x hand1 black hand 6466x hand2 white hand 6467x pencil what you write with 6468x question big ? 6469x rightup-arrow arrow pointing right-up 6470w x up-arrow arrow pointing up 6471x <number> any X11 pointer number (see X11/cursorfont.h) 6472 6473The "avail" column contains a 'w' if the shape is available for Win32, 6474x for X11. 6475Any modes not specified or shapes not available use the normal mouse 6476pointer. 6477 6478Example: >vim 6479set mouseshape=s:udsizing,m:no 6480< will make the mouse turn to a sizing arrow over the status lines and 6481indicate no input when the hit-enter prompt is displayed (since 6482clicking the mouse has no effect in this state.) 6483]=] , 6484full_name ='mouseshape' , 6485list ='onecomma' , 6486scope ={ 'global' } , 6487short_desc =N_ ( 'shape of the mouse pointer in different modes' ), 6488tags ={ 'E547' } , 6489type ='string' , 6490immutable =true , 6491} , 6492{ 6493abbreviation ='mouset' , 6494defaults =500 , 6495desc =[=[ 6496Defines the maximum time in msec between two mouse clicks for the 6497second click to be recognized as a multi click. 6498]=] , 6499full_name ='mousetime' , 6500scope ={ 'global' } , 6501short_desc =N_ ( 'max time between mouse double-click' ), 6502type ='number' , 6503varname ='p_mouset' , 6504} , 6505{ 6506abbreviation ='nf' , 6507validation_cb ='validate_str_generic' , 6508defaults ='bin,hex' , 6509schema ={ 6510set ={ 'bin' , 'octal' , 'hex' , 'alpha' , 'unsigned' , 'blank' } , 6511} , 6512deny_duplicates =true , 6513desc =[=[ 6514This defines what bases Vim will consider for numbers when using the 6515CTRL-A and CTRL-X commands for adding to and subtracting from a number 6516respectively; see |CTRL-A| for more info on these commands. 6517alpha If included, single alphabetical characters will be 6518incremented or decremented. This is useful for a list with a 6519letter index a), b), etc. *octal-nrformats* 6520octal If included, numbers that start with a zero will be considered 6521to be octal. Example: Using CTRL-A on "007" results in "010". 6522hex If included, numbers starting with "0x" or "0X" will be 6523considered to be hexadecimal. Example: Using CTRL-X on 6524"0x100" results in "0x0ff". 6525bin If included, numbers starting with "0b" or "0B" will be 6526considered to be binary. Example: Using CTRL-X on 6527"0b1000" subtracts one, resulting in "0b0111". 6528unsigned If included, numbers are recognized as unsigned. Thus a 6529leading dash or negative sign won't be considered as part of 6530the number. Examples: 6531Using CTRL-X on "2020" in "9-2020" results in "9-2019" 6532(without "unsigned" it would become "9-2021"). 6533Using CTRL-A on "2020" in "9-2020" results in "9-2021" 6534(without "unsigned" it would become "9-2019"). 6535Using CTRL-X on "0" or CTRL-A on "18446744073709551615" 6536(2^64 - 1) has no effect, overflow is prevented. 6537blank If included, treat numbers as signed or unsigned based on 6538preceding whitespace. If a number with a leading dash has its 6539dash immediately preceded by a non-whitespace character (i.e., 6540not a tab or a " "), the negative sign won't be considered as 6541part of the number. For example: 6542Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15" 6543(without "blank" it would become "Carbon-13"). 6544Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9" 6545(because -8 is preceded by whitespace. If "unsigned" was 6546set, it would result in "Carbon -7"). 6547If this format is included, overflow is prevented as if 6548"unsigned" were set. If both this format and "unsigned" are 6549included, "unsigned" will take precedence. 6550 6551Numbers which simply begin with a digit in the range 1-9 are always 6552considered decimal. This also happens for numbers that are not 6553recognized as octal or hex. 6554]=] , 6555full_name ='nrformats' , 6556list ='onecomma' , 6557scope ={ 'buf' } , 6558short_desc =N_ ( 'number formats recognized for CTRL-A command' ), 6559type ='string' , 6560varname ='p_nf' , 6561} , 6562{ 6563abbreviation ='nu' , 6564cb ='did_set_number_relativenumber' , 6565defaults =false , 6566desc =[=[ 6567Print the line number in front of each line. When the 'n' option is 6568excluded from 'cpoptions' a wrapped line will not use the column of 6569line numbers. 6570Use the 'numberwidth' option to adjust the room for the line number. 6571When a long, wrapped line doesn't start with the first character, '-' 6572characters are put before the number. 6573For highlighting see |hl-LineNr|, |hl-CursorLineNr|, and the 6574|:sign-define| "numhl" argument. 6575*number_relativenumber* 6576The 'relativenumber' option changes the displayed number to be 6577relative to the cursor. Together with 'number' there are these 6578four combinations (cursor in line 3): 6579 6580'nonu' 'nu' 'nonu' 'nu' 6581'nornu' 'nornu' 'rnu' 'rnu' 6582> 6583|apple | 1 apple | 2 apple | 2 apple 6584|pear | 2 pear | 1 pear | 1 pear 6585|nobody | 3 nobody | 0 nobody |3 nobody 6586|there | 4 there | 1 there | 1 there 6587< 6588]=] , 6589full_name ='number' , 6590redraw ={ 'current_window' } , 6591scope ={ 'win' } , 6592short_desc =N_ ( 'print the line number in front of each line' ), 6593type ='boolean' , 6594} , 6595{ 6596abbreviation ='nuw' , 6597cb ='did_set_numberwidth' , 6598defaults =4 , 6599desc =[=[ 6600Minimal number of columns to use for the line number. Only relevant 6601when the 'number' or 'relativenumber' option is set or printing lines 6602with a line number. Since one space is always between the number and 6603the text, there is one less character for the number itself. 6604The value is the minimum width. A bigger width is used when needed to 6605fit the highest line number in the buffer respectively the number of 6606rows in the window, depending on whether 'number' or 'relativenumber' 6607is set. Thus with the Vim default of 4 there is room for a line 6608number up to 999. When the buffer has 1000 lines five columns will be 6609used. The minimum value is 1, the maximum value is 20. 6610]=] , 6611full_name ='numberwidth' , 6612redraw ={ 'current_window' } , 6613scope ={ 'win' } , 6614short_desc =N_ ( 'number of columns used for the line number' ), 6615type ='number' , 6616} , 6617{ 6618abbreviation ='ofu' , 6619defaults ='' , 6620desc =[=[ 6621This option specifies a function to be used for Insert mode omni 6622completion with CTRL-X CTRL-O. |i_CTRL-X_CTRL-O| 6623See |complete-functions| for an explanation of how the function is 6624invoked and what it should return. The value can be the name of a 6625function, a |lambda| or a |Funcref|. See |option-value-function| for 6626more information. 6627This option is usually set by a filetype plugin: 6628|:filetype-plugin-on| 6629]=] , 6630full_name ='omnifunc' , 6631scope ={ 'buf' } , 6632secure =true , 6633short_desc =N_ ( 'function for filetype-specific completion' ), 6634type ='func' , 6635varname ='p_ofu' , 6636} , 6637{ 6638abbreviation ='odev' , 6639defaults =false , 6640desc =[=[ 6641only for Windows 6642Enable reading and writing from devices. This may get Vim stuck on a 6643device that can be opened but doesn't actually do the I/O. Therefore 6644it is off by default. 6645Note that on Windows editing "aux.h", "lpt1.txt" and the like also 6646result in editing a device. 6647]=] , 6648full_name ='opendevice' , 6649scope ={ 'global' } , 6650short_desc =N_ ( 'allow reading/writing devices on MS-Windows' ), 6651type ='boolean' , 6652immutable =true , 6653} , 6654{ 6655abbreviation ='opfunc' , 6656defaults ='' , 6657desc =[=[ 6658This option specifies a function to be called by the |g@| operator. 6659See |:map-operator| for more info and an example. The value can be 6660the name of a function, a |lambda| or a |Funcref|. See 6661|option-value-function| for more information. 6662]=] , 6663full_name ='operatorfunc' , 6664scope ={ 'global' } , 6665secure =true , 6666short_desc =N_ ( 'function to be called for |g@| operator' ), 6667type ='func' , 6668varname ='p_opfunc' , 6669} , 6670{ 6671abbreviation ='plf' , 6672defaults ='$XDG_CONFIG_HOME/nvim/nvim-pack-lock.json' , 6673deny_duplicates =true , 6674desc =[=[ 6675Path of |vim.pack-lockfile|. Must be set before the first usage of any 6676|vim.pack| function. Environment variables are expanded |:set_env|. 6677]=] , 6678expand ='nodefault' , 6679full_name ='packlockfile' , 6680scope ={ 'global' } , 6681secure =true , 6682short_desc =N_ ( 'path of vim.pack lockfile' ), 6683type ='string' , 6684varname ='p_plf' , 6685} , 6686{ 6687abbreviation ='pp' , 6688cb ='did_set_runtimepackpath' , 6689defaults ={ 6690if_true ='' , 6691doc ="see 'runtimepath'" , 6692meta ='...' , 6693} , 6694deny_duplicates =true , 6695desc =[=[ 6696Directories used to find packages. 6697See |packages| and |packages-runtimepath|. 6698Environment variables are expanded |:set_env|. 6699]=] , 6700expand =true , 6701full_name ='packpath' , 6702list ='onecomma' , 6703scope ={ 'global' } , 6704secure =true , 6705short_desc =N_ ( 'list of directories used for packages' ), 6706type ='string' , 6707varname ='p_pp' , 6708} , 6709{ 6710abbreviation ='para' , 6711defaults ='IPLPPPQPP TPHPLIPpLpItpplpipbp' , 6712desc =[=[ 6713Specifies the nroff macros that separate paragraphs. These are pairs 6714of two letters (see |object-motions|). 6715]=] , 6716full_name ='paragraphs' , 6717scope ={ 'global' } , 6718short_desc =N_ ( 'nroff macros that separate paragraphs' ), 6719type ='string' , 6720varname ='p_para' , 6721} , 6722{ 6723cb ='did_set_paste' , 6724defaults =false , 6725full_name ='paste' , 6726pri_mkrc =true , 6727scope ={ 'global' } , 6728short_desc =N_ ( 'Deprecated' ), 6729type ='boolean' , 6730varname ='p_paste' , 6731} , 6732{ 6733abbreviation ='pt' , 6734defaults ='' , 6735full_name ='pastetoggle' , 6736scope ={ 'global' } , 6737short_desc =N_ ( 'Deprecated' ), 6738type ='string' , 6739immutable =true , 6740} , 6741{ 6742abbreviation ='pex' , 6743defaults ='' , 6744desc =[=[ 6745Expression which is evaluated to apply a patch to a file and generate 6746the resulting new version of the file. See |diff-patchexpr|. 6747]=] , 6748full_name ='patchexpr' , 6749scope ={ 'global' } , 6750secure =true , 6751short_desc =N_ ( 'expression used to patch a file' ), 6752type ='expr' , 6753varname ='p_pex' , 6754} , 6755{ 6756abbreviation ='pm' , 6757validation_cb ='validate_backupext_or_patchmode' , 6758defaults ='' , 6759desc =[=[ 6760When non-empty the oldest version of a file is kept. This can be used 6761to keep the original version of a file if you are changing files in a 6762source distribution. Only the first time that a file is written a 6763copy of the original file will be kept. The name of the copy is the 6764name of the original file with the string in the 'patchmode' option 6765appended. This option should start with a dot. Use a string like 6766".orig" or ".org". 'backupdir' must not be empty for this to work 6767(Detail: The backup file is renamed to the patchmode file after the 6768new file has been successfully written, that's why it must be possible 6769to write a backup file). If there was no file to be backed up, an 6770empty file is created. 6771When the 'backupskip' pattern matches, a patchmode file is not made. 6772Using 'patchmode' for compressed files appends the extension at the 6773end (e.g., "file.gz.orig"), thus the resulting name isn't always 6774recognized as a compressed file. 6775Only normal file name characters can be used, `/\*?[|<>` are illegal. 6776]=] , 6777full_name ='patchmode' , 6778normal_fname_chars =true , 6779scope ={ 'global' } , 6780short_desc =N_ ( 'keep the oldest version of a file' ), 6781tags ={ 'E205' , 'E206' } , 6782type ='string' , 6783varname ='p_pm' , 6784} , 6785{ 6786abbreviation ='pa' , 6787defaults ='.,,' , 6788deny_duplicates =true , 6789desc =[=[ 6790This is a list of directories which will be searched when using the 6791|gf|, [f, ]f, ^Wf, |:find|, |:sfind|, |:tabfind| and other commands, 6792provided that the file being searched for has a relative path (not 6793starting with "/", "./" or "../"). The directories in the 'path' 6794option may be relative or absolute. 6795- Use commas to separate directory names: >vim 6796set path=.,/usr/local/include,/usr/include 6797< - Spaces can also be used to separate directory names. To have a 6798space in a directory name, precede it with an extra backslash, and 6799escape the space: >vim 6800set path=.,/dir/with\\\ space 6801< - To include a comma in a directory name precede it with an extra 6802backslash: >vim 6803set path=.,/dir/with\\,comma 6804< - To search relative to the directory of the current file, use: >vim 6805set path=. 6806< - To search in the current directory use an empty string between two 6807commas: >vim 6808set path=,, 6809< - A directory name may end in a ':' or '/'. 6810- Environment variables are expanded |:set_env|. 6811- When using |netrw| URLs can be used. For example, adding 6812"https://www.vim.org" will make ":find index.html" work. 6813- Search upwards and downwards in a directory tree using "*", "**" and 6814";". See |file-searching| for info and syntax. 6815- Careful with '\' characters, type two to get one in the option: >vim 6816set path=.,c:\\include 6817< Or just use '/' instead: >vim 6818set path=.,c:/include 6819< Don't forget "." or files won't even be found in the same directory as 6820the file! 6821The maximum length is limited. How much depends on the system, mostly 6822it is something like 256 or 1024 characters. 6823You can check if all the include files are found, using the value of 6824'path', see |:checkpath|. 6825The use of |:set+=| and |:set-=| is preferred when adding or removing 6826directories from the list. This avoids problems when a future version 6827uses another default. To remove the current directory use: >vim 6828set path-= 6829< To add the current directory use: >vim 6830set path+= 6831< To use an environment variable, you probably need to replace the 6832separator. Here is an example to append $INCL, in which directory 6833names are separated with a semicolon: >vim 6834let &path = &path .. "," .. substitute($INCL, ';', ',', 'g') 6835< Replace the ';' with a ':' or whatever separator is used. Note that 6836this doesn't work when $INCL contains a comma or white space. 6837]=] , 6838expand =true , 6839full_name ='path' , 6840list ='comma' , 6841scope ={ 'global' , 'buf' } , 6842short_desc =N_ ( 'list of directories searched with "gf" et.al.' ), 6843tags ={ 'E343' , 'E345' , 'E347' , 'E854' } , 6844type ='string' , 6845varname ='p_path' , 6846} , 6847{ 6848abbreviation ='pi' , 6849defaults =false , 6850desc =[=[ 6851When changing the indent of the current line, preserve as much of the 6852indent structure as possible. Normally the indent is replaced by a 6853series of tabs followed by spaces as required (unless 'expandtab' is 6854enabled, in which case only spaces are used). Enabling this option 6855means the indent will preserve as many existing characters as possible 6856for indenting, and only add additional tabs or spaces as required. 6857'expandtab' does not apply to the preserved white space, a Tab remains 6858a Tab. 6859NOTE: When using ">>" multiple times the resulting indent is a mix of 6860tabs and spaces. You might not like this. 6861Also see 'copyindent'. 6862Use |:retab| to clean up white space. 6863]=] , 6864full_name ='preserveindent' , 6865scope ={ 'buf' } , 6866short_desc =N_ ( 'preserve the indent structure when reindenting' ), 6867type ='boolean' , 6868varname ='p_pi' , 6869} , 6870{ 6871abbreviation ='pvh' , 6872defaults =12 , 6873desc =[=[ 6874Default height for a preview window. Used for |:ptag| and associated 6875commands. Used for |CTRL-W_}| when no count is given. 6876]=] , 6877full_name ='previewheight' , 6878scope ={ 'global' } , 6879short_desc =N_ ( 'height of the preview window' ), 6880type ='number' , 6881varname ='p_pvh' , 6882} , 6883{ 6884abbreviation ='pvp' , 6885validation_cb ='validate_previewpopup' , 6886schema ={ 6887dict ={ 6888{ 'height' , 'num' } , 6889{ 'width' , 'num' } , 6890-- Only the named 'winborder' styles; a custom (comma) border can't be given here. 6891{ 6892'border' , 6893'enum' , 6894{ values ={ 'double' , 'single' , 'shadow' , 'rounded' , 'solid' , 'bold' , 'none' } } , 6895} , 6896} , 6897} , 6898expand_cb ='expand_set_popupoption' , 6899defaults ={ if_true ='' } , 6900desc =[=[ 6901When not empty a floating window is used for commands that would open 6902a preview window. See |preview-popup|. 6903The option is a comma-separated list of these items: 6904height Height of the window. When omitted, it is derived from 6905the content. 6906width Width of the window. When omitted, it is derived from 6907the content. 6908border One of the 'winborder' styles. When omitted, 'winborder' 6909is used. A custom (comma separated) border cannot be 6910given here, use 'winborder'. 6911The window background uses |hl-NormalFloat| and the border uses 6912|hl-FloatBorder|. 6913Not used for the insert completion info, add "popup" to 'completeopt' 6914for that. 6915 6916Example: >vim 6917set previewpopup=height:10,width:60,border:rounded 6918< 6919]=] , 6920full_name ='previewpopup' , 6921list ='commacolon' , 6922scope ={ 'global' } , 6923short_desc =N_ ( 'use a floating window for preview' ), 6924type ='string' , 6925varname ='p_pvp' , 6926} , 6927{ 6928abbreviation ='pvw' , 6929validation_cb ='validate_previewwindow' , 6930defaults =false , 6931desc =[=[ 6932Identifies the preview window. Only one window can have this option 6933set. It's normally not set directly, but by using one of the commands 6934|:ptag|, |:pedit|, etc. 6935]=] , 6936full_name ='previewwindow' , 6937noglob =true , 6938redraw ={ 'statuslines' } , 6939scope ={ 'win' } , 6940short_desc =N_ ( 'identifies the preview window' ), 6941tags ={ 'E590' } , 6942type ='boolean' , 6943} , 6944{ 6945defaults =true , 6946full_name ='prompt' , 6947scope ={ 'global' } , 6948short_desc =N_ ( 'enable prompt in Ex mode' ), 6949type ='boolean' , 6950immutable =true , 6951} , 6952{ 6953abbreviation ='pb' , 6954cb ='did_set_pumblend' , 6955defaults =0 , 6956desc =[=[ 6957Enables pseudo-transparency for the |popup-menu|. Valid values are in 6958the range of 0 for fully opaque popupmenu (disabled) to 100 for fully 6959transparent background. Values between 0-30 are typically most useful. 6960 6961It is possible to override the level for individual highlights within 6962the popupmenu using |highlight-blend|. For instance, to enable 6963transparency but force the current selected element to be fully opaque: >vim 6964 6965set pumblend=15 6966hi PmenuSel blend=0 6967< 6968UI-dependent. Works best with RGB colors. 'termguicolors' 6969]=] , 6970full_name ='pumblend' , 6971redraw ={ 'ui_option' } , 6972scope ={ 'global' } , 6973short_desc =N_ ( 'Controls transparency level of popup menu' ), 6974type ='number' , 6975varname ='p_pb' , 6976} , 6977{ 6978full_name ='pumborder' , 6979scope ={ 'global' } , 6980validation_cb ='validate_border' , 6981defaults ={ if_true ='' } , 6982schema ={ 6983set ={ '' , 'double' , 'single' , 'shadow' , 'rounded' , 'solid' , 'bold' , 'none' } , 6984} , 6985desc =[=[ 6986Defines the default border style of popupmenu windows. See 'winborder' for 6987valid values. |hl-PmenuBorder| is used for highlighting the border, and when 6988style is "shadow" the |hl-PmenuShadow| and |hl-PmenuShadowThrough| groups are used. 6989 6990This option also applies to mouse popup menus when 'mousemodel' is set to 6991"popup" or "popup_setpos", which will display borders using the same style. 6992]=] , 6993short_desc =N_ ( 'border of popupmenu' ), 6994type ='string' , 6995list ='onecomma' , 6996varname ='p_pumborder' , 6997} , 6998{ 6999abbreviation ='ph' , 7000defaults =0 , 7001desc =[=[ 7002Maximum number of items to show in the popup menu 7003(|ins-completion-menu|). Zero means "use available screen space". 7004]=] , 7005full_name ='pumheight' , 7006scope ={ 'global' } , 7007short_desc =N_ ( 'maximum height of the popup menu' ), 7008type ='number' , 7009varname ='p_ph' , 7010} , 7011{ 7012abbreviation ='pmw' , 7013defaults =0 , 7014desc =[=[ 7015Maximum width for the popup menu (|ins-completion-menu|). When zero, 7016there is no maximum width limit, otherwise the popup menu will never be 7017wider than this value. Truncated text will be indicated by "trunc" 7018value of 'fillchars' option. 7019 7020This option takes precedence over 'pumwidth'. 7021]=] , 7022full_name ='pummaxwidth' , 7023scope ={ 'global' } , 7024short_desc =N_ ( 'maximum width of the popup menu' ), 7025type ='number' , 7026varname ='p_pmw' , 7027} , 7028{ 7029abbreviation ='pw' , 7030defaults =15 , 7031desc =[=[ 7032Minimum width for the popup menu (|ins-completion-menu|). If the 7033cursor column + 'pumwidth' exceeds screen width, the popup menu is 7034nudged to fit on the screen. 7035]=] , 7036full_name ='pumwidth' , 7037scope ={ 'global' } , 7038short_desc =N_ ( 'minimum width of the popup menu' ), 7039type ='number' , 7040varname ='p_pw' , 7041} , 7042{ 7043abbreviation ='pyx' , 7044defaults =3 , 7045desc =[=[ 7046Specifies the python version used for pyx* functions and commands 7047|python_x|. As only Python 3 is supported, this always has the value 7048`3`. Setting any other value is an error. 7049]=] , 7050full_name ='pyxversion' , 7051scope ={ 'global' } , 7052secure =true , 7053short_desc =N_ ( 'selects default python version to use' ), 7054type ='number' , 7055varname ='p_pyx' , 7056} , 7057{ 7058abbreviation ='qftf' , 7059defaults ='' , 7060desc =[=[ 7061This option specifies a function to be used to get the text to display 7062in the quickfix and location list windows. This can be used to 7063customize the information displayed in the quickfix or location window 7064for each entry in the corresponding quickfix or location list. See 7065|quickfix-window-function| for an explanation of how to write the 7066function and an example. The value can be the name of a function, a 7067|lambda| or a |Funcref|. See |option-value-function| for more 7068information. 7069 7070It is not allowed to change text or jump to another window while 7071evaluating 'qftf' |textlock|. 7072]=] , 7073full_name ='quickfixtextfunc' , 7074scope ={ 'global' } , 7075secure =true , 7076short_desc =N_ ( 'customize the quickfix window' ), 7077type ='func' , 7078varname ='p_qftf' , 7079} , 7080{ 7081abbreviation ='qe' , 7082defaults ='\\' , 7083desc =[=[ 7084The characters that are used to escape quotes in a string. Used for 7085objects like a', a" and a` |a'|. 7086When one of the characters in this option is found inside a string, 7087the following character will be skipped. The default value makes the 7088text "foo\"bar\\" considered to be one string. 7089]=] , 7090full_name ='quoteescape' , 7091scope ={ 'buf' } , 7092short_desc =N_ ( 'escape characters used in a string' ), 7093type ='string' , 7094varname ='p_qe' , 7095} , 7096{ 7097abbreviation ='ro' , 7098cb ='did_set_readonly' , 7099defaults =false , 7100desc =[=[ 7101If on, writes fail unless you use a '!'. Protects you from 7102accidentally overwriting a file. Default on when Vim is started 7103in read-only mode ("vim -R") or when the executable is called "view". 7104When using ":w!" the 'readonly' option is reset for the current 7105buffer, unless the 'Z' flag is in 'cpoptions'. 7106When using the ":view" command the 'readonly' option is set for the 7107newly edited buffer. 7108See 'modifiable' for disallowing changes to the buffer. 7109]=] , 7110full_name ='readonly' , 7111noglob =true , 7112redraw ={ 'statuslines' } , 7113scope ={ 'buf' } , 7114short_desc =N_ ( 'disallow writing the buffer' ), 7115type ='boolean' , 7116varname ='p_ro' , 7117} , 7118{ 7119abbreviation ='rdb' , 7120validation_cb ='validate_str_generic' , 7121defaults ='' , 7122schema ={ 7123flags ={ 7124'compositor' , 7125'nothrottle' , 7126'invalid' , 7127'nodelta' , 7128'line' , 7129'flush' , 7130} , 7131} , 7132desc =[=[ 7133Flags to change the way redrawing works, for debugging purposes. 7134Most useful with 'writedelay' set to some reasonable value. 7135Supports the following flags: 7136compositor Indicate each redraw event handled by the compositor 7137by briefly flashing the redrawn regions in colors 7138indicating the redraw type. These are the highlight 7139groups used (and their default colors): 7140RedrawDebugNormal gui=reverse normal redraw passed through 7141RedrawDebugClear guibg=Yellow clear event passed through 7142RedrawDebugComposed guibg=Green redraw event modified by the 7143compositor (due to 7144overlapping grids, etc) 7145RedrawDebugRecompose guibg=Red redraw generated by the 7146compositor itself, due to a 7147grid being moved or deleted. 7148line introduce a delay after each line drawn on the screen. 7149When using the TUI or another single-grid UI, "compositor" 7150gives more information and should be preferred (every 7151line is processed as a separate event by the compositor) 7152flush introduce a delay after each "flush" event. 7153nothrottle Turn off throttling of the message grid. This is an 7154optimization that joins many small scrolls to one 7155larger scroll when drawing the message area (with 7156'display' msgsep flag active). 7157invalid Enable stricter checking (abort) of inconsistencies 7158of the internal screen state. This is mostly 7159useful when running nvim inside a debugger (and 7160the test suite). 7161nodelta Send all internally redrawn cells to the UI, even if 7162they are unchanged from the already displayed state. 7163]=] , 7164full_name ='redrawdebug' , 7165list ='onecomma' , 7166scope ={ 'global' } , 7167short_desc =N_ ( 'Changes the way redrawing works (debug)' ), 7168type ='string' , 7169varname ='p_rdb' , 7170flags_varname ='rdb_flags' , 7171} , 7172{ 7173abbreviation ='rdt' , 7174defaults =2000 , 7175desc =[=[ 7176Time in milliseconds for redrawing the display. Applies to 7177'hlsearch', 'inccommand', |:match| highlighting, syntax highlighting, 7178and async |LanguageTree:parse()|. 7179When redrawing takes more than this many milliseconds no further 7180matches will be highlighted. 7181For syntax highlighting the time applies per window. When over the 7182limit syntax highlighting is disabled until |CTRL-L| is used. 7183This is used to avoid that Vim hangs when using a very complicated 7184pattern. 7185]=] , 7186full_name ='redrawtime' , 7187scope ={ 'global' } , 7188short_desc =N_ ( "timeout for 'hlsearch' and |:match| highlighting" ), 7189type ='number' , 7190varname ='p_rdt' , 7191} , 7192{ 7193abbreviation ='re' , 7194defaults =0 , 7195desc =[=[ 7196This selects the default regexp engine. |two-engines| 7197The possible values are: 71980 automatic selection 71991 old engine 72002 NFA engine 7201Note that when using the NFA engine and the pattern contains something 7202that is not supported the pattern will not match. This is only useful 7203for debugging the regexp engine. 7204Using automatic selection enables Vim to switch the engine, if the 7205default engine becomes too costly. E.g., when the NFA engine uses too 7206many states. This should prevent Vim from hanging on a combination of 7207a complex pattern with long text. 7208]=] , 7209full_name ='regexpengine' , 7210scope ={ 'global' } , 7211short_desc =N_ ( 'default regexp engine to use' ), 7212type ='number' , 7213varname ='p_re' , 7214} , 7215{ 7216abbreviation ='rnu' , 7217cb ='did_set_number_relativenumber' , 7218defaults =false , 7219desc =[=[ 7220Show the line number relative to the line with the cursor in front of 7221each line. Relative line numbers help you use the |count| you can 7222precede some vertical motion commands (e.g. j k + -) with, without 7223having to calculate it yourself. Especially useful in combination 7224with other commands (e.g. y d c < > gq gw =). 7225When the 'n' option is excluded from 'cpoptions' a wrapped line will 7226not use the column of line numbers. 7227The 'numberwidth' option can be used to set the room used for the line 7228number. 7229When a long, wrapped line doesn't start with the first character, '-' 7230characters are put before the number. 7231See |hl-LineNr| and |hl-CursorLineNr| for the highlighting used for 7232the number. 7233 7234The number in front of the cursor line also depends on the value of 7235'number', see |number_relativenumber| for all combinations of the two 7236options. 7237]=] , 7238full_name ='relativenumber' , 7239redraw ={ 'current_window' } , 7240scope ={ 'win' } , 7241short_desc =N_ ( 'show relative line number in front of each line' ), 7242type ='boolean' , 7243} , 7244{ 7245defaults =true , 7246full_name ='remap' , 7247scope ={ 'global' } , 7248short_desc =N_ ( 'Deprecated' ), 7249type ='boolean' , 7250immutable =true , 7251} , 7252{ 7253defaults =2 , 7254desc =[=[ 7255Threshold for reporting number of lines changed. When the number of 7256changed lines is more than 'report' a message will be given for most 7257":" commands. If you want it always, set 'report' to 0. 7258For the ":substitute" command the number of substitutions is used 7259instead of the number of lines. 7260]=] , 7261full_name ='report' , 7262scope ={ 'global' } , 7263short_desc =N_ ( 'for reporting nr. of lines changed' ), 7264type ='number' , 7265varname ='p_report' , 7266} , 7267{ 7268abbreviation ='ri' , 7269defaults =false , 7270desc =[=[ 7271Inserting characters in Insert mode will work backwards. See "typing 7272backwards" |ins-reverse|. This option can be toggled with the CTRL-_ 7273command in Insert mode, when 'allowrevins' is set. 7274]=] , 7275full_name ='revins' , 7276scope ={ 'global' } , 7277short_desc =N_ ( 'inserting characters will work backwards' ), 7278type ='boolean' , 7279varname ='p_ri' , 7280} , 7281{ 7282abbreviation ='rl' , 7283defaults =false , 7284desc =[=[ 7285When on, display orientation becomes right-to-left, i.e., characters 7286that are stored in the file appear from the right to the left. 7287Using this option, it is possible to edit files for languages that 7288are written from the right to the left such as Hebrew and Arabic. 7289This option is per window, so it is possible to edit mixed files 7290simultaneously, or to view the same file in both ways (this is 7291useful whenever you have a mixed text file with both right-to-left 7292and left-to-right strings so that both sets are displayed properly 7293in different windows). Also see |rileft.txt|. 7294]=] , 7295full_name ='rightleft' , 7296redraw ={ 'current_window' } , 7297scope ={ 'win' } , 7298short_desc =N_ ( 'window is right-to-left oriented' ), 7299type ='boolean' , 7300} , 7301{ 7302abbreviation ='rlc' , 7303validation_cb ='validate_str_generic' , 7304defaults ='search' , 7305schema ={ 7306set ={ 'search' } , 7307} , 7308desc =[=[ 7309Each word in this option enables the command line editing to work in 7310right-to-left mode for a group of commands: 7311 7312search "/" and "?" commands 7313 7314This is useful for languages such as Hebrew, Arabic and Farsi. 7315The 'rightleft' option must be set for 'rightleftcmd' to take effect. 7316]=] , 7317full_name ='rightleftcmd' , 7318list ='comma' , 7319redraw ={ 'current_window' } , 7320scope ={ 'win' } , 7321short_desc =N_ ( 'commands for which editing works right-to-left' ), 7322type ='string' , 7323} , 7324{ 7325abbreviation ='ru' , 7326defaults =true , 7327desc =[=[ 7328When on, show some buffer information in the ruler. Each window has 7329its own ruler. The ruler of the active window is shown in the last 7330line of the screen, unless 'cmdheight' is zero, or the window has a 7331status line, which (by default) contains the window's ruler. 7332 7333'rulerformat' determines the contents of the ruler. 7334By default, the line and column number of the current cursor position 7335are shown, separated by a comma. 7336If the number of characters displayed is different from the number of 7337bytes in the text (e.g., for a TAB or a multibyte character), both 7338the text column (byte number) and the screen column are shown, 7339separated with a dash. 7340For an empty line "0-1" is shown. 7341For an empty buffer the line number will also be zero: "0,0-1". 7342Finally, the relative position of the displayed text in the file is 7343shown on the far right: 7344Top first line is visible 7345Bot last line is visible 7346All first and last line are visible 734745% relative position in the file 7348 7349If you don't want to see the ruler all the time but want to know where 7350you are, use "g CTRL-G" |g_CTRL-G|. 7351When 'ruler' is on, the output of |CTRL-G| doen't contain the current 7352line number of the cursor position. 7353]=] , 7354full_name ='ruler' , 7355redraw ={ 'statuslines' } , 7356scope ={ 'global' } , 7357short_desc =N_ ( 'show cursor line and column in the status line' ), 7358type ='boolean' , 7359varname ='p_ru' , 7360} , 7361{ 7362abbreviation ='ruf' , 7363cb ='did_set_rulerformat' , 7364validation_cb ='validate_statustabline_rulerformat' , 7365defaults ='%18(%l,%c%V%= %P%)%<' , 7366desc =[=[ 7367This option determines the content of the ruler string, as displayed 7368for the 'ruler' option. 7369The format of this option is like that of 'statusline'. 7370Setting to empty (`:set rulerformat=`) sets the value to the default. 7371This option cannot be set in a modeline when 'modelineexpr' is off. 7372 7373When 'ruler' is on, the default 'statusline' includes 'rulerformat'. 7374 7375The default ruler width is 18 characters, which is configured with 7376what looks like an item group. But there are some differences in this 7377particular case. Most notably, the width is fixed and not a minimum, 7378and the ruler is left-aligned, whereas the alignment of item groups is 7379configurable and right-aligned by default. 7380 7381When |ui2| is enabled, the ruler no longer has a fixed width and the 7382item group syntax has no special meaning for 'rulerformat'. 7383]=] , 7384full_name ='rulerformat' , 7385modelineexpr =true , 7386redraw ={ 'statuslines' } , 7387scope ={ 'global' } , 7388short_desc =N_ ( 'custom format for the ruler' ), 7389type ='string' , 7390varname ='p_ruf' , 7391} , 7392{ 7393abbreviation ='rtp' , 7394cb ='did_set_runtimepackpath' , 7395defaults ={ 7396if_true ='' , 7397doc =[["$XDG_CONFIG_HOME/nvim, 7398$XDG_CONFIG_DIRS[1]/nvim, 7399$XDG_CONFIG_DIRS[2]/nvim, 7400… 7401$XDG_DATA_HOME/nvim[-data]/site, 7402$XDG_DATA_DIRS[1]/nvim/site, 7403$XDG_DATA_DIRS[2]/nvim/site, 7404… 7405$VIMRUNTIME, 7406… 7407$XDG_DATA_DIRS[2]/nvim/site/after, 7408$XDG_DATA_DIRS[1]/nvim/site/after, 7409$XDG_DATA_HOME/nvim[-data]/site/after, 7410… 7411$XDG_CONFIG_DIRS[2]/nvim/after, 7412$XDG_CONFIG_DIRS[1]/nvim/after, 7413$XDG_CONFIG_HOME/nvim/after"]] , 7414meta ='...' , 7415} , 7416deny_duplicates =true , 7417desc =[=[ 7418List of directories to be searched for these runtime files: 7419filetype.lua filetypes |new-filetype| 7420autoload/ automatically loaded scripts |autoload-functions| 7421colors/ color scheme files |:colorscheme| 7422compiler/ compiler files |:compiler| 7423doc/ documentation |write-local-help| 7424ftplugin/ filetype plugins |write-filetype-plugin| 7425indent/ indent scripts |indent-expression| 7426keymap/ key mapping files |mbyte-keymap| 7427lang/ menu translations |:menutrans| 7428lsp/ LSP client configurations |lsp-config| 7429lua/ |Lua| plugins 7430menu.vim GUI menus |menu.vim| 7431pack/ packages |:packadd| 7432parser/ |treesitter| syntax parsers 7433plugin/ plugin scripts |write-plugin| 7434queries/ |treesitter| queries 7435rplugin/ |remote-plugin| scripts 7436spell/ spell checking files |spell| 7437syntax/ syntax files |mysyntaxfile| 7438tutor/ tutorial files |:Tutor| 7439 7440And any other file searched for with the |:runtime| command. 7441 7442Defaults are setup to search these locations: 74431. Your home directory, for personal preferences. 7444Given by `stdpath("config")`. |$XDG_CONFIG_HOME| 74452. Directories which must contain configuration files according to 7446|xdg| ($XDG_CONFIG_DIRS, defaults to /etc/xdg). This also contains 7447preferences from system administrator. 74483. Data home directory, for plugins installed by user. 7449Given by `stdpath("data")/site`. |$XDG_DATA_HOME| 74504. nvim/site subdirectories for each directory in $XDG_DATA_DIRS. 7451This is for plugins which were installed by system administrator, 7452but are not part of the Nvim distribution. XDG_DATA_DIRS defaults 7453to /usr/local/share/:/usr/share/, so system administrators are 7454expected to install site plugins to /usr/share/nvim/site. 74555. $VIMRUNTIME, for files distributed with Nvim. 7456*after-directory* 74576, 7, 8, 9. In after/ subdirectories of 1, 2, 3 and 4, with reverse 7458ordering. This is for preferences to overrule or add to the 7459distributed defaults or system-wide settings (rarely needed). 7460 7461*packages-runtimepath* 7462"start" packages will also be searched (|runtime-search-path|) for 7463runtime files after these, though such packages are not explicitly 7464reported in &runtimepath. But "opt" packages are explicitly added to 7465&runtimepath by |:packadd|. 7466 7467Note that, unlike 'path', no wildcards like "**" are allowed. Normal 7468wildcards are allowed, but can significantly slow down searching for 7469runtime files. For speed, use as few items as possible and avoid 7470wildcards. 7471See |:runtime|. 7472Example: >vim 7473set runtimepath=~/vimruntime,/mygroup/vim,$VIMRUNTIME 7474< This will use the directory "~/vimruntime" first (containing your 7475personal Nvim runtime files), then "/mygroup/vim", and finally 7476"$VIMRUNTIME" (the default runtime files). 7477You can put a directory before $VIMRUNTIME to find files which replace 7478distributed runtime files. You can put a directory after $VIMRUNTIME 7479to find files which add to distributed runtime files. 7480 7481With |--clean| the home directory entries are not included. 7482Environment variables are expanded |:set_env|. 7483]=] , 7484expand ='nodefault' , 7485full_name ='runtimepath' , 7486list ='onecomma' , 7487scope ={ 'global' } , 7488secure =true , 7489short_desc =N_ ( 'list of directories used for runtime files' ), 7490tags ={ 'vimfiles' } , 7491type ='string' , 7492varname ='p_rtp' , 7493} , 7494{ 7495abbreviation ='scr' , 7496defaults ={ 7497if_true =0 , 7498doc ='half the window height' , 7499} , 7500desc =[=[ 7501Number of lines to scroll with CTRL-U and CTRL-D commands. Will be 7502set to half the number of lines in the window when the window size 7503changes. This may happen when enabling the |status-line| or 7504'tabline' option after setting the 'scroll' option. 7505If you give a count to the CTRL-U or CTRL-D command it will 7506be used as the new value for 'scroll'. Reset to half the window 7507height with ":set scroll=0". 7508]=] , 7509full_name ='scroll' , 7510no_mkrc =true , 7511scope ={ 'win' } , 7512short_desc =N_ ( 'lines to scroll with CTRL-U and CTRL-D' ), 7513type ='number' , 7514} , 7515{ 7516abbreviation ='scbk' , 7517cb ='did_set_scrollback' , 7518defaults ={ 7519if_true =- 1 , 7520doc ='10000' , 7521} , 7522desc =[=[ 7523Maximum number of lines kept beyond the visible screen. Lines at the 7524top are deleted if new lines exceed this limit. 7525Minimum is 1, maximum is 1000000. 7526Only in |terminal| and |prompt-buffer| buffers. 7527 7528Note: Lines that are not visible and kept in terminal scrollback are not 7529reflown when the terminal buffer is resized horizontally. 7530]=] , 7531full_name ='scrollback' , 7532redraw ={ 'current_buffer' } , 7533scope ={ 'buf' } , 7534short_desc =N_ ( 'lines to scroll with CTRL-U and CTRL-D' ), 7535type ='number' , 7536varname ='p_scbk' , 7537} , 7538{ 7539abbreviation ='scb' , 7540cb ='did_set_scrollbind' , 7541defaults =false , 7542desc =[=[ 7543Enables synchronized scrolling (in all windows with this option set). 7544Useful for comparing two versions of a file, see 'diff'. 7545Behavior is controlled by 'scrollopt'. See |scroll-binding|. 7546 7547This option is (usually) reset when splitting a window to edit another 7548file: ":split | edit file" results in two windows with scroll-binding, 7549but ":split file" does not. 7550 7551Note: Consider calling |:syncbind| on |WinResized|, |WinEnter| events 7552(scoped to relevant buffers). 7553]=] , 7554full_name ='scrollbind' , 7555scope ={ 'win' } , 7556short_desc =N_ ( 'scroll in window as other windows scroll' ), 7557type ='boolean' , 7558} , 7559{ 7560abbreviation ='sj' , 7561defaults =1 , 7562desc =[=[ 7563Minimal number of lines to scroll when the cursor gets off the 7564screen (e.g., with "j"). Not used for scroll commands (e.g., CTRL-E, 7565CTRL-D). Useful if your terminal scrolls very slowly. 7566When set to a negative number from -1 to -100 this is used as the 7567percentage of the window height. Thus -50 scrolls half the window 7568height. 7569]=] , 7570full_name ='scrolljump' , 7571scope ={ 'global' } , 7572short_desc =N_ ( 'minimum number of lines to scroll' ), 7573type ='number' , 7574varname ='p_sj' , 7575} , 7576{ 7577abbreviation ='so' , 7578defaults =0 , 7579desc =[=[ 7580Minimal number of screen lines to keep above and below the cursor. 7581This will make some context visible around where you are working. If 7582you set it to a very large value (999) the cursor line will always be 7583in the middle of the window (except at the start or end of the file, 7584see 'scrolloffpad', or when long lines wrap). 7585After using the local value, go back the global value with one of 7586these two: >vim 7587setlocal scrolloff< 7588setlocal scrolloff=-1 7589< For scrolling horizontally see 'sidescrolloff'. 7590]=] , 7591full_name ='scrolloff' , 7592scope ={ 'global' , 'win' } , 7593short_desc =N_ ( 'minimum nr. of lines above and below cursor' ), 7594type ='number' , 7595varname ='p_so' , 7596} , 7597{ 7598abbreviation ='sop' , 7599defaults =0 , 7600desc =[=[ 7601When 'scrolloff' and 'scrolloffpad' are greater than zero, allow 7602the cursor to remain centered when at the end of the file. 7603Normally, 'scrolloff' will not keep the cursor centered at the 7604end of the file. 7605 7606A value of 0 disables this feature. Any value above 0 enables it. 7607For a window-local value, -1 means to use the global value. 7608Values below -1 are invalid. 7609 7610Example: >vim 7611:set scrolloff=99 scrolloffpad=1 7612< 7613 7614After using the local value, go back the global value with one of 7615these two: >vim 7616setlocal scrolloffpad< 7617setlocal scrolloffpad=-1 7618< 7619]=] , 7620full_name ='scrolloffpad' , 7621scope ={ 'global' , 'win' } , 7622short_desc =N_ ( 'vertically center cursor even at end of file' ), 7623type ='number' , 7624varname ='p_sop' , 7625} , 7626{ 7627abbreviation ='sbo' , 7628validation_cb ='validate_str_generic' , 7629defaults ='ver,jump' , 7630schema ={ 7631set ={ 'ver' , 'hor' , 'jump' } , 7632} , 7633deny_duplicates =true , 7634desc =[=[ 7635This is a comma-separated list of words that specifies how 7636'scrollbind' windows should behave. 'sbo' stands for ScrollBind 7637Options. 7638The following words are available: 7639ver Bind vertical scrolling for 'scrollbind' windows 7640hor Bind horizontal scrolling for 'scrollbind' windows 7641jump Applies to the offset between two windows for vertical 7642scrolling. This offset is the difference in the first 7643displayed line of the bound windows. When moving 7644around in a window, another 'scrollbind' window may 7645reach a position before the start or after the end of 7646the buffer. The offset is not changed though, when 7647moving back the 'scrollbind' window will try to scroll 7648to the desired position when possible. 7649When now making that window the current one, two 7650things can be done with the relative offset: 76511. When "jump" is not included, the relative offset is 7652adjusted for the scroll position in the new current 7653window. When going back to the other window, the 7654new relative offset will be used. 76552. When "jump" is included, the other windows are 7656scrolled to keep the same relative offset. When 7657going back to the other window, it still uses the 7658same relative offset. 7659Also see |scroll-binding|. 7660When 'diff' mode is active there always is vertical scroll binding, 7661even when "ver" isn't there. 7662]=] , 7663full_name ='scrollopt' , 7664list ='onecomma' , 7665scope ={ 'global' } , 7666short_desc =N_ ( "how 'scrollbind' should behave" ), 7667type ='string' , 7668varname ='p_sbo' , 7669} , 7670{ 7671abbreviation ='sect' , 7672defaults ='SHNHH HUnhsh' , 7673desc =[=[ 7674Specifies the nroff macros that separate sections. These are pairs of 7675two letters (See |object-motions|). The default makes a section start 7676at the nroff macros ".SH", ".NH", ".H", ".HU", ".nh" and ".sh". 7677]=] , 7678full_name ='sections' , 7679scope ={ 'global' } , 7680short_desc =N_ ( 'nroff macros that separate sections' ), 7681type ='string' , 7682varname ='p_sections' , 7683} , 7684{ 7685defaults =false , 7686full_name ='secure' , 7687scope ={ 'global' } , 7688secure =true , 7689short_desc =N_ ( 'Deprecated' ), 7690type ='boolean' , 7691varname ='p_secure' , 7692} , 7693{ 7694abbreviation ='sel' , 7695cb ='did_set_selection' , 7696validation_cb ='validate_str_generic' , 7697defaults ='inclusive' , 7698schema ={ 7699enum ={ 'inclusive' , 'exclusive' , 'old' } , 7700} , 7701desc =[=[ 7702This option defines the behavior of the selection. It is only used 7703in Visual and Select mode. 7704Possible values: 7705value past line inclusive ~ 7706old no yes 7707inclusive yes yes 7708exclusive yes no 7709"past line" means that the cursor is allowed to be positioned one 7710character past the line. 7711"inclusive" means that the last character of the selection is included 7712in an operation. For example, when "x" is used to delete the 7713selection. 7714When "old" is used and 'virtualedit' allows the cursor to move past 7715the end of line the line break still isn't included. 7716When "exclusive" is used, cursor position in visual mode will be 7717adjusted for inclusive motions |inclusive-motion-selection-exclusive|. 7718 7719Note: 7720- When "exclusive" is used and selecting from the end backwards, you 7721cannot include the last character of a line, when starting in Normal 7722mode and 'virtualedit' empty. 7723- when "exclusive" is used with a single character visual selection, 7724Vim will behave as if the 'selection' is inclusive (in other words, 7725you cannot visually select an empty region). 7726]=] , 7727full_name ='selection' , 7728scope ={ 'global' } , 7729short_desc =N_ ( 'what type of selection to use' ), 7730type ='string' , 7731varname ='p_sel' , 7732} , 7733{ 7734abbreviation ='slm' , 7735validation_cb ='validate_str_generic' , 7736defaults ='' , 7737schema ={ 7738set ={ 'mouse' , 'key' , 'cmd' } , 7739} , 7740deny_duplicates =true , 7741desc =[=[ 7742This is a comma-separated list of words, which specifies when to start 7743Select mode instead of Visual mode, when a selection is started. 7744Possible values: 7745mouse when using the mouse 7746key when using shifted special keys 7747cmd when using "v", "V" or CTRL-V 7748See |Select-mode|. 7749]=] , 7750full_name ='selectmode' , 7751list ='onecomma' , 7752scope ={ 'global' } , 7753short_desc =N_ ( 'when to use Select mode instead of Visual mode' ), 7754type ='string' , 7755varname ='p_slm' , 7756} , 7757{ 7758abbreviation ='ssop' , 7759validation_cb ='validate_sessionoptions' , 7760defaults ='blank,buffers,curdir,folds,help,tabpages,winsize,terminal' , 7761-- Also used for 'viewoptions'. 7762schema ={ 7763flags ={ 7764'buffers' , 7765'winpos' , 7766'resize' , 7767'winsize' , 7768'localoptions' , 7769'options' , 7770'help' , 7771'blank' , 7772'globals' , 7773'slash' , 7774'unix' , 7775'sesdir' , 7776'curdir' , 7777'folds' , 7778'cursor' , 7779'tabpages' , 7780'terminal' , 7781'skiprtp' , 7782} , 7783} , 7784deny_duplicates =true , 7785desc =[=[ 7786Changes the effect of the |:mksession| command. It is a comma- 7787separated list of words. Each word enables saving and restoring 7788something: 7789word save and restore ~ 7790blank empty windows 7791buffers hidden and unloaded buffers, not just those in windows 7792curdir the current directory 7793folds manually created folds, opened/closed folds and local 7794fold options 7795globals global variables that start with an uppercase letter 7796and contain at least one lowercase letter. Only 7797String and Number types are stored. 7798help the help window 7799localoptions options and mappings local to a window or buffer (not 7800global values for local options) 7801options all options and mappings (also global values for local 7802options), except Lua functions |option-value-function|. 7803skiprtp exclude 'runtimepath' and 'packpath' from the options 7804resize size of the Vim window: 'lines' and 'columns' 7805sesdir the directory in which the session file is located 7806will become the current directory (useful with 7807projects accessed over a network from different 7808systems) 7809tabpages all tabpages; without this only the current tabpage 7810is restored, so that you can make a session for each 7811tabpage separately 7812terminal include terminal windows where the command can be 7813restored 7814winpos position of the whole Vim window 7815winsize window sizes 7816slash |deprecated| Always enabled. Uses "/" in filenames. 7817unix |deprecated| Always enabled. Uses "\n" line endings. 7818 7819Don't include both "curdir" and "sesdir". When neither is included 7820filenames are stored as absolute paths. 7821If you leave out "options" many things won't work well after restoring 7822the session. 7823]=] , 7824full_name ='sessionoptions' , 7825list ='onecomma' , 7826scope ={ 'global' } , 7827short_desc =N_ ( 'options for |:mksession|' ), 7828type ='string' , 7829varname ='p_ssop' , 7830flags_varname ='ssop_flags' , 7831} , 7832{ 7833abbreviation ='sd' , 7834alias ={ 'vi' , 'viminfo' } , 7835validation_cb ='validate_shada' , 7836defaults ="!,'100,<50,s10,h,r/tmp/,r/private/" , 7837deny_duplicates =true , 7838desc =[=[ 7839When non-empty, the shada file is read upon startup and written 7840when exiting Vim (see |shada-file|). The string should be a comma- 7841separated list of parameters, each consisting of a single character 7842identifying the particular parameter, followed by a number or string 7843which specifies the value of that parameter. If a particular 7844character is left out, then the default value is used for that 7845parameter. The following is a list of the identifying characters and 7846the effect of their value. 7847CHAR VALUE ~ 7848*shada-!* 7849! When included, save and restore global variables that start 7850with an uppercase letter, and don't contain a lowercase 7851letter. Thus "KEEPTHIS and "K_L_M" are stored, but "KeepThis" 7852and "_K_L_M" are not. Nested List and Dict items may not be 7853read back correctly, you end up with an empty item. 7854*shada-quote* 7855" Maximum number of lines saved for each register. Old name of 7856the '<' item, with the disadvantage that you need to put a 7857backslash before the ", otherwise it will be recognized as the 7858start of a comment! 7859*shada-%* 7860% When included, save and restore the buffer list. If Vim is 7861started with a file name argument, the buffer list is not 7862restored. If Vim is started without a file name argument, the 7863buffer list is restored from the shada file. Quickfix 7864('buftype'), unlisted ('buflisted'), unnamed and buffers on 7865removable media (|shada-r|) are not saved. 7866When followed by a number, the number specifies the maximum 7867number of buffers that are stored. Without a number all 7868buffers are stored. 7869*shada-'* 7870' Maximum number of previously edited files for which the marks 7871are remembered. This parameter must always be included when 7872'shada' is non-empty. 7873If non-zero, then the |jumplist| and the |changelist| are also 7874stored in the shada file. 7875*shada-/* 7876/ Maximum number of items in the search pattern history to be 7877saved. If non-zero, then the previous search and substitute 7878patterns are also saved. When not included, the value of 7879'history' is used. 7880*shada-:* 7881: Maximum number of items in the command-line history to be 7882saved. When not included, the value of 'history' is used. 7883*shada-<* 7884\< Maximum number of lines saved for each register. If zero then 7885registers are not saved. When not included, all lines are 7886saved. '"' is the old name for this item. 7887Also see the 's' item below: limit specified in KiB. 7888*shada-@* 7889@ Maximum number of items in the input-line history to be 7890saved. When not included, the value of 'history' is used. 7891*shada-c* 7892c Dummy option, kept for compatibility reasons. Has no actual 7893effect: ShaDa always uses UTF-8 and 'encoding' value is fixed 7894to UTF-8 as well. 7895*shada-f* 7896f Whether file marks need to be stored. If zero, file marks ('0 7897to '9, 'A to 'Z) are not stored. When not present or when 7898non-zero, they are all stored. '0 is used for the current 7899cursor position (when exiting or when doing |:wshada|). 7900*shada-h* 7901h Disable the effect of 'hlsearch' when loading the shada 7902file. When not included, it depends on whether ":nohlsearch" 7903has been used since the last search command. 7904*shada-n* 7905n Name of the shada file. The name must immediately follow 7906the 'n'. Must be at the end of the option! If the 7907'shadafile' option is set, that file name overrides the one 7908given here with 'shada'. Environment variables are 7909expanded when opening the file, not when setting the option. 7910*shada-r* 7911r Removable media. The argument is a string (up to the next 7912','). This parameter can be given several times. Each 7913specifies the start of a path for which no marks will be 7914stored. This is to avoid removable media. For Windows you 7915could use "ra:,rb:". You can also use it for temp files, 7916e.g., for Unix: "r/tmp". Case is ignored. 7917*shada-s* 7918s Maximum size of an item contents in KiB. If zero then nothing 7919is saved. Unlike Vim this applies to all items, except for 7920the buffer list and header. Full item size is off by three 7921unsigned integers: with `s10` maximum item size may be 1 byte 7922(type: 7-bit integer) + 9 bytes (timestamp: up to 64-bit 7923integer) + 3 bytes (item size: up to 16-bit integer because 79242^8 < 10240 < 2^16) + 10240 bytes (requested maximum item 7925contents size) = 10253 bytes. 7926 7927Example: >vim 7928set shada='50,<1000,s100,:0,n~/nvim/shada 7929< 7930'50 Marks will be remembered for the last 50 files you 7931edited. 7932<1000 Contents of registers (up to 1000 lines each) will be 7933remembered. 7934s100 Items with contents occupying more then 100 KiB are 7935skipped. 7936:0 Command-line history will not be saved. 7937n~/nvim/shada The name of the file to use is "~/nvim/shada". 7938no / Since '/' is not specified, the default will be used, 7939that is, save all of the search history, and also the 7940previous search and substitute patterns. 7941no % The buffer list will not be saved nor read back. 7942no h 'hlsearch' highlighting will be restored. 7943 7944When setting 'shada' from an empty value you can use |:rshada| to 7945load the contents of the file, this is not done automatically. 7946]=] , 7947full_name ='shada' , 7948list ='onecomma' , 7949scope ={ 'global' } , 7950secure =true , 7951short_desc =N_ ( 'use .shada file upon startup and exiting' ), 7952tags ={ 'E526' , 'E527' , 'E528' } , 7953type ='string' , 7954varname ='p_shada' , 7955} , 7956{ 7957abbreviation ='sdf' , 7958alias ={ 'vif' , 'viminfofile' } , 7959defaults ='' , 7960deny_duplicates =true , 7961desc =[=[ 7962When non-empty, overrides the file name used for |shada| (viminfo). 7963When equal to "NONE" no shada file will be read or written. 7964This option can be set with the |-i| command line flag. The |--clean| 7965command line flag sets it to "NONE". 7966Environment variables are expanded |:set_env|. 7967]=] , 7968expand =true , 7969full_name ='shadafile' , 7970list ='onecomma' , 7971scope ={ 'global' } , 7972secure =true , 7973short_desc =N_ ( 'overrides the filename used for shada' ), 7974type ='string' , 7975varname ='p_shadafile' , 7976} , 7977{ 7978abbreviation ='sh' , 7979defaults ={ 7980condition ='MSWIN' , 7981if_false ='sh' , 7982if_true ='cmd.exe' , 7983doc ='$SHELL or "sh", Win32: "cmd.exe"' , 7984meta ='sh' , 7985} , 7986desc =[=[ 7987Name of the shell to use for ! and :! commands. When changing the 7988value also check these options: 'shellpipe', 'shellslash' 7989'shellredir', 'shellquote', 'shellxquote' and 'shellcmdflag'. 7990It is allowed to give an argument to the command, e.g. "csh -f". 7991See |option-backslash| about including spaces and backslashes. 7992Environment variables are expanded |:set_env|. 7993 7994If the name of the shell contains a space, you need to enclose it in 7995quotes. Example with quotes: >vim 7996set shell=\"c:\program\ files\unix\sh.exe\"\ -f 7997< Note the backslash before each quote (to avoid starting a comment) and 7998each space (to avoid ending the option value), so better use |:let-&| 7999like this: >vim 8000let &shell='"C:\Program Files\unix\sh.exe" -f' 8001< Also note that the "-f" is not inside the quotes, because it is not 8002part of the command name. 8003*shell-unquoting* 8004Rules regarding quotes: 80051. Option is split on space and tab characters that are not inside 8006quotes: "abc def" runs shell named "abc" with additional argument 8007"def", '"abc def"' runs shell named "abc def" with no additional 8008arguments (here and below: additional means “additional to 8009'shellcmdflag'”). 80102. Quotes in option may be present in any position and any number: 8011'"abc"', '"a"bc', 'a"b"c', 'ab"c"' and '"a"b"c"' are all equivalent 8012to just "abc". 80133. Inside quotes backslash preceding backslash means one backslash. 8014Backslash preceding quote means one quote. Backslash preceding 8015anything else means backslash and next character literally: 8016'"a\\b"' is the same as "a\b", '"a\\"b"' runs shell named literally 8017'a"b', '"a\b"' is the same as "a\b" again. 80184. Outside of quotes backslash always means itself, it cannot be used 8019to escape quote: 'a\"b"' is the same as "a\b". 8020Note that such processing is done after |:set| did its own round of 8021unescaping, so to keep yourself sane use |:let-&| like shown above. 8022*shell-powershell* 8023To use PowerShell: >vim 8024set noshelltemp 8025let &shell = 'powershell' 8026let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command ' 8027let &shellcmdflag .= '[Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.UTF8Encoding]::new();' 8028let &shellcmdflag .= '$PSDefaultParameterValues[''Out-File:Encoding'']=''utf8'';' 8029let &shellpipe = '> %s 2>&1' 8030set shellquote= shellxquote= 8031< 8032*shell-pwsh* 8033To use pwsh, use the above settings with `let &shell = 'pwsh'`, and 8034add: >vim 8035let &shellcmdflag .= '$PSStyle.OutputRendering = ''PlainText'';' 8036" Workaround (may not be needed in future version of pwsh): 8037let $__SuppressAnsiEscapeSequences = 1 8038< 8039]=] , 8040expand =true , 8041full_name ='shell' , 8042scope ={ 'global' } , 8043secure =true , 8044short_desc =N_ ( 'name of shell to use for external commands' ), 8045tags ={ 'E91' } , 8046type ='string' , 8047varname ='p_sh' , 8048} , 8049{ 8050abbreviation ='shcf' , 8051defaults ={ 8052if_true ='-c' , 8053doc =[["-c"; Windows, when 'shell' 8054contains "cmd" somewhere: "/s /c"]] , 8055} , 8056desc =[=[ 8057Flag passed to the shell to execute "!" and ":!" commands; e.g., 8058`bash.exe -c ls` or `cmd.exe /s /c "dir"`. For MS-Windows, the 8059default is set according to the value of 'shell', to reduce the need 8060to set this option by the user. 8061On Unix it can have more than one flag. Each white space separated 8062part is passed as an argument to the shell command. 8063See |option-backslash| about including spaces and backslashes. 8064See |shell-unquoting| which talks about separating this option into 8065multiple arguments. 8066]=] , 8067full_name ='shellcmdflag' , 8068scope ={ 'global' } , 8069secure =true , 8070short_desc =N_ ( 'flag to shell to execute one command' ), 8071type ='string' , 8072varname ='p_shcf' , 8073} , 8074{ 8075abbreviation ='sp' , 8076validation_cb ='validate_shellpipe_redir' , 8077defaults ={ 8078condition ='MSWIN' , 8079if_false ='| tee' , 8080if_true ='2>&1| tee' , 8081doc ='">", "| tee", "|& tee" or "2>&1| tee"' , 8082} , 8083desc =[=[ 8084String to be used to put the output of the ":make" command in the 8085error file. See also |:make_makeprg|. See |option-backslash| about 8086including spaces and backslashes. 8087The name of the temporary file can be represented by "%s" if necessary 8088(the file name is appended automatically if no %s appears in the value 8089of this option). 8090For MS-Windows the default is "2>&1| tee". The stdout and stderr are 8091saved in a file and echoed to the screen. 8092For Unix the default is "| tee". The stdout of the compiler is saved 8093in a file and echoed to the screen. If the 'shell' option contains 8094"csh" (e.g. "tcsh") after initializations, the default becomes 8095"|& tee". Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the 8096default becomes "2>&1| tee". This means that stderr is also included. 8097Before using the 'shell' option a path is removed, thus "/bin/sh" uses 8098"sh". 8099The initialization of this option is done after reading the vimrc 8100and the other initializations, so that when the 'shell' option is set 8101there, the 'shellpipe' option changes automatically, unless it was 8102explicitly set before. 8103When 'shellpipe' is set to an empty string, no redirection of the 8104":make" output will be done. This is useful if you use a 'makeprg' 8105that writes to 'makeef' by itself. If you want no piping, but do 8106want to include the 'makeef', set 'shellpipe' to a single space. 8107Don't forget to precede the space with a backslash: ":set sp=\ ". 8108In the future pipes may be used for filtering and this option will 8109become obsolete (at least for Unix). 8110Note: When using a pipe like "| tee", you'll lose the exit code of the 8111shell command. This might be configurable by your shell, look for 8112the pipefail option (for bash and zsh, use ":set -o pipefail"). 8113Only a single "%s" value is allowed. 8114]=] , 8115full_name ='shellpipe' , 8116scope ={ 'global' } , 8117secure =true , 8118short_desc =N_ ( 'string to put output of ":make" in error file' ), 8119type ='string' , 8120varname ='p_sp' , 8121} , 8122{ 8123abbreviation ='shq' , 8124defaults ={ 8125if_true ='' , 8126doc =[[""; Windows, when 'shell' 8127contains "sh" somewhere: "\""]] , 8128} , 8129desc =[=[ 8130Quoting character(s), put around the command passed to the shell, for 8131the "!" and ":!" commands. The redirection is kept outside of the 8132quoting. See 'shellxquote' to include the redirection. It's 8133probably not useful to set both options. 8134This is an empty string by default. Only known to be useful for 8135third-party shells on Windows systems, such as the MKS Korn Shell 8136or bash, where it should be "\"". The default is adjusted according 8137the value of 'shell', to reduce the need to set this option by the 8138user. 8139]=] , 8140full_name ='shellquote' , 8141scope ={ 'global' } , 8142secure =true , 8143short_desc =N_ ( 'quote character(s) for around shell command' ), 8144type ='string' , 8145varname ='p_shq' , 8146} , 8147{ 8148abbreviation ='srr' , 8149validation_cb ='validate_shellpipe_redir' , 8150defaults ={ 8151condition ='MSWIN' , 8152if_false ='>' , 8153if_true ='>%s 2>&1' , 8154doc ='">", ">&" or ">%s 2>&1"' , 8155} , 8156desc =[=[ 8157String to be used to put the output of a filter command in a temporary 8158file. See also |:!|. See |option-backslash| about including spaces 8159and backslashes. 8160The name of the temporary file can be represented by "%s" if necessary 8161(the file name is appended automatically if no %s appears in the value 8162of this option). 8163The default is ">". For Unix, if the 'shell' option contains "csh" 8164(e.g. "tcsh") during initializations, the default becomes ">&". 8165Otherwise, if it contains "sh" (e.g. "bash", "zsh"), the default 8166becomes ">%s 2>&1". This means that stderr is also included. For 8167Win32, the Unix checks are done and additionally "cmd" is checked 8168for, which makes the default ">%s 2>&1". 8169Also, the same names with ".exe" appended are checked for. 8170The initialization of this option is done after reading the vimrc 8171and the other initializations, so that when the 'shell' option is set 8172there, the 'shellredir' option changes automatically unless it was 8173explicitly set before. 8174In the future pipes may be used for filtering and this option will 8175become obsolete (at least for Unix). 8176*E1577* 8177Only a single "%s" item is allowed in the option value. 8178]=] , 8179full_name ='shellredir' , 8180scope ={ 'global' } , 8181secure =true , 8182short_desc =N_ ( 'string to put output of filter in a temp file' ), 8183type ='string' , 8184varname ='p_srr' , 8185} , 8186{ 8187abbreviation ='ssl' , 8188defaults ={ 8189condition ='MSWIN' , 8190if_true =false , 8191if_false =true , 8192doc =[[on; Windows: off, except when 'shell' 8193contains "sh" somewhere]] , 8194} , 8195desc =[=[ 8196only modifiable in MS-Windows 8197When set, a forward slash is used when expanding file names. This is 8198useful when a Unix-like shell is used instead of cmd.exe. Backward 8199slashes can still be typed, but they are changed to forward slashes by 8200Vim. 8201Note that setting or resetting this option has no effect for some 8202existing file names, thus this option needs to be set before opening 8203any file for best results. This might change in the future. 8204'shellslash' only works when a backslash can be used as a path 8205separator. To test if this is so use: >vim 8206if exists('+shellslash') 8207< Also see 'completeslash'. 8208]=] , 8209enable_if ='BACKSLASH_IN_FILENAME' , 8210full_name ='shellslash' , 8211scope ={ 'global' } , 8212short_desc =N_ ( 'use forward slash for shell file names' ), 8213type ='boolean' , 8214varname ='p_ssl' , 8215} , 8216{ 8217abbreviation ='stmp' , 8218defaults =false , 8219desc =[=[ 8220When on, use temp files for shell commands. When off use a pipe. 8221When using a pipe is not possible temp files are used anyway. 8222The advantage of using a pipe is that nobody can read the temp file 8223and the 'shell' command does not need to support redirection. 8224The advantage of using a temp file is that the file type and encoding 8225can be detected. 8226The |FilterReadPre|, |FilterReadPost| and |FilterWritePre|, 8227|FilterWritePost| autocommands event are not triggered when 8228'shelltemp' is off. 8229|system()| does not respect this option, it always uses pipes. 8230]=] , 8231full_name ='shelltemp' , 8232scope ={ 'global' } , 8233short_desc =N_ ( 'whether to use a temp file for shell commands' ), 8234type ='boolean' , 8235varname ='p_stmp' , 8236} , 8237{ 8238abbreviation ='sxe' , 8239defaults ='' , 8240desc =[=[ 8241When 'shellxquote' is set to "(" then the characters listed in this 8242option will be escaped with a '^' character. This makes it possible 8243to execute most external commands with cmd.exe. 8244]=] , 8245full_name ='shellxescape' , 8246scope ={ 'global' } , 8247secure =true , 8248short_desc =N_ ( "characters to escape when 'shellxquote' is (" ), 8249type ='string' , 8250varname ='p_sxe' , 8251} , 8252{ 8253abbreviation ='sxq' , 8254defaults ={ 8255if_true ='' , 8256doc =[[""; Windows, when 'shell' 8257contains "cmd" somewhere: "\""]] , 8258} , 8259desc =[=[ 8260Quoting character(s), put around the command passed to the shell, for 8261the "!" and ":!" commands. Includes the redirection. See 8262'shellquote' to exclude the redirection. It's probably not useful 8263to set both options. 8264When the value is '(' then ')' is appended. When the value is '"(' 8265then ')"' is appended. 8266When the value is '(' then also see 'shellxescape'. 8267]=] , 8268full_name ='shellxquote' , 8269scope ={ 'global' } , 8270secure =true , 8271short_desc =N_ ( "like 'shellquote', but include redirection" ), 8272type ='string' , 8273varname ='p_sxq' , 8274} , 8275{ 8276abbreviation ='sr' , 8277defaults =false , 8278desc =[=[ 8279Round indent to multiple of 'shiftwidth'. Applies to > and < 8280commands. CTRL-T and CTRL-D in Insert mode always round the indent to 8281a multiple of 'shiftwidth' (this is Vi compatible). 8282]=] , 8283full_name ='shiftround' , 8284scope ={ 'global' } , 8285short_desc =N_ ( 'round indent to multiple of shiftwidth' ), 8286type ='boolean' , 8287varname ='p_sr' , 8288} , 8289{ 8290abbreviation ='sw' , 8291cb ='did_set_shiftwidth_tabstop' , 8292defaults =8 , 8293desc =[=[ 8294Number of columns that make up one level of (auto)indentation. Used 8295by 'cindent', |<<|, |>>|, etc. 8296If set to 0, Vim uses the current 'tabstop' value. Use |shiftwidth()| 8297to obtain the effective value in scripts. 8298]=] , 8299full_name ='shiftwidth' , 8300scope ={ 'buf' } , 8301short_desc =N_ ( 'number of spaces to use for (auto)indent step' ), 8302type ='number' , 8303varname ='p_sw' , 8304} , 8305{ 8306abbreviation ='shm' , 8307validation_cb ='validate_shortmess' , 8308defaults ='ltToOCF' , 8309desc =[=[ 8310Controls display of file messages (e.g. CTRL-G) and various other 8311messages. 8312 8313It is a list of flags: 8314flag meaning when present ~ 8315l use "999L, 888B" instead of "999 lines, 888 bytes" *shm-l* 8316m use "[+]" instead of "[Modified]" *shm-m* 8317r use "[RO]" instead of "[readonly]" *shm-r* 8318w use "[w]" instead of "written" for file write message *shm-w* 8319and "[a]" instead of "appended" for ':w >> file' command 8320a all of the above abbreviations *shm-a* 8321 8322o overwrite message for writing a file with subsequent *shm-o* 8323message for reading a file (useful for ":wn" or when 8324'autowrite' on) 8325O message for reading a file overwrites any previous *shm-O* 8326message; also for quickfix message (e.g., ":cn") 8327s don't give "search hit BOTTOM, continuing at TOP" or *shm-s* 8328"search hit TOP, continuing at BOTTOM" messages; when using 8329the search count do not show "W" before the count message 8330(see |shm-S| below) 8331t truncate file message at the start if it is too long *shm-t* 8332to fit on the command-line, "<" will appear in the left most 8333column; ignored in Ex mode 8334T truncate other messages in the middle if they are too *shm-T* 8335long to fit on the command line; "..." will appear in the 8336middle; ignored in Ex mode 8337W don't give "written" or "[w]" when writing a file *shm-W* 8338A don't give the "ATTENTION" message when an existing *shm-A* 8339swap file is found 8340I don't give the intro message when starting Vim, *shm-I* 8341see |:intro| 8342c don't give |ins-completion-menu| messages; for *shm-c* 8343example, "-- XXX completion (YYY)", "match 1 of 2", "The only 8344match", "Pattern not found", "Back at original", etc. 8345C don't give messages while scanning for ins-completion *shm-C* 8346items, for instance "scanning tags" 8347q do not show "recording @a" when recording a macro *shm-q* 8348F don't give the file info when editing a file, like *shm-F* 8349`:silent` was used for the command; note that this also 8350affects messages from 'autoread' reloading 8351S do not show search count message when searching, e.g. *shm-S* 8352"[1/5]". When the "S" flag is not present (e.g. search count 8353is shown), the "search hit BOTTOM, continuing at TOP" and 8354"search hit TOP, continuing at BOTTOM" messages are only 8355indicated by a "W" (Mnemonic: Wrapped) letter before the 8356search count statistics. The maximum limit can be set with 8357the 'maxsearchcount' option, see also |searchcount()| 8358function. 8359u don't give undo and redo messages like *shm-u* 8360"1 line less; before #1 1 second ago", "Already at oldest 8361change" or "Already at newest change" 8362 8363This gives you the opportunity to avoid that a change between buffers 8364requires you to hit <Enter>, but still gives as useful a message as 8365possible for the space available. To get the whole message that you 8366would have got with 'shm' empty, use ":file!" 8367Useful values: 8368shm= No abbreviation of message. 8369shm=a Abbreviation, but no loss of information. 8370shm=at Abbreviation, and truncate message when necessary. 8371]=] , 8372expand_cb ='expand_set_shortmess' , 8373-- Generates kShm* flag constants; SHM_ALL_ABBREVIATIONS stays hand-defined in option_vars.h. 8374schema ={ 8375flagchars ={ 8376ro ='r' , -- Readonly. 8377mod ='m' , -- Modified. 8378lines ='l' , -- "L" instead of "lines". 8379wri ='w' , -- "[w]" instead of "written". 8380abbreviations ='a' , -- Use abbreviations from SHM_ALL_ABBREVIATIONS. 8381write ='W' , -- Don't use "written" at all. 8382trunc ='t' , -- Truncate file messages. 8383truncall ='T' , -- Truncate all messages. 8384over ='o' , -- Overwrite file messages. 8385overall ='O' , -- Overwrite more messages. 8386search ='s' , -- No search hit bottom messages. 8387attention ='A' , -- No ATTENTION messages. 8388intro ='I' , -- Intro messages. 8389completionmenu ='c' , -- Completion menu messages. 8390completionscan ='C' , -- Completion scanning messages. 8391recording ='q' , -- No recording message. 8392fileinfo ='F' , -- No file info messages. 8393searchcount ='S' , -- No search stats: '[1/10]'. 8394undo ='u' , -- No undo messages. 8395} , 8396} , 8397full_name ='shortmess' , 8398list ='flags' , 8399scope ={ 'global' } , 8400short_desc =N_ ( 'list of flags, reduce length of messages' ), 8401tags ={ 'E1336' } , 8402type ='string' , 8403varname ='p_shm' , 8404} , 8405{ 8406abbreviation ='sbr' , 8407validation_cb ='validate_showbreak' , 8408defaults ='' , 8409desc =[=[ 8410String to put at the start of lines that have been wrapped. Useful 8411values are "> " or "+++ ": >vim 8412let &showbreak = "> " 8413let &showbreak = '+++ ' 8414< Only printable single-cell characters are allowed, excluding <Tab> and 8415comma (in a future version the comma might be used to separate the 8416part that is shown at the end and at the start of a line). 8417The |hl-NonText| highlight group determines the highlighting. 8418Note that tabs after the showbreak will be displayed differently. 8419If you want the 'showbreak' to appear in between line numbers, add the 8420"n" flag to 'cpoptions'. 8421A window-local value overrules a global value. If the global value is 8422set and you want no value in the current window use NONE: >vim 8423setlocal showbreak=NONE 8424< 8425]=] , 8426full_name ='showbreak' , 8427redraw ={ 'all_windows' } , 8428scope ={ 'global' , 'win' } , 8429short_desc =N_ ( 'string to use at the start of wrapped lines' ), 8430tags ={ 'E595' } , 8431type ='string' , 8432varname ='p_sbr' , 8433} , 8434{ 8435abbreviation ='sc' , 8436defaults =true , 8437desc =[=[ 8438Show (partial) command in the last line of the screen. Set this 8439option off if your terminal is slow. 8440In Visual mode the size of the selected area is shown: 8441- When selecting characters within a line, the number of characters. 8442If the number of bytes is different it is also displayed: "2-6" 8443means two characters and six bytes. 8444- When selecting more than one line, the number of lines. 8445- When selecting a block, the size in screen characters: 8446{lines}x{columns}. 8447This information can be displayed in an alternative location using the 8448'showcmdloc' option, useful when 'cmdheight' is 0. 8449]=] , 8450full_name ='showcmd' , 8451scope ={ 'global' } , 8452short_desc =N_ ( 'show (partial) command in status line' ), 8453type ='boolean' , 8454varname ='p_sc' , 8455} , 8456{ 8457abbreviation ='sloc' , 8458cb ='did_set_showcmdloc' , 8459validation_cb ='validate_str_generic' , 8460defaults ='last' , 8461schema ={ 8462enum ={ 'last' , 'statusline' , 'tabline' } , 8463} , 8464desc =[=[ 8465This option can be used to display the (partially) entered command in 8466another location. Possible values are: 8467last Last line of the screen (default). 8468statusline Status line of the current window. 8469tabline First line of the screen if 'showtabline' is enabled. 8470Setting this option to "statusline" or "tabline" means that these will 8471be redrawn whenever the command changes, which can be on every key 8472pressed. 8473The %S 'statusline' item can be used in 'statusline' or 'tabline' to 8474place the text. Without a custom 'statusline' or 'tabline' it will be 8475displayed in a convenient location. 8476]=] , 8477full_name ='showcmdloc' , 8478scope ={ 'global' } , 8479short_desc =N_ ( 'change location of partial command' ), 8480type ='string' , 8481varname ='p_sloc' , 8482} , 8483{ 8484abbreviation ='sft' , 8485defaults =false , 8486desc =[=[ 8487When completing a word in insert mode (see |ins-completion|) from the 8488tags file, show both the tag name and a tidied-up form of the search 8489pattern (if there is one) as possible matches. Thus, if you have 8490matched a C function, you can see a template for what arguments are 8491required (coding style permitting). 8492Note that this doesn't work well together with having "longest" in 8493'completeopt', because the completion from the search pattern may not 8494match the typed text. 8495]=] , 8496full_name ='showfulltag' , 8497scope ={ 'global' } , 8498short_desc =N_ ( 'show full tag pattern when completing tag' ), 8499type ='boolean' , 8500varname ='p_sft' , 8501} , 8502{ 8503abbreviation ='sm' , 8504defaults =false , 8505desc =[=[ 8506When a bracket is inserted, briefly jump to the matching one. The 8507jump is only done if the match can be seen on the screen. The time to 8508show the match can be set with 'matchtime'. 8509A Beep is given if there is no match (no matter if the match can be 8510seen or not). 8511When the 'm' flag is not included in 'cpoptions', typing a character 8512will immediately move the cursor back to where it belongs. 8513See the "sm" field in 'guicursor' for setting the cursor shape and 8514blinking when showing the match. 8515The 'matchpairs' option can be used to specify the characters to show 8516matches for. 'rightleft' and 'revins' are used to look for opposite 8517matches. 8518Also see the matchparen plugin for highlighting the match when moving 8519around |pi_paren.txt|. 8520Note: Use of the short form is rated PG. 8521]=] , 8522full_name ='showmatch' , 8523scope ={ 'global' } , 8524short_desc =N_ ( 'briefly jump to matching bracket if insert one' ), 8525type ='boolean' , 8526varname ='p_sm' , 8527} , 8528{ 8529abbreviation ='smd' , 8530defaults =true , 8531desc =[=[ 8532If in Insert, Replace or Visual mode put a message on the last line. 8533The |hl-ModeMsg| highlight group determines the highlighting. 8534The option has no effect when 'cmdheight' is zero. 8535]=] , 8536full_name ='showmode' , 8537scope ={ 'global' } , 8538short_desc =N_ ( 'message on status line to show current mode' ), 8539type ='boolean' , 8540varname ='p_smd' , 8541} , 8542{ 8543abbreviation ='stal' , 8544cb ='did_set_showtabline' , 8545defaults =1 , 8546desc =[=[ 8547Specifies when the |tabpage| labels will be displayed: 85480: never 85491: only if there are at least two tabpages 85502: always 8551]=] , 8552full_name ='showtabline' , 8553redraw ={ 'all_windows' , 'ui_option' } , 8554scope ={ 'global' } , 8555short_desc =N_ ( 'tells when the tabpages line is displayed' ), 8556type ='number' , 8557varname ='p_stal' , 8558} , 8559{ 8560abbreviation ='ss' , 8561defaults =1 , 8562desc =[=[ 8563The minimal number of columns to scroll horizontally. Used only when 8564the 'wrap' option is off and the cursor is moved off of the screen. 8565When it is zero the cursor will be put in the middle of the screen. 8566When using a slow terminal set it to a large number or 0. Not used 8567for "zh" and "zl" commands. 8568]=] , 8569full_name ='sidescroll' , 8570scope ={ 'global' } , 8571short_desc =N_ ( 'minimum number of columns to scroll horizontal' ), 8572type ='number' , 8573varname ='p_ss' , 8574} , 8575{ 8576abbreviation ='siso' , 8577defaults =0 , 8578desc =[=[ 8579The minimal number of screen columns to keep to the left and to the 8580right of the cursor if 'nowrap' is set. Setting this option to a 8581value greater than 0 while having 'sidescroll' also at a non-zero 8582value makes some context visible in the line you are scrolling in 8583horizontally (except at beginning of the line). Setting this option 8584to a large value (like 999) has the effect of keeping the cursor 8585horizontally centered in the window, as long as one does not come too 8586close to the beginning of the line. 8587After using the local value, go back the global value with one of 8588these two: >vim 8589setlocal sidescrolloff< 8590setlocal sidescrolloff=-1 8591< 8592Example: Try this together with 'sidescroll' and 'listchars' as in the 8593following example to never allow the cursor to move onto the 8594"extends" character: >vim 8595 8596set nowrap sidescroll=1 listchars=extends:>,precedes:< 8597set sidescrolloff=1 8598< 8599]=] , 8600full_name ='sidescrolloff' , 8601scope ={ 'global' , 'win' } , 8602short_desc =N_ ( 'min. nr. of columns to left and right of cursor' ), 8603type ='number' , 8604varname ='p_siso' , 8605} , 8606{ 8607abbreviation ='scl' , 8608cb ='did_set_signcolumn' , 8609validation_cb ='validate_signcolumn' , 8610defaults ='auto' , 8611schema ={ 8612enum ={ 8613'yes' , 8614'no' , 8615'auto' , 8616'auto:1' , 8617'auto:2' , 8618'auto:3' , 8619'auto:4' , 8620'auto:5' , 8621'auto:6' , 8622'auto:7' , 8623'auto:8' , 8624'auto:9' , 8625'yes:1' , 8626'yes:2' , 8627'yes:3' , 8628'yes:4' , 8629'yes:5' , 8630'yes:6' , 8631'yes:7' , 8632'yes:8' , 8633'yes:9' , 8634'number' , 8635} , 8636} , 8637desc =[=[ 8638When and how to draw the signcolumn. Valid values are: 8639"auto" only when there is a sign to display 8640"auto:[1-9]" resize to accommodate multiple signs up to the 8641given number (maximum 9), e.g. "auto:4" 8642"auto:[1-8]-[2-9]" 8643resize to accommodate multiple signs up to the 8644given maximum number (maximum 9) while keeping 8645at least the given minimum (maximum 8) fixed 8646space. The minimum number should always be less 8647than the maximum number, e.g. "auto:2-5" 8648"no" never 8649"yes" always 8650"yes:[1-9]" always, with fixed space for signs up to the given 8651number (maximum 9), e.g. "yes:3" 8652"number" display signs in the 'number' column. If the number 8653column is not present, then behaves like "auto". 8654]=] , 8655full_name ='signcolumn' , 8656redraw ={ 'current_window' } , 8657scope ={ 'win' } , 8658short_desc =N_ ( 'when to display the sign column' ), 8659type ='string' , 8660} , 8661{ 8662abbreviation ='scs' , 8663defaults =false , 8664desc =[=[ 8665Override the 'ignorecase' option if the search pattern contains upper 8666case characters. Only used when the search pattern is typed and 8667'ignorecase' option is on. Used for the commands "/", "?", "n", "N", 8668":g" and ":s" and when filtering matches for the completion menu 8669|compl-states|. 8670Not used for "*", "#", "gd", tag search, etc. After "*" and "#" you 8671can make 'smartcase' used by doing a "/" command, recalling the search 8672pattern from history and hitting <Enter>. 8673]=] , 8674full_name ='smartcase' , 8675scope ={ 'global' } , 8676short_desc =N_ ( 'no ignore case when pattern has uppercase' ), 8677type ='boolean' , 8678varname ='p_scs' , 8679} , 8680{ 8681abbreviation ='si' , 8682defaults =false , 8683desc =[=[ 8684Do smart autoindenting when starting a new line. Works for C-like 8685programs, but can also be used for other languages. 'cindent' does 8686something like this, works better in most cases, but is more strict, 8687see |C-indenting|. When 'cindent' is on or 'indentexpr' is set, 8688setting 'si' has no effect. 'indentexpr' is a more advanced 8689alternative. 8690Normally 'autoindent' should also be on when using 'smartindent'. 8691An indent is automatically inserted: 8692- After a line ending in "{". 8693- After a line starting with a keyword from 'cinwords'. 8694- Before a line starting with "}" (only with the "O" command). 8695When typing '}' as the first character in a new line, that line is 8696given the same indent as the matching "{". 8697When typing '#' as the first character in a new line, the indent for 8698that line is removed, the '#' is put in the first column. The indent 8699is restored for the next line. If you don't want this, use this 8700mapping: ":inoremap # X^H#", where ^H is entered with CTRL-V CTRL-H. 8701When using the ">>" command, lines starting with '#' are not shifted 8702right. 8703]=] , 8704full_name ='smartindent' , 8705scope ={ 'buf' } , 8706short_desc =N_ ( 'smart autoindenting for C programs' ), 8707type ='boolean' , 8708varname ='p_si' , 8709} , 8710{ 8711abbreviation ='sta' , 8712defaults =true , 8713desc =[=[ 8714When enabled, the <Tab> key will indent by 'shiftwidth' if the cursor 8715is in leading whitespace. The <BS> key has the opposite effect. 8716In leading whitespace, this has the same effect as setting 8717'softtabstop' to the value of 'shiftwidth'. 8718NOTE: in most cases, using 'softtabstop' is a better option. Have a 8719look at section |30.5| of the user guide for detailed 8720explanations on how Vim works with tabs and spaces. 8721]=] , 8722full_name ='smarttab' , 8723scope ={ 'global' } , 8724short_desc =N_ ( "use 'shiftwidth' when inserting <Tab>" ), 8725type ='boolean' , 8726varname ='p_sta' , 8727} , 8728{ 8729abbreviation ='sms' , 8730cb ='did_set_smoothscroll' , 8731defaults =false , 8732desc =[=[ 8733Scrolling works with screen lines. When 'wrap' is set and the first 8734line in the window wraps part of it may not be visible, as if it is 8735above the window. "<<<" is displayed at the start of the first line, 8736highlighted with |hl-NonText|. 8737You may also want to add "lastline" to the 'display' option to show as 8738much of the last line as possible. 8739NOTE: partly implemented, doesn't work yet for |gj| and |gk|. 8740]=] , 8741full_name ='smoothscroll' , 8742redraw ={ 'current_window' } , 8743scope ={ 'win' } , 8744short_desc =N_ ( "scroll by screen lines when 'wrap' is set" ), 8745type ='boolean' , 8746} , 8747{ 8748abbreviation ='sts' , 8749defaults =0 , 8750desc =[=[ 8751Create soft tab stops, separated by 'softtabstop' number of columns. 8752In Insert mode, pressing the <Tab> key will move the cursor to the 8753next soft tab stop, instead of inserting a literal tab. <BS> behaves 8754similarly in reverse. Vim inserts a minimal mix of tab and space 8755characters to produce the visual effect. 8756 8757This setting does not affect the display of existing tab characters. 8758 8759A value of 0 disables this behaviour. A negative value makes Vim use 8760'shiftwidth'. If you plan to use 'sts' and 'shiftwidth' with 8761different values, you might consider setting 'smarttab'. 8762 8763The 'L' flag in 'cpoptions' alters tab behavior when 'list' is 8764enabled. See also |ins-expandtab| and user manual section |30.5| for 8765in-depth explanations. 8766 8767The value of 'softtabstop' will be ignored if 'varsofttabstop' is set 8768to anything other than an empty string. 8769]=] , 8770full_name ='softtabstop' , 8771scope ={ 'buf' } , 8772short_desc =N_ ( 'number of spaces that <Tab> uses while editing' ), 8773type ='number' , 8774varname ='p_sts' , 8775} , 8776{ 8777cb ='did_set_spell' , 8778defaults =false , 8779desc =[=[ 8780When on spell checking will be done. See |spell|. 8781The languages are specified with 'spelllang'. 8782]=] , 8783full_name ='spell' , 8784redraw ={ 'current_window' , 'highlight_only' } , 8785scope ={ 'win' } , 8786short_desc =N_ ( 'spell checking' ), 8787type ='boolean' , 8788} , 8789{ 8790abbreviation ='spc' , 8791cb ='did_set_spellcapcheck' , 8792defaults ='[.?!]\\_[\\])\'"\\t ]\\+' , 8793desc =[=[ 8794Pattern to locate the end of a sentence. The following word will be 8795checked to start with a capital letter. If not then it is highlighted 8796with SpellCap |hl-SpellCap| (unless the word is also badly spelled). 8797When this check is not wanted make this option empty. 8798Only used when 'spell' is set. 8799Be careful with special characters, see |option-backslash| about 8800including spaces and backslashes. 8801To set this option automatically depending on the language, see 8802|set-spc-auto|. 8803]=] , 8804full_name ='spellcapcheck' , 8805redraw ={ 'current_buffer' , 'highlight_only' } , 8806scope ={ 'buf' } , 8807short_desc =N_ ( 'pattern to locate end of a sentence' ), 8808type ='string' , 8809varname ='p_spc' , 8810} , 8811{ 8812abbreviation ='spf' , 8813cb ='did_set_spellfile' , 8814validation_cb ='validate_spellfile' , 8815defaults ='' , 8816deny_duplicates =true , 8817desc =[=[ 8818Name of the word list file where words are added for the |zg| and |zw| 8819commands. It must end in ".{encoding}.add". You need to include the 8820path, otherwise the file is placed in the current directory. 8821The path may include characters from 'isfname', ' ', ',', '@' and ':'. 8822*E765* 8823It may also be a comma-separated list of names. A count before the 8824|zg| and |zw| commands can be used to access each. This allows using 8825a personal word list file and a project word list file. 8826When a word is added while this option is empty Nvim will use 8827(and auto-create) `stdpath('data')/site/spell/`. For the file name the 8828first language name that appears in 'spelllang' is used, ignoring the 8829region. 8830The resulting ".spl" file will be used for spell checking, it does not 8831have to appear in 'spelllang'. 8832Normally one file is used for all regions, but you can add the region 8833name if you want to. However, it will then only be used when 8834'spellfile' is set to it, for entries in 'spelllang' only files 8835without region name will be found. 8836Environment variables are expanded |:set_env|. 8837]=] , 8838expand =true , 8839full_name ='spellfile' , 8840list ='onecomma' , 8841scope ={ 'buf' } , 8842secure =true , 8843short_desc =N_ ( 'files where |zg| and |zw| store words' ), 8844type ='string' , 8845varname ='p_spf' , 8846} , 8847{ 8848abbreviation ='spl' , 8849cb ='did_set_spelllang' , 8850validation_cb ='validate_spelllang' , 8851defaults ='en' , 8852deny_duplicates =true , 8853desc =[=[ 8854A comma-separated list of word list names. When the 'spell' option is 8855on spellchecking will be done for these languages. Example: >vim 8856set spelllang=en_us,nl,medical 8857< This means US English, Dutch and medical words are recognized. Words 8858that are not recognized will be highlighted. 8859The word list name must consist of alphanumeric characters, a dash or 8860an underscore. It should not include a comma or dot. Using a dash is 8861recommended to separate the two letter language name from a 8862specification. Thus "en-rare" is used for rare English words. 8863A region name must come last and have the form "_xx", where "xx" is 8864the two-letter, lower case region name. You can use more than one 8865region by listing them: "en_us,en_ca" supports both US and Canadian 8866English, but not words specific for Australia, New Zealand or Great 8867Britain. (Note: currently en_au and en_nz dictionaries are older than 8868en_ca, en_gb and en_us). 8869If the name "cjk" is included East Asian characters are excluded from 8870spell checking. This is useful when editing text that also has Asian 8871words. 8872Note that the "medical" dictionary does not exist, it is just an 8873example of a longer name. 8874*E757* 8875As a special case the name of a .spl file can be given as-is. The 8876first "_xx" in the name is removed and used as the region name 8877(_xx is an underscore, two letters and followed by a non-letter). 8878This is mainly for testing purposes. You must make sure the correct 8879encoding is used, Vim doesn't check it. 8880How the related spell files are found is explained here: |spell-load|. 8881 8882If the |package-spellfile| plugin is active and you use a language name 8883for which Vim cannot find the .spl file in 'runtimepath' the plugin 8884will ask you if you want to download the file. 8885 8886After this option has been set successfully, Vim will source the files 8887"spell/LANG.vim" in 'runtimepath'. "LANG" is the value of 'spelllang' 8888up to the first character that is not an ASCII letter or number and 8889not a dash. Also see |set-spc-auto|. 8890]=] , 8891expand =true , 8892full_name ='spelllang' , 8893list ='onecomma' , 8894redraw ={ 'current_buffer' , 'highlight_only' } , 8895scope ={ 'buf' } , 8896short_desc =N_ ( 'language(s) to do spell checking for' ), 8897type ='string' , 8898varname ='p_spl' , 8899} , 8900{ 8901abbreviation ='spo' , 8902cb ='did_set_spelloptions' , 8903validation_cb ='validate_str_generic' , 8904defaults ='' , 8905schema ={ 8906flags ={ 'camel' , 'noplainbuffer' } , 8907} , 8908deny_duplicates =true , 8909desc =[=[ 8910A comma-separated list of options for spell checking: 8911camel When a word is CamelCased, assume "Cased" is a 8912separate word: every upper-case character in a word 8913that comes after a lower case character indicates the 8914start of a new word. 8915noplainbuffer Only spellcheck a buffer when 'syntax' is enabled, 8916or when extmarks are set within the buffer. Only 8917designated regions of the buffer are spellchecked in 8918this case. 8919]=] , 8920full_name ='spelloptions' , 8921list ='onecomma' , 8922redraw ={ 'current_buffer' , 'highlight_only' } , 8923scope ={ 'buf' } , 8924secure =true , 8925type ='string' , 8926varname ='p_spo' , 8927} , 8928{ 8929abbreviation ='sps' , 8930cb ='did_set_spellsuggest' , 8931defaults ='best' , 8932-- Keep this in sync with spell_check_sps(). 8933schema ={ 8934set ={ 'best' , 'fast' , 'double' , 'expr:' , 'file:' , 'timeout:' } , 8935} , 8936deny_duplicates =true , 8937desc =[=[ 8938Methods used for spelling suggestions. Both for the |z=| command and 8939the |spellsuggest()| function. This is a comma-separated list of 8940items: 8941 8942best Internal method that works best for English. Finds 8943changes like "fast" and uses a bit of sound-a-like 8944scoring to improve the ordering. 8945 8946double Internal method that uses two methods and mixes the 8947results. The first method is "fast", the other method 8948computes how much the suggestion sounds like the bad 8949word. That only works when the language specifies 8950sound folding. Can be slow and doesn't always give 8951better results. 8952 8953fast Internal method that only checks for simple changes: 8954character inserts/deletes/swaps. Works well for 8955simple typing mistakes. 8956 8957{number} The maximum number of suggestions listed for |z=|. 8958Not used for |spellsuggest()|. The number of 8959suggestions is never more than the value of 'lines' 8960minus two. 8961 8962timeout:{millisec} Limit the time searching for suggestions to 8963{millisec} milliseconds. Applies to the following 8964methods. When omitted the limit is 5000. When 8965negative there is no limit. 8966 8967file:{filename} Read file {filename}, which must have two columns, 8968separated by a slash. The first column contains the 8969bad word, the second column the suggested good word. 8970Example: 8971theribal/terrible ~ 8972Use this for common mistakes that do not appear at the 8973top of the suggestion list with the internal methods. 8974Lines without a slash are ignored, use this for 8975comments. 8976The word in the second column must be correct, 8977otherwise it will not be used. Add the word to an 8978".add" file if it is currently flagged as a spelling 8979mistake. 8980The file is used for all languages. 8981 8982expr:{expr} Evaluate expression {expr}. Use a function to avoid 8983trouble with spaces. Best is to call a function 8984without arguments, see |expr-option-function|. 8985|v:val| holds the badly spelled word. The expression 8986must evaluate to a List of Lists, each with a 8987suggestion and a score. 8988Example: 8989[['the', 33], ['that', 44]] ~ 8990Set 'verbose' and use |z=| to see the scores that the 8991internal methods use. A lower score is better. 8992This may invoke |spellsuggest()| if you temporarily 8993set 'spellsuggest' to exclude the "expr:" part. 8994Errors are silently ignored, unless you set the 8995'verbose' option to a non-zero value. 8996 8997Only one of "best", "double" or "fast" may be used. The others may 8998appear several times in any order. Example: >vim 8999set sps=file:~/.config/nvim/sugg,best,expr:MySuggest() 9000< Environment variables are expanded |:set_env|. 9001]=] , 9002expand =true , 9003full_name ='spellsuggest' , 9004list ='onecomma' , 9005scope ={ 'global' } , 9006secure =true , 9007short_desc =N_ ( 'method(s) used to suggest spelling corrections' ), 9008tags ={ 'E5700' } , 9009type ='string' , 9010varname ='p_sps' , 9011} , 9012{ 9013abbreviation ='sb' , 9014defaults =false , 9015desc =[=[ 9016When on, splitting a window will put the new window below the current 9017one. |:split| 9018]=] , 9019full_name ='splitbelow' , 9020scope ={ 'global' } , 9021short_desc =N_ ( 'new window from split is below the current one' ), 9022type ='boolean' , 9023varname ='p_sb' , 9024} , 9025{ 9026abbreviation ='spk' , 9027cb ='did_set_splitkeep' , 9028validation_cb ='validate_str_generic' , 9029defaults ='cursor' , 9030schema ={ 9031enum ={ 'cursor' , 'screen' , 'topline' } , 9032} , 9033desc =[=[ 9034The value of this option determines the scroll behavior when opening, 9035closing or resizing horizontal splits. 9036 9037Possible values are: 9038cursor Keep the same relative cursor position. 9039screen Keep the text on the same screen line. 9040topline Keep the topline the same. 9041 9042For the "screen" and "topline" values, the cursor position will be 9043changed when necessary. In this case, the jumplist will be populated 9044with the previous cursor position. For "screen", the text cannot 9045always be kept on the same screen line when 'wrap' is enabled. 9046]=] , 9047full_name ='splitkeep' , 9048scope ={ 'global' } , 9049short_desc =N_ ( 'determines scroll behavior for split windows' ), 9050type ='string' , 9051varname ='p_spk' , 9052} , 9053{ 9054abbreviation ='spr' , 9055defaults =false , 9056desc =[=[ 9057When on, splitting a window will put the new window right of the 9058current one. |:vsplit| 9059]=] , 9060full_name ='splitright' , 9061scope ={ 'global' } , 9062short_desc =N_ ( 'new window is put right of the current one' ), 9063type ='boolean' , 9064varname ='p_spr' , 9065} , 9066{ 9067abbreviation ='sol' , 9068defaults =false , 9069desc =[=[ 9070When "on" the commands listed below move the cursor to the first 9071non-blank of the line. When off the cursor is kept in the same column 9072(if possible). This applies to the commands: 9073- CTRL-D, CTRL-U, CTRL-B, CTRL-F, "G", "H", "M", "L", "gg" 9074- "d", "<<", "==" and ">>" with a linewise operator 9075(|operator-resulting-pos|) 9076- "%" with a count 9077- buffer changing commands (CTRL-^, :bnext, :bNext, etc.) 9078- Ex commands that only have a line number, e.g., ":25" or ":+". 9079In case of buffer changing commands the cursor is placed at the column 9080where it was the last time the buffer was edited. 9081]=] , 9082full_name ='startofline' , 9083scope ={ 'global' } , 9084short_desc =N_ ( 'commands move cursor to first non-blank in line' ), 9085type ='boolean' , 9086varname ='p_sol' , 9087vim =false , 9088} , 9089{ 9090abbreviation ='stc' , 9091cb ='did_set_statuscolumn' , 9092validation_cb ='validate_statustabline_rulerformat' , 9093defaults ='' , 9094desc =[=[ 9095When non-empty, this option determines the content of the area to the 9096side of a window, normally containing the fold, sign and number columns. 9097The format of this option is like that of 'statusline'. 9098 9099Some of the items from the 'statusline' format are different for 9100'statuscolumn': 9101 9102%l line number column for currently drawn line 9103%s sign column for currently drawn line 9104%C fold column for currently drawn line 9105 9106The 'statuscolumn' width follows that of the default columns and 9107adapts to the 'numberwidth', 'signcolumn' and 'foldcolumn' option values 9108(regardless of whether the sign and fold items are present). 9109Additionally, the 'statuscolumn' grows with the size of the evaluated 9110format string, up to a point (following the maximum size of the default 9111fold, sign and number columns). Shrinking only happens when the number 9112of lines in a buffer changes, or the 'statuscolumn' option is set. 9113 9114The |v:lnum| variable holds the line number to be drawn. 9115The |v:relnum| variable holds the relative line number to be drawn. 9116The |v:virtnum| variable is negative when drawing virtual lines, zero 9117when drawing the actual buffer line, and positive when 9118drawing the wrapped part of a buffer line. 9119 9120When using |v:relnum|, keep in mind that cursor movement by itself will 9121not cause the 'statuscolumn' to update unless 'relativenumber' is set. 9122 9123Examples: >vim 9124" Line number with bar separator and click handlers: 9125set statuscolumn=%@SignCb@%s%=%T%@NumCb@%l│%T 9126 9127" Line numbers in hexadecimal for non wrapped part of lines: 9128let &stc='%=%{v:virtnum>0?"":printf("%x",v:lnum)} ' 9129 9130" Human readable line numbers with thousands separator: 9131let &stc='%{substitute(v:lnum,"\\d\\zs\\ze\\' 9132. '%(\\d\\d\\d\\)\\+$",",","g")}' 9133 9134" Both relative and absolute line numbers with different 9135" highlighting for odd and even relative numbers: 9136let &stc='%#NonText#%{&nu?v:lnum:""}' . 9137'%=%{&rnu&&(v:lnum%2)?"\ ".v:relnum:""}' . 9138'%#LineNr#%{&rnu&&!(v:lnum%2)?"\ ".v:relnum:""}' 9139 9140< WARNING: this expression is evaluated for each screen line so defining 9141an expensive expression can negatively affect render performance. 9142]=] , 9143full_name ='statuscolumn' , 9144redraw ={ 'current_window' } , 9145scope ={ 'win' } , 9146secure =true , 9147short_desc =N_ ( 'custom format for the status column' ), 9148type ='string' , 9149} , 9150{ 9151abbreviation ='stl' , 9152cb ='did_set_statusline' , 9153validation_cb ='validate_statustabline_rulerformat' , 9154defaults ={ 9155if_true =table . concat ( { 9156'%<' , -- guards the default truncation from the left against a %< injected via rulerformat 9157'%f' , 9158"%( %h%w%m%r%{ v:lua.require('vim._core.util').term_exitcode() }%)" , 9159'%= ' , 9160'%(%-10S %)' , 9161"%{ &busy > 0 ? '◐\226\128\175' : '' }" , -- use non-breaking space to avoid fillchar 9162"%(%{ 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 '''' ')} %)" , 9163"%{% luaeval('(package.loaded[''vim.diagnostic''] and next(vim.diagnostic.count(0)) and vim.diagnostic.status() .. '' '') or '''' ') %}" , 9164'%(%k %)' , 9165"%{% &ruler ? &rulerformat : '' %}" , 9166} ), 9167doc ='is very long' , 9168} , 9169desc =[=[ 9170Sets the |status-line|. 9171 9172Contains printf-style "%" items interspersed with normal text, where 9173each item has the form: > 9174%-0{minwid}.{maxwid}{item} 9175< 9176All fields except {item} are optional. Use "%%" to show a literal "%" 9177char. Setting to empty (`:set statusline=`) sets the global value to 9178the default. 9179 9180*stl-%!* 9181When the option starts with "%!" then it is used as an expression, 9182evaluated and the result is used as the option value. Example: >vim 9183set statusline=%!MyStatusLine() 9184< The *g:statusline_winid* variable will be set to the |window-ID| of the 9185window that the status line belongs to. 9186The result can contain %{} items that will be evaluated too. 9187Note that the "%!" expression is evaluated in the context of the 9188current window and buffer, while %{} items are evaluated in the 9189context of the window that the statusline belongs to. 9190 9191When there is an error while evaluating the option it will be reset to 9192its default value to avoid further errors. Otherwise screen updating 9193would loop. When the result contains unprintable characters the 9194result is unpredictable. 9195 9196When 'ruler' is on, the default 'statusline' includes 'rulerformat'. 9197See note below. 9198Note that if 'statusline' is configured without including the ruler, 9199the only effect of 'ruler' when this option is set (and 'laststatus' 9200is 2 or 3) is controlling the output of |CTRL-G|. 9201 9202field meaning ~ 9203- Left justify the item. The default is right justified 9204when minwid is larger than the length of the item. 92050 Leading zeroes in numeric items. Overridden by "-". 9206minwid Minimum width of the item, padding as set by "-" & "0". 9207Value must be 50 or less. 9208maxwid Maximum width of the item. Truncation occurs with a "<" 9209on the left for text items. Numeric items will be 9210shifted down to maxwid-2 digits followed by ">"number 9211where number is the amount of missing digits, much like 9212an exponential notation. 9213item A one letter code as described below. 9214 9215Following is a description of the possible statusline items. The 9216second character in "item" is the type: 9217"N" for number 9218"S" for string 9219"F" for flags as described below 9220"-" not applicable 9221 9222item meaning ~ 9223f S Path to the file in the buffer, as typed or relative to current 9224directory. 9225F S Full path to the file in the buffer. 9226t S File name (tail) of file in the buffer. 9227m F Modified flag, text is "[+]"; "[-]" if 'modifiable' is off. 9228M F Modified flag, text is ",+" or ",-". 9229r F Readonly flag, text is "[RO]". 9230R F Readonly flag, text is ",RO". 9231h F Help buffer flag, text is "[help]". 9232H F Help buffer flag, text is ",HLP". 9233w F Preview window flag, text is "[Preview]". 9234W F Preview window flag, text is ",PRV". 9235y F Type of file in the buffer, e.g., "[vim]". See 'filetype'. 9236Y F Type of file in the buffer, e.g., ",VIM". See 'filetype'. 9237q S "[Quickfix List]", "[Location List]" or empty. 9238k S Value of "b:keymap_name" or 'keymap' when |:lmap| mappings are 9239being used: "<keymap>" 9240n N Buffer number. 9241b N Value of character under cursor. 9242B N As above, in hexadecimal. 9243o N Byte number in file of byte under cursor, first byte is 1. 9244Mnemonic: Offset from start of file (with one added) 9245O N As above, in hexadecimal. 9246l N Line number. 9247L N Number of lines in buffer. 9248c N Column number (byte index). 9249v N Virtual column number (screen column). 9250V N Virtual column number as -{num}. Not displayed if equal to 'c'. 9251p N Percentage through file in lines as in |CTRL-G|. 9252P S Percentage through file of displayed window. This is like the 9253percentage described for 'ruler'. Always 3 in length, unless 9254translated. 9255S S 'showcmd' content, see 'showcmdloc'. 9256a S Argument list status as in default title. ({current} of {max}) 9257Empty if the argument file count is zero or one. 9258{ NF Evaluate expression between "%{" and "}" and substitute result. 9259Note that there is no "%" before the closing "}". The 9260expression cannot contain a "}" character, call a function to 9261work around that. See |stl-%{| below. Use "%0{" to insert the 9262result verbatim. 9263`{%` - This is almost same as "{" except the result of the expression is 9264re-evaluated as a statusline format string. Thus if the 9265return value of expr contains "%" items they will get expanded. 9266The expression can contain the "}" character, the end of 9267expression is denoted by "%}". 9268For example: >vim 9269func! Stl_filename() abort 9270return "%t" 9271endfunc 9272< `stl=%{Stl_filename()}` results in `"%t"` 9273`stl=%{%Stl_filename()%}` results in `"Name of current file"` 9274The default status line uses this to include 'rulerformat', see 9275note below. 9276%} - End of "{%" expression 9277( - Start of item group. Can be used for setting the width and 9278alignment of a section. Must be followed by %) somewhere. 9279) - End of item group. No width fields allowed. 9280T N For 'tabline': start of tabpage N label. Use %T or %X to end 9281the label. Clicking this label with left mouse button switches 9282to the specified tabpage, while clicking it with middle mouse 9283button closes the specified tabpage. 9284X N For 'tabline': start of close tab N label. Use %X or %T to end 9285the label, e.g.: %3Xclose%X. Use %999X for a "close current 9286tab" label. Clicking this label with left mouse button closes 9287the specified tabpage. 9288@ N Start of execute function label. Use %X or %T to end the label, 9289e.g.: %10@SwitchBuffer@foo.c%X. Clicking this label runs the 9290specified function: in the example when clicking once using left 9291mouse button on "foo.c", a `SwitchBuffer(10, 1, 'l', ' ')` 9292expression will be run. The specified function receives the 9293following arguments in order: 92941. minwid field value or zero if no N was specified 92952. number of mouse clicks to detect multiple clicks 92963. mouse button used: "l", "r" or "m" for left, right or middle 9297button respectively; one should not rely on third argument 9298being only "l", "r" or "m": any other non-empty string value 9299that contains only ASCII lower case letters may be expected 9300for other mouse buttons 93014. modifiers pressed: string which contains "s" if shift 9302modifier was pressed, "c" for control, "a" for alt and "m" 9303for meta; currently if modifier is not pressed string 9304contains space instead, but one should not rely on presence 9305of spaces or specific order of modifiers: use |stridx()| to 9306test whether some modifier is present; string is guaranteed 9307to contain only ASCII letters and spaces, one letter per 9308modifier; "?" modifier may also be present, but its presence 9309is a bug that denotes that new mouse button recognition was 9310added without modifying code that reacts on mouse clicks on 9311this label. 9312 9313Use |getmousepos()|.winid in the specified function to get the 9314corresponding |window-ID| of the clicked item. 9315\< - Where to truncate line if too long. Default is at the first 9316item. Truncation markers within item groups apply to the 9317truncation of that group until its maxwid is reached. 9318In case of several competing truncation markers, the first wins. 9319No width fields allowed. 9320= - Separation point between alignment sections. Each section will 9321be separated by an equal number of spaces. With one %= what 9322comes after it will be right-aligned. With two %= there is a 9323middle part, with white space left and right of it. 9324Alignment sections within item groups will be separated until 9325minwid of the group is reached. 9326No width fields allowed. 9327# - Set highlight group. The name must follow and then a # again. 9328Thus use %#HLname# for highlight group HLname. The same 9329highlighting is used, also for the statusline of non-current 9330windows. 9331$ - Same as `#`, except the `%$HLname$` group will inherit from 9332preceding highlight attributes. 9333* - Set highlight group to User{N}, where {N} is taken from the 9334minwid field, e.g. %1*. Restore normal highlight with %* or 9335%0*. The difference between User{N} and StatusLine will be 9336applied to StatusLineNC for the statusline of non-current 9337windows. 9338The number N must be between 1 and 9. See |hl-User1..9| 9339#( - Start of a highlight scope. The exact highlighting before the 9340scope is reset at the end. No width fields allowed. 9341#) - End of highlight scope. No width fields allowed. 9342 9343When displaying a flag, Vim removes the leading comma, if any, when 9344that flag comes right after plaintext. This will make a nice display 9345when flags are used like in the examples below. 9346 9347When all items in a group becomes an empty string (i.e. flags that are 9348not set) and a minwid is not set for the group, the whole group will 9349become empty. This will make a group like the following disappear 9350completely from the statusline when none of the flags are set. >vim 9351set statusline=...%(\ [%M%R%H]%)... 9352< Beware that an expression is evaluated each and every time the status 9353line is displayed. 9354*stl-%{* *g:actual_curbuf* *g:actual_curwin* 9355While evaluating %{} the current buffer and current window will be set 9356temporarily to that of the window (and buffer) whose statusline is 9357currently being drawn. The expression will evaluate in this context. 9358The variable "g:actual_curbuf" is set to the `bufnr()` number of the 9359real current buffer and "g:actual_curwin" to the |window-ID| of the 9360real current window. These values are strings. 9361 9362The 'statusline' option will be evaluated in the |sandbox| if set from 9363a modeline, see |sandbox-option|. 9364This option cannot be set in a modeline when 'modelineexpr' is off. 9365 9366It is not allowed to change text or jump to another window while 9367evaluating 'statusline' |textlock|. 9368 9369If the statusline is not updated when you want it (e.g., after setting 9370a variable that's used in an expression), you can force an update by 9371using `:redrawstatus`. 9372 9373A result of all digits is regarded a number for display purposes. 9374Otherwise the result is taken as flag text and applied to the rules 9375described above. 9376*stl-%0{* 9377With %0{ neither applies: the result is inserted as a literal string. 9378 9379Watch out for errors in expressions. They may render Vim unusable! 9380If you are stuck, hold down ':' or 'Q' to get a prompt, then quit and 9381edit your vimrc or whatever with "vim --clean" to get it right. 9382 9383Examples: 9384A simple version of the standard status line with 'ruler' set >vim 9385set statusline=%f\ %h%w%m%r%=\ %-14.(%l,%c%V%)\ %P 9386< Similar, but add ASCII value of char under the cursor (like "ga") >vim 9387set statusline=%f%h%m%r%=\ %b\ 0x%B\ \ %l,%c%V\ %P 9388< Display byte count and byte value, modified flag in red. >vim 9389set statusline=%f%=\ [%1*%M%*%n%R%H]\ %-19(%3l,%02c%03V%)%O'%02b' 9390hi User1 term=inverse,bold cterm=inverse,bold ctermfg=red 9391< Display a ,GZ flag if a compressed file is loaded >vim 9392set statusline=...%r%{VarExists('b:gzflag','\ [GZ]')}%h... 9393< In the |:autocmd|'s: >vim 9394let b:gzflag = 1 9395< And: >vim 9396unlet b:gzflag 9397< And define this function: >vim 9398function VarExists(var, val) 9399if exists(a:var) | return a:val | else | return '' | endif 9400endfunction 9401< 9402Note: By default, the status line is truncated from the left, and the 9403ruler from the right. But the status line can include the ruler. 9404To ensure that a top-level (i.e. not inside an item group) `%<` in 9405'rulerformat' doesn't change the truncation of the status line, 9406- 'statusline' can be prepended with an explicit `%<`, which otherwise 9407would not be necessary. Example: >vim 9408set statusline=%<%f%=\ %{%&rulerformat%} 9409< - Or the ruler can be wrapped in an item group, which also collapses 9410any top-level `%=` in 'rulerformat' unless minwid is specified: >vim 9411set statusline=%f%=\ %(%{%&rulerformat%}%) 9412< 9413]=] , 9414full_name ='statusline' , 9415modelineexpr =true , 9416redraw ={ 'statuslines' } , 9417scope ={ 'global' , 'win' } , 9418short_desc =N_ ( 'custom format for the status line' ), 9419tags ={ 'E540' , 'E542' } , 9420type ='string' , 9421varname ='p_stl' , 9422} , 9423{ 9424abbreviation ='su' , 9425defaults ='.bak,~,.o,.h,.info,.swp,.obj' , 9426deny_duplicates =true , 9427desc =[=[ 9428Files with these suffixes get a lower priority when multiple files 9429match a wildcard. See |suffixes|. Commas can be used to separate the 9430suffixes. Spaces after the comma are ignored. A dot is also seen as 9431the start of a suffix. To avoid a dot or comma being recognized as a 9432separator, precede it with a backslash (see |option-backslash| about 9433including spaces and backslashes). 9434See 'wildignore' for completely ignoring files. 9435The use of |:set+=| and |:set-=| is preferred when adding or removing 9436suffixes from the list. This avoids problems when a future version 9437uses another default. 9438]=] , 9439full_name ='suffixes' , 9440list ='onecomma' , 9441scope ={ 'global' } , 9442short_desc =N_ ( 'suffixes that are ignored with multiple match' ), 9443type ='string' , 9444varname ='p_su' , 9445} , 9446{ 9447abbreviation ='sua' , 9448defaults ='' , 9449deny_duplicates =true , 9450desc =[=[ 9451Comma-separated list of suffixes, which are used when searching for a 9452file for the "gf", "[I", etc. commands. Example: >vim 9453set suffixesadd=.java 9454< 9455]=] , 9456full_name ='suffixesadd' , 9457list ='onecomma' , 9458scope ={ 'buf' } , 9459short_desc =N_ ( 'suffixes added when searching for a file' ), 9460type ='string' , 9461varname ='p_sua' , 9462} , 9463{ 9464abbreviation ='swf' , 9465cb ='did_set_swapfile' , 9466defaults =true , 9467desc =[=[ 9468Use a |swap-file| for the buffer (if 'updatecount' is non-zero). The 9469'directory' option decides where swapfiles are stored. 9470 9471To open a new buffer without creating a swapfile, use |:noswapfile|. 9472To disable for an existing buffer, reset its 'swapfile' option. 9473Careful: 9474- Recovery will be impossible! 9475- The entire file will be in memory. 9476 9477When reset, the swapfile for the current buffer is immediately 9478deleted. When re-enabled (and 'updatecount' is non-zero), a swapfile 9479is immediately created. 9480 9481Used with 'bufhidden' and 'buftype' to specify |special-buffers|. 9482]=] , 9483full_name ='swapfile' , 9484redraw ={ 'statuslines' } , 9485scope ={ 'buf' } , 9486short_desc =N_ ( 'whether to use a swapfile for a buffer' ), 9487type ='boolean' , 9488varname ='p_swf' , 9489} , 9490{ 9491abbreviation ='swb' , 9492validation_cb ='validate_str_generic' , 9493defaults ='uselast' , 9494schema ={ 9495flags ={ 'useopen' , 'usetab' , 'split' , 'newtab' , 'vsplit' , 'uselast' } , 9496} , 9497deny_duplicates =true , 9498desc =[=[ 9499This option controls the behavior when switching between buffers. 9500This option is checked, when 9501- jumping to errors with the |quickfix| commands (|:cc|, |:cn|, |:cp|, 9502etc.). 9503- jumping to a tag using the |:stag| command. 9504- opening a file using the |CTRL-W_f| or |CTRL-W_F| command. 9505- jumping to a buffer using a buffer split command (e.g. |:sbuffer|, 9506|:sbnext|, or |:sbrewind|). 9507Possible values (comma-separated list): 9508useopen If included, jump to the first open window in the 9509current tabpage that contains the specified buffer 9510(if there is one). Otherwise: Do not examine other 9511windows. 9512usetab Like "useopen", but also consider windows in other 9513tabpages. 9514split If included, split the current window before loading 9515a buffer for a |quickfix| command that display errors. 9516Otherwise: do not split, use current window (when used 9517in the quickfix window: the previously used window or 9518split if there is no other window). 9519vsplit Just like "split" but split vertically. 9520newtab Like "split", but open a new tabpage. Overrules 9521"split" when both are present. 9522uselast If included, jump to the previously used window when 9523jumping to errors with |quickfix| commands. 9524If a window has 'winfixbuf' enabled, 'switchbuf' is currently not 9525applied to the split window. 9526]=] , 9527full_name ='switchbuf' , 9528list ='onecomma' , 9529scope ={ 'global' } , 9530short_desc =N_ ( 'sets behavior when switching to another buffer' ), 9531type ='string' , 9532varname ='p_swb' , 9533flags_varname ='swb_flags' , 9534} , 9535{ 9536abbreviation ='smc' , 9537defaults =3000 , 9538desc =[=[ 9539Maximum column in which to search for syntax items. In long lines the 9540text after this column is not highlighted and following lines may not 9541be highlighted correctly, because the syntax state is cleared. 9542This helps to avoid very slow redrawing for an XML file that is one 9543long line. 9544Set to zero to remove the limit. 9545]=] , 9546full_name ='synmaxcol' , 9547redraw ={ 'current_buffer' } , 9548scope ={ 'buf' } , 9549short_desc =N_ ( 'maximum column to find syntax items' ), 9550type ='number' , 9551varname ='p_smc' , 9552} , 9553{ 9554abbreviation ='syn' , 9555cb ='did_set_filetype_or_syntax' , 9556validation_cb ='validate_filetype' , 9557defaults ='' , 9558desc =[=[ 9559When this option is set, the syntax with this name is loaded, unless 9560syntax highlighting has been switched off with ":syntax off". 9561Otherwise this option does not always reflect the current syntax (the 9562b:current_syntax variable does). 9563This option is most useful in a modeline, for a file which syntax is 9564not automatically recognized. Example, in an IDL file: >c 9565/* vim: set syntax=idl : */ 9566< When a dot appears in the value then this separates two filetype 9567names. Example: >c 9568/* vim: set syntax=c.doxygen : */ 9569< This will use the "c" syntax first, then the "doxygen" syntax. 9570Note that the second one must be prepared to be loaded as an addition, 9571otherwise it will be skipped. More than one dot may appear. 9572To switch off syntax highlighting for the current file, use: >vim 9573set syntax=OFF 9574< To switch syntax highlighting on according to the current value of the 9575'filetype' option: >vim 9576set syntax=ON 9577< What actually happens when setting the 'syntax' option is that the 9578Syntax autocommand event is triggered with the value as argument. 9579This option is not copied to another buffer, independent of the 's' or 9580'S' flag in 'cpoptions'. 9581Only alphanumeric characters, '.', '-' and '_' can be used. 9582]=] , 9583full_name ='syntax' , 9584noglob =true , 9585normal_fname_chars =true , 9586scope ={ 'buf' } , 9587short_desc =N_ ( 'syntax to be loaded for current buffer' ), 9588type ='string' , 9589varname ='p_syn' , 9590} , 9591{ 9592abbreviation ='tcl' , 9593validation_cb ='validate_str_generic' , 9594defaults ='' , 9595schema ={ 9596flags ={ 'left' , 'uselast' } , 9597} , 9598deny_duplicates =true , 9599desc =[=[ 9600This option controls the behavior when closing tabpages (e.g., using 9601|:tabclose|). When empty Vim goes to the next (right) tabpage. 9602 9603Possible values (comma-separated list): 9604left If included, go to the previous tabpage instead of 9605the next one. 9606uselast If included, go to the previously used tabpage if 9607possible. This option takes precedence over the 9608others. 9609]=] , 9610full_name ='tabclose' , 9611list ='onecomma' , 9612scope ={ 'global' } , 9613short_desc =N_ ( 'which tabpage to focus when closing a tab' ), 9614type ='string' , 9615varname ='p_tcl' , 9616flags_varname ='tcl_flags' , 9617} , 9618{ 9619abbreviation ='tal' , 9620cb ='did_set_tabline' , 9621validation_cb ='validate_statustabline_rulerformat' , 9622defaults ='' , 9623desc =[=[ 9624When non-empty, this option determines the content of the tabpages 9625line at the top of the Vim window. When empty Vim will use a default 9626tabpages line. See |setting-tabline| for more info. 9627 9628The tabpages line only appears as specified with the 'showtabline' 9629option and only when there is no GUI tab line. When 'e' is in 9630'guioptions' and the GUI supports a tab line 'guitablabel' is used 9631instead. Note that the two tabpages lines are very different. 9632 9633The value is evaluated like with 'statusline'. You can use 9634|tabpagenr()|, |tabpagewinnr()| and |tabpagebuflist()| to figure out 9635the text to be displayed. Use "%1T" for the first label, "%2T" for 9636the second one, etc. Use "%X" items for closing labels. 9637 9638When changing something that is used in 'tabline' that does not 9639trigger it to be updated, use |:redrawtabline|. 9640This option cannot be set in a modeline when 'modelineexpr' is off. 9641 9642Keep in mind that only one of the tabpages is the current one, others 9643are invisible and you can't jump to their windows. 9644]=] , 9645full_name ='tabline' , 9646modelineexpr =true , 9647redraw ={ 'tabline' } , 9648scope ={ 'global' } , 9649short_desc =N_ ( 'custom format for the console tabpages line' ), 9650type ='string' , 9651varname ='p_tal' , 9652} , 9653{ 9654abbreviation ='tpm' , 9655defaults =50 , 9656desc =[=[ 9657Maximum number of tabpages to be opened by the |-p| command line 9658argument or the ":tab all" command. |tabpage| 9659]=] , 9660full_name ='tabpagemax' , 9661scope ={ 'global' } , 9662short_desc =N_ ( 'maximum number of tabpages for |-p| and "tab all"' ), 9663type ='number' , 9664varname ='p_tpm' , 9665} , 9666{ 9667abbreviation ='ts' , 9668cb ='did_set_shiftwidth_tabstop' , 9669defaults =8 , 9670desc =[=[ 9671Defines the column multiple used to display the Horizontal Tab 9672character (ASCII 9); a Horizontal Tab always advances to the next tab 9673stop. 9674The value must be at least 1 and at most 9999. 9675If 'vartabstop' is set, this option is ignored. 9676Leave it at 8 unless you have a strong reason (see usr |30.5|). 9677]=] , 9678full_name ='tabstop' , 9679redraw ={ 'current_buffer' } , 9680scope ={ 'buf' } , 9681short_desc =N_ ( 'number of spaces that <Tab> in file uses' ), 9682type ='number' , 9683varname ='p_ts' , 9684} , 9685{ 9686abbreviation ='tbs' , 9687defaults =true , 9688desc =[=[ 9689When searching for a tag (e.g., for the |:ta| command), Vim can either 9690use a binary search or a linear search in a tags file. Binary 9691searching makes searching for a tag a LOT faster, but a linear search 9692will find more tags if the tags file wasn't properly sorted. 9693Vim normally assumes that your tags files are sorted, or indicate that 9694they are not sorted. Only when this is not the case does the 9695'tagbsearch' option need to be switched off. 9696 9697When 'tagbsearch' is on, binary searching is first used in the tags 9698files. In certain situations, Vim will do a linear search instead for 9699certain files, or retry all files with a linear search. When 9700'tagbsearch' is off, only a linear search is done. 9701 9702Linear searching is done anyway, for one file, when Vim finds a line 9703at the start of the file indicating that it's not sorted: > 9704!_TAG_FILE_SORTED 0 /some comment/ 9705< [The whitespace before and after the '0' must be a single <Tab>] 9706 9707When a binary search was done and no match was found in any of the 9708files listed in 'tags', and case is ignored or a pattern is used 9709instead of a normal tag name, a retry is done with a linear search. 9710Tags in unsorted tags files, and matches with different case will only 9711be found in the retry. 9712 9713If a tag file indicates that it is case-fold sorted, the second, 9714linear search can be avoided when case is ignored. Use a value of '2' 9715in the "!_TAG_FILE_SORTED" line for this. A tag file can be case-fold 9716sorted with the -f switch to "sort" in most unices, as in the command: 9717"sort -f -o tags tags". For Universal ctags and Exuberant ctags 9718version 5.x or higher (at least 5.5) the --sort=foldcase switch can be 9719used for this as well. Note that case must be folded to uppercase for 9720this to work. 9721 9722By default, tag searches are case-sensitive. Case is ignored when 9723'ignorecase' is set and 'tagcase' is "followic", or when 'tagcase' is 9724"ignore". 9725Also when 'tagcase' is "followscs" and 'smartcase' is set, or 9726'tagcase' is "smart", and the pattern contains only lowercase 9727characters. 9728 9729When 'tagbsearch' is off, tags searching is slower when a full match 9730exists, but faster when no full match exists. Tags in unsorted tags 9731files may only be found with 'tagbsearch' off. 9732When the tags file is not sorted, or sorted in a wrong way (not on 9733ASCII byte value), 'tagbsearch' should be off, or the line given above 9734must be included in the tags file. 9735This option doesn't affect commands that find all matching tags (e.g., 9736command-line completion and ":help"). 9737]=] , 9738full_name ='tagbsearch' , 9739scope ={ 'global' } , 9740short_desc =N_ ( 'use binary searching in tags files' ), 9741type ='boolean' , 9742varname ='p_tbs' , 9743} , 9744{ 9745abbreviation ='tc' , 9746cb ='did_set_tagcase' , 9747validation_cb ='validate_str_generic' , 9748defaults ='followic' , 9749schema ={ 9750flags ={ 'followic' , 'ignore' , 'match' , 'followscs' , 'smart' } , 9751} , 9752desc =[=[ 9753This option specifies how case is handled when searching the tags 9754file: 9755followic Follow the 'ignorecase' option 9756followscs Follow the 'smartcase' and 'ignorecase' options 9757ignore Ignore case 9758match Match case 9759smart Ignore case unless an upper case letter is used 9760]=] , 9761full_name ='tagcase' , 9762scope ={ 'global' , 'buf' } , 9763short_desc =N_ ( 'how to handle case when searching in tags files' ), 9764type ='string' , 9765varname ='p_tc' , 9766flags_varname ='tc_flags' , 9767} , 9768{ 9769abbreviation ='tfu' , 9770defaults ='' , 9771desc =[=[ 9772This option specifies a function to be used to perform tag searches 9773(including |taglist()|). 9774The function gets the tag pattern and should return a List of matching 9775tags. See |tag-function| for an explanation of how to write the 9776function and an example. The value can be the name of a function, a 9777|lambda| or a |Funcref|. See |option-value-function| for more 9778information. 9779]=] , 9780full_name ='tagfunc' , 9781scope ={ 'buf' } , 9782secure =true , 9783short_desc =N_ ( 'function used to perform tag searches' ), 9784type ='func' , 9785varname ='p_tfu' , 9786} , 9787{ 9788abbreviation ='tl' , 9789defaults =0 , 9790desc =[=[ 9791If non-zero, tags are significant up to this number of characters. 9792]=] , 9793full_name ='taglength' , 9794scope ={ 'global' } , 9795short_desc =N_ ( 'number of significant characters for a tag' ), 9796type ='number' , 9797varname ='p_tl' , 9798} , 9799{ 9800abbreviation ='tr' , 9801defaults =true , 9802desc =[=[ 9803If on and using a tags file in another directory, file names in that 9804tags file are relative to the directory where the tags file is. 9805]=] , 9806full_name ='tagrelative' , 9807scope ={ 'global' } , 9808short_desc =N_ ( 'file names in tag file are relative' ), 9809type ='boolean' , 9810varname ='p_tr' , 9811} , 9812{ 9813abbreviation ='tag' , 9814defaults ='./tags;,tags' , 9815deny_duplicates =true , 9816desc =[=[ 9817Filenames for the tag command, separated by spaces or commas. To 9818include a space or comma in a file name, precede it with backslashes 9819(see |option-backslash| about including spaces/commas and backslashes). 9820When a file name starts with "./", the '.' is replaced with the path 9821of the current file. But only when the 'd' flag is not included in 9822'cpoptions'. Environment variables are expanded |:set_env|. Also see 9823|tags-option|. 9824"*", "**" and other wildcards can be used to search for tags files in 9825a directory tree. See |file-searching|. E.g., "/lib/**/tags" will 9826find all files named "tags" below "/lib". The filename itself cannot 9827contain wildcards, it is used as-is. E.g., "/lib/**/tags?" will find 9828files called "tags?". 9829The |tagfiles()| function can be used to get a list of the file names 9830actually used. 9831The use of |:set+=| and |:set-=| is preferred when adding or removing 9832file names from the list. This avoids problems when a future version 9833uses another default. 9834]=] , 9835expand =true , 9836full_name ='tags' , 9837list ='onecomma' , 9838scope ={ 'global' , 'buf' } , 9839short_desc =N_ ( 'list of file names used by the tag command' ), 9840tags ={ 'E433' } , 9841type ='string' , 9842varname ='p_tags' , 9843} , 9844{ 9845abbreviation ='tgst' , 9846defaults =true , 9847desc =[=[ 9848When on, the |tagstack| is used normally. When off, a ":tag" or 9849":tselect" command with an argument will not push the tag onto the 9850tagstack. A following ":tag" without an argument, a ":pop" command or 9851any other command that uses the tagstack will use the unmodified 9852tagstack, but does change the pointer to the active entry. 9853Resetting this option is useful when using a ":tag" command in a 9854mapping which should not change the tagstack. 9855]=] , 9856full_name ='tagstack' , 9857scope ={ 'global' } , 9858short_desc =N_ ( 'push tags onto the tag stack' ), 9859type ='boolean' , 9860varname ='p_tgst' , 9861} , 9862{ 9863abbreviation ='tbidi' , 9864defaults =false , 9865desc =[=[ 9866The terminal is in charge of Bi-directionality of text (as specified 9867by Unicode). The terminal is also expected to do the required shaping 9868that some languages (such as Arabic) require. 9869Setting this option implies that 'rightleft' will not be set when 9870'arabic' is set and the value of 'arabicshape' will be ignored. 9871Note that setting 'termbidi' has the immediate effect that 9872'arabicshape' is ignored, but 'rightleft' isn't changed automatically. 9873For further details see |l10n-arabic.txt|. 9874]=] , 9875full_name ='termbidi' , 9876scope ={ 'global' } , 9877short_desc =N_ ( 'terminal takes care of bi-directionality' ), 9878type ='boolean' , 9879varname ='p_tbidi' , 9880} , 9881{ 9882abbreviation ='tenc' , 9883defaults ='' , 9884full_name ='termencoding' , 9885scope ={ 'global' } , 9886short_desc =N_ ( 'Terminal encoding' ), 9887type ='string' , 9888immutable =true , 9889} , 9890{ 9891abbreviation ='tgc' , 9892defaults =false , 9893desc =[=[ 9894Enables 24-bit RGB color in the |TUI|. Uses "gui" |:highlight| 9895attributes instead of "cterm" attributes. |guifg| 9896Requires an ISO-8613-3 compatible terminal. 9897 9898Nvim will automatically attempt to determine if the host terminal 9899supports 24-bit color and will enable this option if it does 9900(unless explicitly disabled by the user). 9901]=] , 9902full_name ='termguicolors' , 9903redraw ={ 'ui_option' } , 9904scope ={ 'global' } , 9905short_desc =N_ ( 'Terminal true color support' ), 9906type ='boolean' , 9907varname ='p_tgc' , 9908} , 9909{ 9910abbreviation ='tpf' , 9911validation_cb ='validate_str_generic' , 9912defaults ='BS,HT,ESC,DEL' , 9913schema ={ 9914flags ={ 'BS' , 'HT' , 'FF' , 'ESC' , 'DEL' , 'C0' , 'C1' } , 9915} , 9916deny_duplicates =true , 9917desc =[=[ 9918A comma-separated list of options for specifying control characters 9919to be removed from the text pasted into the terminal window. The 9920supported values are: 9921 9922BS Backspace 9923 9924HT TAB 9925 9926FF Form feed 9927 9928ESC Escape 9929 9930DEL DEL 9931 9932C0 Other control characters, excluding Line feed and 9933Carriage return < ' ' 9934 9935C1 Control characters 0x80...0x9F 9936]=] , 9937full_name ='termpastefilter' , 9938list ='onecomma' , 9939scope ={ 'global' } , 9940type ='string' , 9941varname ='p_tpf' , 9942flags_varname ='tpf_flags' , 9943} , 9944{ 9945defaults =true , 9946desc =[=[ 9947If the host terminal supports it, buffer all screen updates 9948made during a redraw cycle so that each screen is displayed in 9949the terminal all at once. This can prevent tearing or flickering 9950when the terminal updates faster than Nvim can redraw. 9951]=] , 9952full_name ='termsync' , 9953redraw ={ 'ui_option' } , 9954scope ={ 'global' } , 9955short_desc =N_ ( 'synchronize redraw output with the host terminal' ), 9956type ='boolean' , 9957varname ='p_termsync' , 9958} , 9959{ 9960defaults =false , 9961full_name ='terse' , 9962scope ={ 'global' } , 9963short_desc =N_ ( 'Deprecated' ), 9964type ='boolean' , 9965immutable =true , 9966} , 9967{ 9968abbreviation ='tw' , 9969cb ='did_set_textwidth' , 9970defaults =0 , 9971desc =[=[ 9972Maximum width of text that is being inserted. A longer line will be 9973broken after white space to get this width. A zero value disables 9974this. 9975When 'textwidth' is zero, 'wrapmargin' may be used. See also 9976'formatoptions' and |ins-textwidth|. 9977When 'formatexpr' is set it will be used to break the line. 9978]=] , 9979full_name ='textwidth' , 9980redraw ={ 'current_buffer' , 'highlight_only' } , 9981scope ={ 'buf' } , 9982short_desc =N_ ( 'maximum width of text that is being inserted' ), 9983type ='number' , 9984varname ='p_tw' , 9985} , 9986{ 9987abbreviation ='tsr' , 9988defaults ='' , 9989deny_duplicates =true , 9990desc =[=[ 9991List of file names, separated by commas, that are used to lookup words 9992for thesaurus completion commands |i_CTRL-X_CTRL-T|. See 9993|compl-thesaurus|. 9994 9995This option is not used if 'thesaurusfunc' is set, either for the 9996buffer or globally. 9997 9998To include a comma in a file name precede it with a backslash. Spaces 9999after a comma are ignored, otherwise spaces are included in the file 10000name. See |option-backslash| about using backslashes. The use of 10001|:set+=| and |:set-=| is preferred when adding or removing directories 10002from the list. This avoids problems when a future version uses 10003another default. 10004Environment variables are expanded |:set_env|. 10005Backticks cannot be used in this option for security reasons. 10006]=] , 10007expand =true , 10008full_name ='thesaurus' , 10009list ='onecomma' , 10010normal_dname_chars =true , 10011scope ={ 'global' , 'buf' } , 10012short_desc =N_ ( 'list of thesaurus files for keyword completion' ), 10013type ='string' , 10014varname ='p_tsr' , 10015} , 10016{ 10017abbreviation ='tsrfu' , 10018defaults ='' , 10019desc =[=[ 10020This option specifies a function to be used for thesaurus completion 10021with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|. 10022The value can be the name of a function, a |lambda| or a |Funcref|. 10023See |option-value-function| for more information. 10024]=] , 10025full_name ='thesaurusfunc' , 10026scope ={ 'global' , 'buf' } , 10027secure =true , 10028short_desc =N_ ( 'function used for thesaurus completion' ), 10029type ='func' , 10030varname ='p_tsrfu' , 10031} , 10032{ 10033abbreviation ='top' , 10034defaults =false , 10035desc =[=[ 10036When on: The tilde command "~" behaves like an operator. 10037]=] , 10038full_name ='tildeop' , 10039scope ={ 'global' } , 10040short_desc =N_ ( 'tilde command "~" behaves like an operator' ), 10041type ='boolean' , 10042varname ='p_to' , 10043} , 10044{ 10045abbreviation ='to' , 10046defaults =true , 10047desc =[=[ 10048This option and 'timeoutlen' determine the behavior when part of a 10049mapped key sequence has been received. For example, if <c-f> is 10050pressed and 'timeout' is set, Nvim will wait 'timeoutlen' milliseconds 10051for any key that can follow <c-f> in a mapping. 10052]=] , 10053full_name ='timeout' , 10054scope ={ 'global' } , 10055short_desc =N_ ( 'time out on mappings and key codes' ), 10056type ='boolean' , 10057varname ='p_timeout' , 10058} , 10059{ 10060abbreviation ='tm' , 10061defaults =1000 , 10062desc =[=[ 10063Time in milliseconds to wait for a mapped sequence to complete. 10064]=] , 10065full_name ='timeoutlen' , 10066scope ={ 'global' } , 10067short_desc =N_ ( 'time out time in milliseconds' ), 10068type ='number' , 10069varname ='p_tm' , 10070} , 10071{ 10072cb ='did_set_title_icon' , 10073defaults =false , 10074desc =[=[ 10075If enabled, Nvim will update the (GUI or terminal) window title. The 10076format is configured by 'titlestring'. By default it looks like: > 10077filename [+=-] (path) - Nvim 10078< 10079where: > 10080filename the name of the file being edited 10081- indicates the file cannot be modified, 'ma' off 10082+ indicates the file was modified 10083= indicates the file is read-only 10084=+ indicates the file is read-only and modified 10085(path) is the path of the file being edited 10086- Nvim the server name |v:servername| or "Nvim" 10087< 10088]=] , 10089full_name ='title' , 10090scope ={ 'global' } , 10091short_desc =N_ ( 'set the title of the window' ), 10092type ='boolean' , 10093varname ='p_title' , 10094} , 10095{ 10096cb ='did_set_titlelen' , 10097defaults =85 , 10098desc =[=[ 10099Gives the percentage of 'columns' to use for the length of the window 10100title. When the title is longer, only the end of the path name is 10101shown. A '<' character before the path name is used to indicate this. 10102Using a percentage makes this adapt to the width of the window. But 10103it won't work perfectly, because the actual number of characters 10104available also depends on the font used and other things in the title 10105bar. When 'titlelen' is zero the full path is used. Otherwise, 10106values from 1 to 30000 percent can be used. 10107'titlelen' is also used for the 'titlestring' option. 10108]=] , 10109full_name ='titlelen' , 10110scope ={ 'global' } , 10111short_desc =N_ ( "of 'columns' used for window title" ), 10112type ='number' , 10113varname ='p_titlelen' , 10114} , 10115{ 10116defaults ='' , 10117desc =[=[ 10118If not empty, this option will be used to set the window title when 10119exiting. Only if 'title' is enabled. 10120]=] , 10121full_name ='titleold' , 10122no_mkrc =true , 10123scope ={ 'global' } , 10124secure =true , 10125short_desc =N_ ( 'title, restored when exiting' ), 10126type ='string' , 10127varname ='p_titleold' , 10128} , 10129{ 10130cb ='did_set_titlestring' , 10131defaults ='' , 10132desc =[=[ 10133Formats the window title, enabled by the 'title' option. 10134 10135Contains printf-style "%" items, expanded according to the rules of 10136'statusline'. If a "%" format is invalid, it is used as-is and no 10137error will be given. 10138 10139The default (empty) behaviour is equivalent to: >vim 10140set titlestring=%t%(\ %M%)%(\ \(%{expand('%:p:~:h')}\)%)%a\ -\ Nvim 10141< 10142Example: >vim 10143auto BufEnter * let &titlestring = hostname() .. "/" .. expand("%:p") 10144set title titlestring=%<%F%=%l/%L-%P titlelen=70 10145< The value of 'titlelen' is used to align items in the middle 10146or right of the available space. 10147 10148Example: to have the file name first: >vim 10149set titlestring=%t%(\ %M%)%(\ (%{expand(\"%:~:.:h\")})%)%(\ %a%) 10150< Note the use of "%{ }" and an expression to get the path of 10151the file, without the file name. The "%( %)" constructs add a 10152separating space only when needed. 10153 10154NOTE: Use of special characters in 'titlestring' may cause the display 10155to be garbled (e.g., when it contains a CR or NL character). 10156 10157This option cannot be set in a modeline when 'modelineexpr' is off. 10158]=] , 10159full_name ='titlestring' , 10160modelineexpr =true , 10161scope ={ 'global' } , 10162short_desc =N_ ( 'to use for the Vim window title' ), 10163type ='string' , 10164varname ='p_titlestring' , 10165} , 10166{ 10167defaults =true , 10168desc =[=[ 10169This option and 'ttimeoutlen' determine the behavior when part of a 10170key code sequence has been received by the |TUI|. 10171 10172For example if <Esc> (the \x1b byte) is received and 'ttimeout' is 10173set, Nvim waits 'ttimeoutlen' milliseconds for the terminal to 10174complete a key code sequence. If no input arrives before the timeout, 10175a single <Esc> is assumed. Many TUI cursor key codes start with <Esc>. 10176 10177On very slow systems this may fail, causing cursor keys not to work 10178sometimes. If you discover this problem you can ":set ttimeoutlen=9999". 10179Nvim will wait for the next character to arrive after an <Esc>. 10180]=] , 10181full_name ='ttimeout' , 10182redraw ={ 'ui_option' } , 10183scope ={ 'global' } , 10184short_desc =N_ ( 'out on mappings' ), 10185type ='boolean' , 10186varname ='p_ttimeout' , 10187} , 10188{ 10189abbreviation ='ttm' , 10190defaults =50 , 10191desc =[=[ 10192Time in milliseconds to wait for a key code sequence to complete. Also 10193used for CTRL-\ CTRL-N and CTRL-\ CTRL-G when part of a command has 10194been typed. 10195]=] , 10196full_name ='ttimeoutlen' , 10197redraw ={ 'ui_option' } , 10198scope ={ 'global' } , 10199short_desc =N_ ( 'time out time for key codes in milliseconds' ), 10200type ='number' , 10201varname ='p_ttm' , 10202} , 10203{ 10204abbreviation ='tf' , 10205defaults =true , 10206desc =[=[ 10207Enables Nvim |TUI| features which assume a fast (usually local) host 10208terminal. During startup, Nvim queries the terminal (for 'background' 10209detection, etc.) and must wait for a response (or timeout). 10210 10211If your terminal environment is slow (e.g. remote SSH), or broken 10212(doesn't respond to queries), Nvim startup may be slower. Therefore 10213you can disable this option by setting the `$NVIM_NOTTYFAST` 10214environment variable before starting Nvim: > 10215NVIM_NOTTYFAST=1 nvim 10216< 10217 10218The queries are performed early, before |--cmd| and user |config|, so 10219`:set nottyfast` in your config happens too late. 10220]=] , 10221full_name ='ttyfast' , 10222no_mkrc =true , 10223scope ={ 'global' } , 10224short_desc =N_ ( 'assume terminal responds quickly, enabling more features' ), 10225-- Vim E1568: https://github.com/vim/vim/blob/0f9218851dc91a855c3d186ccd05f550907cf37e/src/errors.h#L3791 10226tags ={ 'E1568' , '$NVIM_NOTTYFAST' } , 10227type ='boolean' , 10228varname ='p_tf' , 10229} , 10230{ 10231abbreviation ='udir' , 10232defaults ='' , 10233deny_duplicates =true , 10234desc =[=[ 10235List of directory names for undo files, separated with commas. 10236See 'backupdir' for details of the format. 10237"." means using the directory of the file. The undo file name for 10238"file.txt" is ".file.txt.un~". 10239For other directories the file name is the full path of the edited 10240file, with path separators replaced with "%". 10241When writing: The first directory that exists is used. "." always 10242works, no directories after "." will be used for writing. If none of 10243the directories exist Nvim will attempt to create the last directory in 10244the list. 10245When reading all entries are tried to find an undo file. The first 10246undo file that exists is used. When it cannot be read an error is 10247given, no further entry is used. 10248See |undo-persistence|. 10249Environment variables are expanded |:set_env|. 10250 10251Note that unlike 'directory' and 'backupdir', 'undodir' always acts as 10252though the trailing slashes are present (see 'backupdir' for what this 10253means). 10254]=] , 10255expand ='nodefault' , 10256full_name ='undodir' , 10257list ='onecomma' , 10258scope ={ 'global' } , 10259secure =true , 10260short_desc =N_ ( 'where to store undo files' ), 10261tags ={ 'E5003' } , 10262type ='string' , 10263varname ='p_udir' , 10264} , 10265{ 10266abbreviation ='udf' , 10267cb ='did_set_undofile' , 10268defaults =false , 10269desc =[=[ 10270When on, Vim automatically saves undo history to an undo file when 10271writing a buffer to a file, and restores undo history from the same 10272file on buffer read. 10273The directory where the undo file is stored is specified by 'undodir'. 10274For more information about this feature see |undo-persistence|. 10275The undo file is not read when 'undoreload' causes the buffer from 10276before a reload to be saved for undo. 10277When 'undofile' is turned off the undo file is NOT deleted. 10278]=] , 10279full_name ='undofile' , 10280scope ={ 'buf' } , 10281short_desc =N_ ( 'save undo information in a file' ), 10282type ='boolean' , 10283varname ='p_udf' , 10284} , 10285{ 10286abbreviation ='ul' , 10287cb ='did_set_undolevels' , 10288defaults =1000 , 10289desc =[=[ 10290Maximum number of changes that can be undone. Since undo information 10291is kept in memory, higher numbers will cause more memory to be used. 10292Nevertheless, a single change can already use a large amount of 10293memory. Set to 0 for Vi compatibility: One level of undo and "u" 10294undoes itself: >vim 10295set ul=0 10296< But you can also get Vi compatibility by including the 'u' flag in 10297'cpoptions', and still be able to use CTRL-R to repeat undo. 10298Also see |undo-two-ways|. 10299Set to -1 for no undo at all. You might want to do this only for the 10300current buffer: >vim 10301setlocal ul=-1 10302< This helps when you run out of memory for a single change. 10303 10304The local value is set to -123456 when the global value is to be used. 10305 10306Also see |clear-undo|. 10307]=] , 10308full_name ='undolevels' , 10309scope ={ 'global' , 'buf' } , 10310short_desc =N_ ( 'maximum number of changes that can be undone' ), 10311type ='number' , 10312varname ='p_ul' , 10313} , 10314{ 10315abbreviation ='ur' , 10316defaults =10000 , 10317desc =[=[ 10318Save the whole buffer for undo when reloading it. This applies to the 10319":e!" command and reloading for when the buffer changed outside of 10320Vim. |FileChangedShell| 10321The save only happens when this option is negative or when the number 10322of lines is smaller than the value of this option. 10323Set this option to zero to disable undo for a reload. 10324 10325When saving undo for a reload, any undo file is not read. 10326 10327Note that this causes the whole buffer to be stored in memory. Set 10328this option to a lower value if you run out of memory. 10329]=] , 10330full_name ='undoreload' , 10331scope ={ 'global' } , 10332short_desc =N_ ( 'max nr of lines to save for undo on a buffer reload' ), 10333type ='number' , 10334varname ='p_ur' , 10335} , 10336{ 10337abbreviation ='uc' , 10338cb ='did_set_updatecount' , 10339defaults =200 , 10340desc =[=[ 10341The |swap-file| will be written after typing this many characters. 10342 10343- Ignored in buffers where 'buftype' is "nofile" or "nowrite". 10344- Initialized to 10000 when editing in readonly |-R| mode. 10345- To disable swapfiles per-buffer, unset the 'swapfile' option. 10346- To disable swapfiles globally, set this option to zero (or start 10347with |-n|). See |crash-recovery|. Existing swapfiles are not deleted. 10348- When re-enabled (from zero to non-zero), swapfiles are created for 10349all buffers that have 'swapfile' set. 10350]=] , 10351full_name ='updatecount' , 10352scope ={ 'global' } , 10353short_desc =N_ ( 'after this many characters flush swap file' ), 10354type ='number' , 10355varname ='p_uc' , 10356} , 10357{ 10358abbreviation ='ut' , 10359defaults =4000 , 10360desc =[=[ 10361If this many milliseconds nothing is typed the swap file will be 10362written to disk (see |crash-recovery|). Also used for the 10363|CursorHold| autocommand event. 10364]=] , 10365full_name ='updatetime' , 10366scope ={ 'global' } , 10367short_desc =N_ ( 'after this many milliseconds flush swap file' ), 10368type ='number' , 10369varname ='p_ut' , 10370} , 10371{ 10372abbreviation ='vsts' , 10373cb ='did_set_varsofttabstop' , 10374defaults ='' , 10375desc =[=[ 10376Defines variable-width soft tab stops. The value is a comma-separated 10377list of widths in columns. Each width defines the number of columns 10378before the next soft tab stop. The last value repeats indefinitely. 10379 10380For example, when editing assembly language files where statements 10381start in the 9th column and comments in the 41st, it may be useful 10382to use the following: >vim 10383set varsofttabstop=8,32,8 10384< This sets soft tab stops at column 8, then at column 40 (8 + 32), and 10385every 8 columns thereafter. 10386 10387Note: this setting overrides 'softtabstop'. 10388See section |30.5| of the user manual for detailed explanations on how 10389Vim works with tabs and spaces. 10390]=] , 10391full_name ='varsofttabstop' , 10392list ='comma' , 10393scope ={ 'buf' } , 10394short_desc =N_ ( 'list of numbers of spaces that <Tab> uses while editing' ), 10395type ='string' , 10396varname ='p_vsts' , 10397} , 10398{ 10399abbreviation ='vts' , 10400cb ='did_set_vartabstop' , 10401defaults ='' , 10402desc =[=[ 10403Defines variable-width tab stops. The value is a comma-separated list 10404of widths in columns. Each width defines the number of columns before 10405the next tab stop; the last value repeats indefinitely. 10406 10407For example: > 10408:set vartabstop=4,8 10409< This places the first tab stop 4 columns from the start of the line 10410and each subsequent tab stop 8 columns apart. 10411 10412Note: this setting overrides 'tabstop'. 10413On UNIX, it is recommended to keep the default tabstop value of 8. 10414Consider setting 'varsofttabstop' instead. 10415See section |30.5| of the user manual for detailed explanations on how 10416Vim works with tabs and spaces. 10417]=] , 10418full_name ='vartabstop' , 10419list ='comma' , 10420redraw ={ 'current_buffer' } , 10421scope ={ 'buf' } , 10422short_desc =N_ ( 'list of numbers of spaces that <Tab> in file uses' ), 10423type ='string' , 10424varname ='p_vts' , 10425} , 10426{ 10427abbreviation ='vbs' , 10428defaults =0 , 10429desc =[=[ 10430Sets the verbosity level. Also set by |-V| and |:verbose|. 10431 10432Tracing of assignments to options, mappings, etc. in Lua scripts is 10433enabled at level 1; Lua scripts are not traced when 'verbose' is 0, 10434for performance. 10435 10436If greater than or equal to a given level, Nvim produces the following 10437messages: 10438 10439Level Messages ~ 10440---------------------------------------------------------------------- 104411 Enables Lua tracing (see above). Does not produce messages. 104422 When a file is ":source"'ed, or |shada| file is read or written. 104433 UI info, terminal capabilities. 104444 Shell commands. 104455 Every searched tags file and include file. 104468 Files for which a group of autocommands is executed. 104479 Executed autocommands. 1044811 Finding items in a path. 1044912 Vimscript function calls. 1045013 When an exception is thrown, caught, finished, or discarded. 1045114 Anything pending in a ":finally" clause. 1045215 Ex commands from a script (truncated at 200 characters). 1045316 Ex commands. 10454 10455If 'verbosefile' is set then the verbose messages are not displayed. 10456]=] , 10457full_name ='verbose' , 10458redraw ={ 'ui_option' } , 10459scope ={ 'global' } , 10460short_desc =N_ ( 'give informative messages' ), 10461type ='number' , 10462varname ='p_verbose' , 10463} , 10464{ 10465abbreviation ='vfile' , 10466cb ='did_set_verbosefile' , 10467defaults ='' , 10468desc =[=[ 10469When not empty all messages are written in a file with this name. 10470When the file exists messages are appended. 10471Writing to the file ends when Vim exits or when 'verbosefile' is made 10472empty. Writes are buffered, thus may not show up for some time. 10473Setting 'verbosefile' to a new value is like making it empty first. 10474The difference with |:redir| is that verbose messages are not 10475displayed when 'verbosefile' is set. 10476Environment variables are expanded |:set_env|. 10477]=] , 10478expand =true , 10479full_name ='verbosefile' , 10480scope ={ 'global' } , 10481secure =true , 10482short_desc =N_ ( 'file to write messages in' ), 10483type ='string' , 10484varname ='p_vfile' , 10485} , 10486{ 10487abbreviation ='vdir' , 10488defaults ='' , 10489desc =[=[ 10490Name of the directory where to store files for |:mkview|. 10491Environment variables are expanded |:set_env|. 10492]=] , 10493expand ='nodefault' , 10494full_name ='viewdir' , 10495scope ={ 'global' } , 10496secure =true , 10497short_desc =N_ ( 'directory where to store files with :mkview' ), 10498type ='string' , 10499varname ='p_vdir' , 10500} , 10501{ 10502abbreviation ='vop' , 10503cb ='did_set_str_generic' , 10504validation_cb ='validate_str_generic' , 10505defaults ='folds,cursor,curdir' , 10506deny_duplicates =true , 10507desc =[=[ 10508Changes the effect of the |:mkview| command. It is a comma-separated 10509list of words. Each word enables saving and restoring something: 10510word save and restore ~ 10511cursor cursor position in file and in window 10512curdir local current directory, if set with |:lcd| 10513folds manually created folds, opened/closed folds and local 10514fold options 10515options options and mappings local to a window or buffer (not 10516global values for local options), except Lua functions 10517|option-value-function|. 10518localoptions same as "options" 10519slash |deprecated| Always enabled. Uses "/" in filenames. 10520unix |deprecated| Always enabled. Uses "\n" line endings. 10521]=] , 10522expand_cb ='expand_set_str_generic' , 10523full_name ='viewoptions' , 10524list ='onecomma' , 10525scope ={ 'global' } , 10526short_desc =N_ ( 'specifies what to save for :mkview' ), 10527type ='string' , 10528varname ='p_vop' , 10529flags_varname ='vop_flags' , 10530} , 10531{ 10532abbreviation ='ve' , 10533cb ='did_set_virtualedit' , 10534validation_cb ='validate_str_generic' , 10535defaults ='' , 10536schema ={ 10537flags ={ 10538{ 'block' , 0x05 } , 10539{ 'insert' , 0x06 } , 10540{ 'all' , 0x04 } , 10541{ 'onemore' , 0x08 } , 10542{ 'none' , 0x10 } , 10543{ 'NONE' , 0x20 , 'NoneU' } , -- alternative spelling of "none" (C token override) 10544} , 10545} , 10546deny_duplicates =true , 10547desc =[=[ 10548A comma-separated list of these words: 10549block Allow virtual editing in Visual block mode. 10550insert Allow virtual editing in Insert mode. 10551all Allow virtual editing in all modes. 10552onemore Allow the cursor to move just past the end of the line 10553none When used as the local value, do not allow virtual 10554editing even when the global value is set. When used 10555as the global value, "none" is the same as "". 10556NONE Alternative spelling of "none". 10557 10558Virtual editing means that the cursor can be positioned where there is 10559no actual character. This can be halfway into a tab or beyond the end 10560of the line. Useful for selecting a rectangle in Visual mode and 10561editing a table. 10562"onemore" is not the same, it will only allow moving the cursor just 10563after the last character of the line. This makes some commands more 10564consistent. Previously the cursor was always past the end of the line 10565if the line was empty. But it is far from Vi compatible. It may also 10566break some plugins or Vim scripts. For example because |l| can move 10567the cursor after the last character. Use with care! 10568Using the `$` command will move to the last character in the line, not 10569past it. This may actually move the cursor to the left! 10570The `g$` command will move to the end of the screen line. 10571It doesn't make sense to combine "all" with "onemore", but you will 10572not get a warning for it. 10573When combined with other words, "none" is ignored. 10574]=] , 10575full_name ='virtualedit' , 10576list ='onecomma' , 10577redraw ={ 'curswant' } , 10578scope ={ 'global' , 'win' } , 10579short_desc =N_ ( 'when to use virtual editing' ), 10580type ='string' , 10581varname ='p_ve' , 10582flags_varname ='ve_flags' , 10583} , 10584{ 10585abbreviation ='vb' , 10586defaults =false , 10587desc =[=[ 10588Use visual bell instead of beeping. Also see 'errorbells'. 10589]=] , 10590full_name ='visualbell' , 10591scope ={ 'global' } , 10592short_desc =N_ ( 'use visual bell instead of beeping' ), 10593type ='boolean' , 10594varname ='p_vb' , 10595} , 10596{ 10597defaults =true , 10598desc =[=[ 10599Give a warning message when a shell command is used while the buffer 10600has been changed. 10601]=] , 10602full_name ='warn' , 10603scope ={ 'global' } , 10604short_desc =N_ ( 'for shell command when buffer was changed' ), 10605type ='boolean' , 10606varname ='p_warn' , 10607} , 10608{ 10609abbreviation ='ww' , 10610validation_cb ='validate_whichwrap' , 10611defaults ='b,s' , 10612desc =[=[ 10613Allow specified keys that move the cursor left/right to move to the 10614previous/next line when the cursor is on the first/last character in 10615the line. Concatenate characters to allow this for these keys: 10616char key mode ~ 10617b <BS> Normal and Visual 10618s <Space> Normal and Visual 10619h "h" Normal and Visual (not recommended) 10620l "l" Normal and Visual (not recommended) 10621< <Left> Normal and Visual 10622> <Right> Normal and Visual 10623~ "~" Normal 10624[ <Left> Insert and Replace 10625] <Right> Insert and Replace 10626For example: >vim 10627set ww=<,>,[,] 10628< allows wrap only when cursor keys are used. 10629When the movement keys are used in combination with a delete or change 10630operator, the <EOL> also counts for a character. This makes "3h" 10631different from "3dh" when the cursor crosses the end of a line. This 10632is also true for "x" and "X", because they do the same as "dl" and 10633"dh". If you use this, you may also want to use the mapping 10634":map <BS> X" to make backspace delete the character in front of the 10635cursor. 10636When 'l' is included and it is used after an operator at the end of a 10637line (not an empty line) then it will not move to the next line. This 10638makes "dl", "cl", "yl" etc. work normally. 10639]=] , 10640expand_cb ='expand_set_whichwrap' , 10641full_name ='whichwrap' , 10642list ='flagscomma' , 10643scope ={ 'global' } , 10644short_desc =N_ ( 'allow specified keys to cross line boundaries' ), 10645type ='string' , 10646varname ='p_ww' , 10647} , 10648{ 10649abbreviation ='wc' , 10650validation_cb ='validate_wildchar' , 10651defaults ={ 10652if_true =macros ( 'TAB' , 'number' ), 10653doc ='<Tab>' , 10654} , 10655desc =[=[ 10656Character you have to type to start wildcard expansion in the 10657command-line, as specified with 'wildmode'. 10658More info here: |cmdline-completion|. 10659The character is not recognized when used inside a macro. See 10660'wildcharm' for that. 10661Some keys will not work, such as CTRL-C, <CR> and Enter. 10662<Esc> can be used, but hitting it twice in a row will still exit 10663command-line as a failsafe measure. 10664Although 'wc' is a number option, it can be specified as a number, a 10665single character, a |key-notation| (e.g. <Up>, <C-F>) or a letter 10666preceded with a caret (e.g. `^F` is CTRL-F): >vim 10667:set wc=27 10668:set wc=X 10669:set wc=^I 10670set wc=<Tab> 10671< 'wildchar' also enables completion in search pattern contexts such as 10672|/|, |?|, |:s|, |:g|, |:v|, and |:vim|. To insert a literal <Tab> 10673instead of triggering completion, type <C-V><Tab> or "\t". 10674See also 'wildoptions' and |wildtrigger()|. 10675]=] , 10676full_name ='wildchar' , 10677scope ={ 'global' } , 10678short_desc =N_ ( 'command-line character for wildcard expansion' ), 10679type ='number' , 10680varname ='p_wc' , 10681} , 10682{ 10683abbreviation ='wcm' , 10684validation_cb ='validate_wildchar' , 10685defaults =0 , 10686desc =[=[ 10687'wildcharm' works exactly like 'wildchar', except that it is 10688recognized when used inside a macro. You can find "spare" 10689command-line keys suitable for this option by looking at 10690|ex-edit-index|. Normally you'll never actually type 'wildcharm', 10691just use it in mappings that automatically invoke completion mode, 10692e.g.: >vim 10693set wcm=<C-Z> 10694cnoremap ss so $vim/sessions/*.vim<C-Z> 10695< Then after typing :ss you can use CTRL-P & CTRL-N. 10696]=] , 10697full_name ='wildcharm' , 10698scope ={ 'global' } , 10699short_desc =N_ ( "like 'wildchar' but also works when mapped" ), 10700type ='number' , 10701varname ='p_wcm' , 10702} , 10703{ 10704abbreviation ='wig' , 10705defaults ='' , 10706deny_duplicates =true , 10707desc =[=[ 10708A list of file patterns. A file that matches with one of these 10709patterns is ignored when expanding |wildcards|, completing file or 10710directory names, and influences the result of |expand()|, |glob()| and 10711|globpath()| unless a flag is passed to disable this. 10712The pattern is used like with |:autocmd|, see |autocmd-pattern|. 10713Also see 'suffixes'. 10714Example: >vim 10715set wildignore=*.o,*.obj 10716< The use of |:set+=| and |:set-=| is preferred when adding or removing 10717a pattern from the list. This avoids problems when a future version 10718uses another default. 10719]=] , 10720full_name ='wildignore' , 10721list ='onecomma' , 10722scope ={ 'global' } , 10723short_desc =N_ ( 'files matching these patterns are not completed' ), 10724type ='string' , 10725varname ='p_wig' , 10726} , 10727{ 10728abbreviation ='wic' , 10729defaults =false , 10730desc =[=[ 10731When set case is ignored when completing file names and directories. 10732Has no effect when 'fileignorecase' is set. 10733Does not apply when the shell is used to expand wildcards, which 10734happens when there are special characters. 10735]=] , 10736full_name ='wildignorecase' , 10737scope ={ 'global' } , 10738short_desc =N_ ( 'ignore case when completing file names' ), 10739type ='boolean' , 10740varname ='p_wic' , 10741} , 10742{ 10743abbreviation ='wmnu' , 10744defaults =true , 10745desc =[=[ 10746When 'wildmenu' is on, command-line completion operates in an enhanced 10747mode. On pressing 'wildchar' (usually <Tab>) to invoke completion, 10748the possible matches are shown. 10749When 'wildoptions' contains "pum", then the completion matches are 10750shown in a popup menu. Otherwise they are displayed just above the 10751command line, with the first match highlighted (overwriting the status 10752line, if there is one). 10753Keys that show the previous/next match, such as <Tab> or 10754CTRL-P/CTRL-N, cause the highlight to move to the appropriate match. 10755'wildmode' must specify "full": "longest" and "list" do not start 10756'wildmenu' mode. You can check the current mode with |wildmenumode()|. 10757The menu is cancelled when a key is hit that is not used for selecting 10758a completion. 10759 10760While the menu is active these keys have special meanings: 10761CTRL-P - go to the previous entry 10762CTRL-N - go to the next entry 10763<Left> <Right> - select previous/next match (like CTRL-P/CTRL-N) 10764<PageUp> - select a match several entries back 10765<PageDown> - select a match several entries further 10766<Up> - in filename/menu name completion: move up into 10767parent directory or parent menu. 10768<Down> - in filename/menu name completion: move into a 10769subdirectory or submenu. 10770<CR> - in menu completion, when the cursor is just after a 10771dot: move into a submenu. 10772CTRL-E - end completion, go back to what was there before 10773selecting a match. 10774CTRL-Y - accept the currently selected match and stop 10775completion. 10776 10777If you want <Left> and <Right> to move the cursor instead of selecting 10778a different match, use this: >vim 10779cnoremap <Left> <Space><BS><Left> 10780cnoremap <Right> <Space><BS><Right> 10781< 10782|hl-WildMenu| highlights the current match. 10783]=] , 10784full_name ='wildmenu' , 10785scope ={ 'global' } , 10786short_desc =N_ ( 'use menu for command line completion' ), 10787type ='boolean' , 10788varname ='p_wmnu' , 10789} , 10790{ 10791abbreviation ='wim' , 10792cb ='did_set_wildmode' , 10793defaults ='full' , 10794-- Keep this in sync with check_opt_wim(). 10795schema ={ 10796flags ={ 'full' , 'longest' , 'list' , 'lastused' , 'noselect' , 'noinsert' } , 10797} , 10798deny_duplicates =false , 10799desc =[=[ 10800Completion mode used for the character specified with 'wildchar'. 10801This option is a comma-separated list of up to four parts, 10802corresponding to the first, second, third, and fourth presses of 10803'wildchar'. Each part is a colon-separated list of completion 10804behaviors, which are applied simultaneously during that phase. 10805 10806The possible behavior values are: 10807"" Only complete (insert) the first match. No further 10808matches are cycled or listed. 10809"full" Complete the next full match. Cycles through all 10810matches, returning to the original input after the 10811last match. If 'wildmenu' is enabled, it will be 10812shown. 10813"longest" Complete to the longest common substring. If this 10814doesn't extend the input, the next 'wildmode' part is 10815used. 10816"list" If multiple matches are found, list all of them. 10817"lastused" When completing buffer names, sort them by most 10818recently used (excluding the current buffer). Only 10819applies to buffer name completion. 10820"noselect" If 'wildmenu' is enabled, show the menu but do not 10821preselect the first item. 10822"noinsert" If 'wildmenu' is enabled, show the menu and preselect 10823the first match, but do not insert it in the command 10824line. If both "noinsert" and "noselect" are present, 10825"noselect" takes precedence. 10826If only one match exists, it is completed fully, unless "noselect" or 10827"noinsert" is specified. 10828 10829Some useful combinations of colon-separated values: 10830"longest:full" Start with the longest common string and show 10831'wildmenu' (if enabled). Does not cycle 10832through full matches. 10833"list:full" List all matches and complete first match. 10834"list:longest" List all matches and complete till the longest 10835common prefix. 10836"list:lastused" List all matches. When completing buffers, 10837sort them by most recently used (excluding the 10838current buffer). 10839"noselect:lastused" Do not preselect the first item in 'wildmenu' 10840if it is active. When completing buffers, 10841sort them by most recently used (excluding the 10842current buffer). 10843 10844Examples: >vim 10845set wildmode=full 10846< Complete full match on every press (default behavior) >vim 10847set wildmode=longest,full 10848< First press: longest common substring 10849Second press: cycle through full matches >vim 10850set wildmode=list:full 10851< First press: list all matches and complete the first one >vim 10852set wildmode=list,full 10853< First press: list matches only 10854Second press: complete full matches >vim 10855set wildmode=longest,list 10856< First press: longest common substring 10857Second press: list all matches >vim 10858set wildmode=noselect:full 10859< First press: show 'wildmenu' without completing or selecting 10860Second press: cycle full matches >vim 10861set wildmode=noselect:lastused,full 10862< Same as above, but buffer matches are sorted by time last used 10863More info here: |cmdline-completion|. 10864]=] , 10865full_name ='wildmode' , 10866list ='onecommacolon' , 10867scope ={ 'global' } , 10868short_desc =N_ ( "mode for 'wildchar' command-line expansion" ), 10869type ='string' , 10870varname ='p_wim' , 10871} , 10872{ 10873abbreviation ='wop' , 10874validation_cb ='validate_str_generic' , 10875defaults ='pum,tagfile' , 10876schema ={ 10877flags ={ 'fuzzy' , 'tagfile' , 'pum' , 'exacttext' } , 10878} , 10879deny_duplicates =true , 10880desc =[=[ 10881A list of words that change how |cmdline-completion| is done. 10882The following values are supported: 10883exacttext When this flag is present, search pattern completion 10884(e.g., in |/|, |?|, |:s|, |:g|, |:v|, and |:vim|) 10885shows exact buffer text as menu items, without 10886preserving regex artifacts like position 10887anchors (e.g., |/\\<|). This provides more intuitive 10888menu items that match the actual buffer text. 10889However, searches may be less accurate since the 10890pattern is not preserved exactly. 10891By default, Vim preserves the typed pattern (with 10892anchors) and appends the matched word. This preserves 10893search correctness, especially when using regular 10894expressions or with 'smartcase' enabled. However, the 10895case of the appended matched word may not exactly 10896match the case of the word in the buffer. 10897fuzzy Use |fuzzy-matching| to find completion matches. When 10898this value is specified, wildcard expansion will not 10899be used for completion. The matches will be sorted by 10900the "best match" rather than alphabetically sorted. 10901This will find more matches than the wildcard 10902expansion. Currently fuzzy matching based completion 10903is not supported for file and directory names and 10904instead wildcard expansion is used. 10905pum Display the completion matches using the popup menu in 10906the same style as the |ins-completion-menu|. When an 10907info popup is shown next to the menu, it can be 10908scrolled by moving the mouse pointer on top of it and 10909using the scroll wheel. 10910tagfile When using CTRL-D to list matching tags, the kind of 10911tag and the file of the tag is listed. Only one match 10912is displayed per line. Often used tag kinds are: 10913d #define 10914f function 10915 10916This option does not apply to |ins-completion|. See 'completeopt' for 10917that. 10918]=] , 10919full_name ='wildoptions' , 10920list ='onecomma' , 10921scope ={ 'global' } , 10922short_desc =N_ ( 'specifies how command line completion is done' ), 10923type ='string' , 10924varname ='p_wop' , 10925flags_varname ='wop_flags' , 10926} , 10927{ 10928abbreviation ='wak' , 10929validation_cb ='validate_str_generic' , 10930defaults ='menu' , 10931schema ={ 10932enum ={ 'yes' , 'menu' , 'no' } , 10933} , 10934desc =[=[ 10935only used in Win32 10936Some GUI versions allow the access to menu entries by using the ALT 10937key in combination with a character that appears underlined in the 10938menu. This conflicts with the use of the ALT key for mappings and 10939entering special characters. This option tells what to do: 10940no Don't use ALT keys for menus. ALT key combinations can be 10941mapped, but there is no automatic handling. 10942yes ALT key handling is done by the windowing system. ALT key 10943combinations cannot be mapped. 10944menu Using ALT in combination with a character that is a menu 10945shortcut key, will be handled by the windowing system. Other 10946keys can be mapped. 10947If the menu is disabled by excluding 'm' from 'guioptions', the ALT 10948key is never used for the menu. 10949This option is not used for <F10>; on Win32. 10950]=] , 10951full_name ='winaltkeys' , 10952scope ={ 'global' } , 10953short_desc =N_ ( 'when the windows system handles ALT keys' ), 10954type ='string' , 10955varname ='p_wak' , 10956} , 10957{ 10958abbreviation ='wbr' , 10959cb ='did_set_winbar' , 10960validation_cb ='validate_statustabline_rulerformat' , 10961defaults ='' , 10962desc =[=[ 10963When non-empty, this option enables the window bar and determines its 10964contents. The window bar is a bar that's shown at the top of every 10965window with it enabled. The value of 'winbar' is evaluated like with 10966'statusline'. 10967 10968When changing something that is used in 'winbar' that does not trigger 10969it to be updated, use |:redrawstatus|. 10970 10971Floating windows do not use the global value of 'winbar'. The 10972window-local value of 'winbar' must be set for a floating window to 10973have a window bar. 10974 10975This option cannot be set in a modeline when 'modelineexpr' is off. 10976]=] , 10977full_name ='winbar' , 10978modelineexpr =true , 10979redraw ={ 'statuslines' } , 10980scope ={ 'global' , 'win' } , 10981short_desc =N_ ( 'custom format for the window bar' ), 10982type ='string' , 10983varname ='p_wbr' , 10984} , 10985{ 10986abbreviation ='winbl' , 10987cb ='did_set_winblend' , 10988defaults =0 , 10989desc =[=[ 10990Enables pseudo-transparency for a floating window. Valid values are in 10991the range of 0 for fully opaque window (disabled) to 100 for fully 10992transparent background. Values between 0-30 are typically most useful. 10993 10994UI-dependent. Works best with RGB colors. 'termguicolors' 10995]=] , 10996full_name ='winblend' , 10997redraw ={ 'current_window' , 'highlight_only' } , 10998scope ={ 'win' } , 10999short_desc =N_ ( 'Controls transparency level for floating windows' ), 11000type ='number' , 11001} , 11002{ 11003full_name ='winborder' , 11004scope ={ 'global' } , 11005validation_cb ='validate_border' , 11006defaults ={ if_true ='' } , 11007schema ={ 11008set ={ '' , 'double' , 'single' , 'shadow' , 'rounded' , 'solid' , 'bold' , 'none' } , 11009} , 11010desc =[=[ 11011Defines the default border style of floating windows. The default value 11012is empty, which is equivalent to "none". Valid values include: 11013- "bold": Bold line box. 11014- "double": Double-line box. 11015- "none": No border. 11016- "rounded": Like "single", but with rounded corners ("╭" etc.). 11017- "shadow": Drop shadow effect, by blending with the background. 11018- "single": Single-line box. 11019- "solid": Adds padding by a single whitespace cell. 11020- custom: comma-separated list of exactly 8 entries in clockwise 11021order starting from topleft. Each entry may be a single char, a 11022single space (filled with the background), or empty (no border on 11023that side). Example: >lua 11024vim.o.winborder = '+,-,+,|,+,-,+,|' 11025vim.o.winborder = ',,, ,,,, ' -- left/right padding only 11026< 11027]=] , 11028short_desc =N_ ( 'border of floating window' ), 11029type ='string' , 11030list ='onecomma' , 11031varname ='p_winborder' , 11032} , 11033{ 11034abbreviation ='wi' , 11035cb ='did_set_window' , 11036defaults ={ 11037if_true =0 , 11038doc ='screen height - 1' , 11039} , 11040desc =[=[ 11041Window height used for |CTRL-F| and |CTRL-B| when there is only one 11042window and the value is smaller than 'lines' minus one. The screen 11043will scroll 'window' minus two lines, with a minimum of one. 11044When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll 11045in a much smarter way, taking care of wrapping lines. 11046When resizing the Vim window, and the value is smaller than 1 or more 11047than or equal to 'lines' it will be set to 'lines' minus 1. 11048Note: Do not confuse this with the height of the Vim window, use 11049'lines' for that. 11050]=] , 11051full_name ='window' , 11052scope ={ 'global' } , 11053short_desc =N_ ( 'nr of lines to scroll for CTRL-F and CTRL-B' ), 11054type ='number' , 11055varname ='p_window' , 11056} , 11057{ 11058abbreviation ='wfb' , 11059defaults =false , 11060desc =[=[ 11061If enabled, the window and the buffer it is displaying are paired. 11062For example, attempting to change the buffer with |:edit| will fail. 11063Other commands which change a window's buffer such as |:cnext| will 11064also skip any window with 'winfixbuf' enabled. However if an Ex 11065command has a "!" modifier, it can force switching buffers. 11066]=] , 11067full_name ='winfixbuf' , 11068scope ={ 'win' } , 11069short_desc =N_ ( 'pin a window to a specific buffer' ), 11070type ='boolean' , 11071} , 11072{ 11073abbreviation ='wfh' , 11074defaults =false , 11075desc =[=[ 11076Keep the window height when windows are opened or closed and 11077'equalalways' is set. Also for |CTRL-W_=|. Set by default for the 11078|preview-window| and |quickfix-window|. 11079The height may be changed anyway when running out of room. 11080]=] , 11081full_name ='winfixheight' , 11082redraw ={ 'statuslines' } , 11083scope ={ 'win' } , 11084short_desc =N_ ( 'keep window height when opening/closing windows' ), 11085type ='boolean' , 11086} , 11087{ 11088abbreviation ='wfw' , 11089defaults =false , 11090desc =[=[ 11091Keep the window width when windows are opened or closed and 11092'equalalways' is set. Also for |CTRL-W_=|. 11093The width may be changed anyway when running out of room. 11094]=] , 11095full_name ='winfixwidth' , 11096redraw ={ 'statuslines' } , 11097scope ={ 'win' } , 11098short_desc =N_ ( 'keep window width when opening/closing windows' ), 11099type ='boolean' , 11100} , 11101{ 11102abbreviation ='wh' , 11103cb ='did_set_winheight' , 11104defaults =1 , 11105desc =[=[ 11106Minimal number of lines for the current window. This is not a hard 11107minimum, Vim will use fewer lines if there is not enough room. If the 11108focus goes to a window that is smaller, its size is increased, at the 11109cost of the height of other windows. 11110Set 'winheight' to a small number for normal editing. 11111Set it to 999 to make the current window fill most of the screen. 11112Other windows will be only 'winminheight' high. This has the drawback 11113that ":all" will create only two windows. To avoid "vim -o 1 2 3 4" 11114to create only two windows, set the option after startup is done, 11115using the |VimEnter| event: >vim 11116au VimEnter * set winheight=999 11117< Minimum value is 1. 11118The height is not adjusted after one of the commands that change the 11119height of the current window. 11120'winheight' applies to the current window. Use 'winminheight' to set 11121the minimal height for other windows. 11122]=] , 11123full_name ='winheight' , 11124scope ={ 'global' } , 11125short_desc =N_ ( 'minimum number of lines for the current window' ), 11126tags ={ 'E591' } , 11127type ='number' , 11128varname ='p_wh' , 11129} , 11130{ 11131abbreviation ='winhl' , 11132cb ='did_set_winhighlight' , 11133defaults ='' , 11134deny_duplicates =true , 11135desc =[=[ 11136Window-local highlights. Comma-delimited list of highlight 11137|group-name| pairs "{hl-from}:{hl-to},..." where each {hl-from} is 11138a |highlight-groups| item to be overridden by {hl-to} group in 11139the window. 11140 11141Note: highlight namespaces take precedence over 'winhighlight'. 11142See |nvim_win_set_hl_ns()| and |nvim_set_hl()|. 11143 11144Highlights of vertical separators are determined by the window to the 11145left of the separator. The 'tabline' highlight of a tabpage is 11146decided by the last-focused window of the tabpage. Highlights of 11147the popupmenu are determined by the current window. Highlights in the 11148message area cannot be overridden. 11149 11150Example: show a different color for non-current windows: >vim 11151set winhighlight=Normal:MyNormal,NormalNC:MyNormalNC 11152< 11153]=] , 11154expand_cb ='expand_set_winhighlight' , 11155full_name ='winhighlight' , 11156list ='onecommacolon' , 11157redraw ={ 'current_window' , 'highlight_only' } , 11158scope ={ 'win' } , 11159short_desc =N_ ( 'Setup window-local highlights' ), 11160type ='string' , 11161} , 11162{ 11163abbreviation ='wmh' , 11164cb ='did_set_winminheight' , 11165defaults =1 , 11166desc =[=[ 11167The minimal height of a window, when it's not the current window. 11168This is a hard minimum, windows will never become smaller. 11169When set to zero, windows may be "squashed" to zero lines (i.e. just a 11170status bar) if necessary. They will return to at least one line when 11171they become active (since the cursor has to have somewhere to go.) 11172Use 'winheight' to set the minimal height of the current window. 11173This option is only checked when making a window smaller. Don't use a 11174large number, it will cause errors when opening more than a few 11175windows. A value of 0 to 3 is reasonable. 11176]=] , 11177full_name ='winminheight' , 11178scope ={ 'global' } , 11179short_desc =N_ ( 'minimum number of lines for any window' ), 11180type ='number' , 11181varname ='p_wmh' , 11182} , 11183{ 11184abbreviation ='wmw' , 11185cb ='did_set_winminwidth' , 11186defaults =1 , 11187desc =[=[ 11188The minimal width of a window, when it's not the current window. 11189This is a hard minimum, windows will never become smaller. 11190When set to zero, windows may be "squashed" to zero columns (i.e. just 11191a vertical separator) if necessary. They will return to at least one 11192line when they become active (since the cursor has to have somewhere 11193to go.) 11194Use 'winwidth' to set the minimal width of the current window. 11195This option is only checked when making a window smaller. Don't use a 11196large number, it will cause errors when opening more than a few 11197windows. A value of 0 to 12 is reasonable. 11198]=] , 11199full_name ='winminwidth' , 11200scope ={ 'global' } , 11201short_desc =N_ ( 'minimal number of columns for any window' ), 11202type ='number' , 11203varname ='p_wmw' , 11204} , 11205{ 11206abbreviation ='wp' , 11207defaults =false , 11208desc =[=[ 11209If enabled, the window is pinned and will not be closed by |:only| 11210and |:fclose|. Only commands specifically targeting the window can 11211close it. 11212]=] , 11213full_name ='winpinned' , 11214scope ={ 'win' } , 11215short_desc =N_ ( 'prevent closing window with :only and :fclose' ), 11216type ='boolean' , 11217} , 11218{ 11219abbreviation ='wiw' , 11220cb ='did_set_winwidth' , 11221defaults =20 , 11222desc =[=[ 11223Minimal number of columns for the current window. This is not a hard 11224minimum, Vim will use fewer columns if there is not enough room. If 11225the current window is smaller, its size is increased, at the cost of 11226the width of other windows. Set it to 999 to make the current window 11227always fill the screen. Set it to a small number for normal editing. 11228The width is not adjusted after one of the commands to change the 11229width of the current window. 11230'winwidth' applies to the current window. Use 'winminwidth' to set 11231the minimal width for other windows. 11232]=] , 11233full_name ='winwidth' , 11234scope ={ 'global' } , 11235short_desc =N_ ( 'minimal number of columns for current window' ), 11236tags ={ 'E592' } , 11237type ='number' , 11238varname ='p_wiw' , 11239} , 11240{ 11241cb ='did_set_wrap' , 11242defaults =true , 11243desc =[=[ 11244This option changes how text is displayed. It doesn't change the text 11245in the buffer, see 'textwidth' for that. 11246When on, lines longer than the width of the window will wrap and 11247displaying continues on the next line. When off lines will not wrap 11248and only part of long lines will be displayed. When the cursor is 11249moved to a part that is not shown, the screen will scroll 11250horizontally. 11251The line will be broken in the middle of a word if necessary. See 11252'linebreak' to get the break at a word boundary. 11253To make scrolling horizontally a bit more useful, try this: >vim 11254set sidescroll=5 11255set listchars+=precedes:<,extends:> 11256< See 'sidescroll', 'listchars' and |wrap-off|. 11257This option can't be set from a |modeline| when the 'diff' option is 11258on. 11259If 'nowrap' was set from a |modeline| or in the |sandbox|, '>' is used 11260as the |lcs-extends| character regardless of the value of the 'list' 11261and 'listchars' options. This is to prevent malicious code outside 11262the viewport from going unnoticed. Use `:setlocal nowrap` manually 11263afterwards to disable this behavior. 11264]=] , 11265full_name ='wrap' , 11266redraw ={ 'current_window' } , 11267scope ={ 'win' } , 11268short_desc =N_ ( 'lines wrap and continue on the next line' ), 11269type ='boolean' , 11270} , 11271{ 11272abbreviation ='wm' , 11273defaults =0 , 11274desc =[=[ 11275Number of characters from the right window border where wrapping 11276starts. When typing text beyond this limit, an <EOL> will be inserted 11277and inserting continues on the next line. 11278Options that add a margin, such as 'number' and 'foldcolumn', cause 11279the text width to be further reduced. 11280When 'textwidth' is non-zero, this option is not used. 11281See also 'formatoptions' and |ins-textwidth|. 11282]=] , 11283full_name ='wrapmargin' , 11284scope ={ 'buf' } , 11285short_desc =N_ ( 'chars from the right where wrapping starts' ), 11286type ='number' , 11287varname ='p_wm' , 11288} , 11289{ 11290abbreviation ='ws' , 11291defaults =true , 11292desc =[=[ 11293Searches wrap around the end of the file. Also applies to |]s| and 11294|[s|, searching for spelling mistakes. 11295]=] , 11296full_name ='wrapscan' , 11297scope ={ 'global' } , 11298short_desc =N_ ( 'searches wrap around the end of the file' ), 11299tags ={ 'E384' , 'E385' } , 11300type ='boolean' , 11301varname ='p_ws' , 11302} , 11303{ 11304defaults =true , 11305desc =[=[ 11306Allows writing files. When not set, writing a file is not allowed. 11307Can be used for a view-only mode, where modifications to the text are 11308still allowed. Can be reset with the |-m| or |-M| command line 11309argument. Filtering text is still possible, even though this requires 11310writing a temporary file. 11311]=] , 11312full_name ='write' , 11313scope ={ 'global' } , 11314short_desc =N_ ( 'to a file is allowed' ), 11315type ='boolean' , 11316varname ='p_write' , 11317} , 11318{ 11319abbreviation ='wa' , 11320defaults =false , 11321desc =[=[ 11322Allows writing to any file with no need for "!" override. 11323]=] , 11324full_name ='writeany' , 11325scope ={ 'global' } , 11326short_desc =N_ ( 'write to file with no need for "!" override' ), 11327type ='boolean' , 11328varname ='p_wa' , 11329} , 11330{ 11331abbreviation ='wb' , 11332defaults =true , 11333desc =[=[ 11334Make a backup before overwriting a file. The backup is removed after 11335the file was successfully written, unless the 'backup' option is 11336also on. 11337WARNING: Switching this option off means that when Vim fails to write 11338your buffer correctly and then, for whatever reason, Vim exits, you 11339lose both the original file and what you were writing. Only reset 11340this option if your file system is almost full and it makes the write 11341fail (and make sure not to exit Vim until the write was successful). 11342See |backup-table| for another explanation. 11343When the 'backupskip' pattern matches, a backup is not made anyway. 11344Depending on 'backupcopy' the backup is a new file or the original 11345file renamed (and a new file is written). 11346]=] , 11347full_name ='writebackup' , 11348scope ={ 'global' } , 11349short_desc =N_ ( 'make a backup before overwriting a file' ), 11350type ='boolean' , 11351varname ='p_wb' , 11352} , 11353{ 11354abbreviation ='wd' , 11355defaults =0 , 11356desc =[=[ 11357Only takes effect together with 'redrawdebug'. 11358The number of milliseconds to wait after each line or each flush 11359]=] , 11360full_name ='writedelay' , 11361scope ={ 'global' } , 11362short_desc =N_ ( 'delay this many msec for each char (for debug)' ), 11363type ='number' , 11364varname ='p_wd' , 11365} , 11366} , 11367} 11368 11369--- Ordered completion values of a schema: `flags` and `enum` tokens as-is, `dict` keys as "key:" 11370--- (or bare for a flag key). Empty for `chars` (e.g. 'listchars') and `flagchars` (e.g. 11371--- 'formatoptions'), which self-expand. Shared with gen_options.lua. 11372--- @param schema vim.option_schema 11373--- @return string[] 11374local function schema_values ( schema ) 11375local values ={} --- @type string[] 11376for _ , f in ipairs ( schema . flags or {} ) do 11377values [ # values + 1 ] =type ( f ) == 'string' and f or f [ 1 ] 11378end 11379for _ , e in ipairs ( schema . enum or schema . set or {} ) do 11380values [ # values + 1 ] =e 11381end 11382for _ , k in ipairs ( schema . dict or {} ) do 11383values [ # values + 1 ] =type ( k ) == 'string' and k or ( k [ 1 ] .. ':' ) -- bare flag / typed "key:" 11384end 11385-- flagchars and chars self-expand: no completion values. 11386return values 11387end 11388options . schema_values =schema_values 11389 11390--- @param o vim.option_meta 11391local function preprocess ( o ) 11392-- Options with a fixed set of string values get generic completion unless they define their own. 11393-- char/chars and char flags expand themselves. 11394if o . schema and # schema_values ( o . schema ) > 0 then 11395o . expand_cb =o . expand_cb or 'expand_set_str_generic' 11396end 11397-- Options with derived flags get a generic did_set callback unless they define their own. 11398if o . flags_varname then 11399o . cb =o . cb or 'did_set_str_generic' 11400end 11401 11402if type ( o . alias ) == 'string' then 11403o . alias ={ 11404o . alias --[[@as string]] , 11405} 11406end 11407 11408if type ( o . defaults ) ~= 'table' then 11409o . defaults ={ 11410if_true =o . defaults --[[@as any]] , 11411} 11412end 11413end 11414 11415for _ , o in ipairs ( options . options ) do 11416preprocess ( o ) 11417end 11418 11419return options