blob: ecaaf452996f086ab6c030b92f5f1ec1ca8c926d [file] [log] [blame]
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001/* vi:set ts=8 sts=4 sw=4 noet:
2 *
3 * VIM - Vi IMproved by Bram Moolenaar
4 *
5 * Do ":help uganda" in Vim to read copying and usage conditions.
6 * Do ":help credits" in Vim to see a list of people who contributed.
7 */
8
9/*
10 * optiondefs.h: option definitions
11 */
12
13// The options that are local to a window or buffer have "indir" set to one of
14// these values. Special values:
15// PV_NONE: global option.
16// PV_WIN is added: window-local option
17// PV_BUF is added: buffer-local option
18// PV_BOTH is added: global option which also has a local value.
19#define PV_BOTH 0x1000
20#define PV_WIN 0x2000
21#define PV_BUF 0x4000
22#define PV_MASK 0x0fff
23#define OPT_WIN(x) (idopt_T)(PV_WIN + (int)(x))
24#define OPT_BUF(x) (idopt_T)(PV_BUF + (int)(x))
25#define OPT_BOTH(x) (idopt_T)(PV_BOTH + (int)(x))
26
27// Definition of the PV_ values for buffer-local options.
28// The BV_ values are defined in option.h.
29#define PV_AI OPT_BUF(BV_AI)
30#define PV_AR OPT_BOTH(OPT_BUF(BV_AR))
31#define PV_BKC OPT_BOTH(OPT_BUF(BV_BKC))
32#define PV_BH OPT_BUF(BV_BH)
33#define PV_BT OPT_BUF(BV_BT)
34#ifdef FEAT_QUICKFIX
35# define PV_EFM OPT_BOTH(OPT_BUF(BV_EFM))
36# define PV_GP OPT_BOTH(OPT_BUF(BV_GP))
37# define PV_MP OPT_BOTH(OPT_BUF(BV_MP))
38#endif
39#define PV_BIN OPT_BUF(BV_BIN)
40#define PV_BL OPT_BUF(BV_BL)
41#define PV_BOMB OPT_BUF(BV_BOMB)
42#define PV_CI OPT_BUF(BV_CI)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010043#define PV_CIN OPT_BUF(BV_CIN)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010044#define PV_CINK OPT_BUF(BV_CINK)
45#define PV_CINO OPT_BUF(BV_CINO)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010046#define PV_CINSD OPT_BUF(BV_CINSD)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010047#define PV_CINW OPT_BUF(BV_CINW)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020048#define PV_CM OPT_BOTH(OPT_BUF(BV_CM))
49#ifdef FEAT_FOLDING
50# define PV_CMS OPT_BUF(BV_CMS)
51#endif
Bram Moolenaar8c96af92019-09-28 19:05:57 +020052#define PV_COM OPT_BUF(BV_COM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020053#define PV_CPT OPT_BUF(BV_CPT)
Bram Moolenaar49846fb2022-10-15 16:05:33 +010054#define PV_DICT OPT_BOTH(OPT_BUF(BV_DICT))
Bram Moolenaar0eddca42019-09-12 22:26:43 +020055#define PV_TSR OPT_BOTH(OPT_BUF(BV_TSR))
56#define PV_CSL OPT_BUF(BV_CSL)
57#ifdef FEAT_COMPL_FUNC
58# define PV_CFU OPT_BUF(BV_CFU)
59#endif
60#ifdef FEAT_FIND_ID
61# define PV_DEF OPT_BOTH(OPT_BUF(BV_DEF))
62# define PV_INC OPT_BOTH(OPT_BUF(BV_INC))
63#endif
Bram Moolenaarfb0cf232022-10-22 11:25:19 +010064#define PV_EOF OPT_BUF(BV_EOF)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020065#define PV_EOL OPT_BUF(BV_EOL)
66#define PV_FIXEOL OPT_BUF(BV_FIXEOL)
67#define PV_EP OPT_BOTH(OPT_BUF(BV_EP))
68#define PV_ET OPT_BUF(BV_ET)
69#define PV_FENC OPT_BUF(BV_FENC)
70#if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
71# define PV_BEXPR OPT_BOTH(OPT_BUF(BV_BEXPR))
72#endif
73#define PV_FP OPT_BOTH(OPT_BUF(BV_FP))
74#ifdef FEAT_EVAL
75# define PV_FEX OPT_BUF(BV_FEX)
76#endif
77#define PV_FF OPT_BUF(BV_FF)
78#define PV_FLP OPT_BUF(BV_FLP)
79#define PV_FO OPT_BUF(BV_FO)
80#define PV_FT OPT_BUF(BV_FT)
81#define PV_IMI OPT_BUF(BV_IMI)
82#define PV_IMS OPT_BUF(BV_IMS)
Bram Moolenaar8e145b82022-05-21 20:17:31 +010083#if defined(FEAT_EVAL)
Bram Moolenaar0eddca42019-09-12 22:26:43 +020084# define PV_INDE OPT_BUF(BV_INDE)
85# define PV_INDK OPT_BUF(BV_INDK)
86#endif
87#if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
88# define PV_INEX OPT_BUF(BV_INEX)
89#endif
90#define PV_INF OPT_BUF(BV_INF)
91#define PV_ISK OPT_BUF(BV_ISK)
92#ifdef FEAT_CRYPT
93# define PV_KEY OPT_BUF(BV_KEY)
94#endif
95#ifdef FEAT_KEYMAP
96# define PV_KMAP OPT_BUF(BV_KMAP)
97#endif
98#define PV_KP OPT_BOTH(OPT_BUF(BV_KP))
Bram Moolenaar49846fb2022-10-15 16:05:33 +010099#define PV_LISP OPT_BUF(BV_LISP)
100#define PV_LOP OPT_BUF(BV_LOP)
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100101#define PV_LW OPT_BOTH(OPT_BUF(BV_LW))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200102#define PV_MENC OPT_BOTH(OPT_BUF(BV_MENC))
103#define PV_MA OPT_BUF(BV_MA)
104#define PV_ML OPT_BUF(BV_ML)
105#define PV_MOD OPT_BUF(BV_MOD)
106#define PV_MPS OPT_BUF(BV_MPS)
107#define PV_NF OPT_BUF(BV_NF)
108#ifdef FEAT_COMPL_FUNC
109# define PV_OFU OPT_BUF(BV_OFU)
110#endif
111#define PV_PATH OPT_BOTH(OPT_BUF(BV_PATH))
112#define PV_PI OPT_BUF(BV_PI)
Bram Moolenaar88774872022-08-16 20:24:29 +0100113#define PV_QE OPT_BUF(BV_QE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200114#define PV_RO OPT_BUF(BV_RO)
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100115#define PV_SI OPT_BUF(BV_SI)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200116#define PV_SN OPT_BUF(BV_SN)
117#ifdef FEAT_SYN_HL
118# define PV_SMC OPT_BUF(BV_SMC)
119# define PV_SYN OPT_BUF(BV_SYN)
120#endif
121#ifdef FEAT_SPELL
122# define PV_SPC OPT_BUF(BV_SPC)
123# define PV_SPF OPT_BUF(BV_SPF)
124# define PV_SPL OPT_BUF(BV_SPL)
Bram Moolenaar362b44b2020-06-10 21:47:00 +0200125# define PV_SPO OPT_BUF(BV_SPO)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200126#endif
127#define PV_STS OPT_BUF(BV_STS)
Bram Moolenaarf80f40a2022-08-25 16:02:23 +0100128#define PV_SUA OPT_BUF(BV_SUA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200129#define PV_SW OPT_BUF(BV_SW)
130#define PV_SWF OPT_BUF(BV_SWF)
131#ifdef FEAT_EVAL
132# define PV_TFU OPT_BUF(BV_TFU)
133#endif
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +0100134#ifdef FEAT_COMPL_FUNC
Bram Moolenaarf4d8b762021-10-17 14:13:09 +0100135# define PV_TSRFU OPT_BOTH(OPT_BUF(BV_TSRFU))
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +0100136#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200137#define PV_TAGS OPT_BOTH(OPT_BUF(BV_TAGS))
138#define PV_TC OPT_BOTH(OPT_BUF(BV_TC))
139#define PV_TS OPT_BUF(BV_TS)
140#define PV_TW OPT_BUF(BV_TW)
141#define PV_TX OPT_BUF(BV_TX)
142#ifdef FEAT_PERSISTENT_UNDO
143# define PV_UDF OPT_BUF(BV_UDF)
144#endif
145#define PV_WM OPT_BUF(BV_WM)
146#ifdef FEAT_VARTABS
Bram Moolenaar49846fb2022-10-15 16:05:33 +0100147# define PV_VSTS OPT_BUF(BV_VSTS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200148# define PV_VTS OPT_BUF(BV_VTS)
149#endif
150
151// Definition of the PV_ values for window-local options.
152// The WV_ values are defined in option.h.
153#define PV_LIST OPT_WIN(WV_LIST)
154#ifdef FEAT_ARABIC
155# define PV_ARAB OPT_WIN(WV_ARAB)
156#endif
157#ifdef FEAT_LINEBREAK
158# define PV_BRI OPT_WIN(WV_BRI)
159# define PV_BRIOPT OPT_WIN(WV_BRIOPT)
160#endif
161# define PV_WCR OPT_WIN(WV_WCR)
162#ifdef FEAT_DIFF
163# define PV_DIFF OPT_WIN(WV_DIFF)
164#endif
165#ifdef FEAT_FOLDING
166# define PV_FDC OPT_WIN(WV_FDC)
167# define PV_FEN OPT_WIN(WV_FEN)
168# define PV_FDI OPT_WIN(WV_FDI)
169# define PV_FDL OPT_WIN(WV_FDL)
170# define PV_FDM OPT_WIN(WV_FDM)
171# define PV_FML OPT_WIN(WV_FML)
172# define PV_FDN OPT_WIN(WV_FDN)
173# ifdef FEAT_EVAL
174# define PV_FDE OPT_WIN(WV_FDE)
175# define PV_FDT OPT_WIN(WV_FDT)
176# endif
177# define PV_FMR OPT_WIN(WV_FMR)
178#endif
179#ifdef FEAT_LINEBREAK
180# define PV_LBR OPT_WIN(WV_LBR)
181#endif
Bram Moolenaareed9d462021-02-15 20:38:25 +0100182#define PV_LCS OPT_BOTH(OPT_WIN(WV_LCS))
Bram Moolenaar96ba25a2022-07-04 17:34:33 +0100183#define PV_FCS OPT_BOTH(OPT_WIN(WV_FCS))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200184#define PV_NU OPT_WIN(WV_NU)
185#define PV_RNU OPT_WIN(WV_RNU)
zeertzjqe1833bf2022-01-15 10:52:16 +0000186#define PV_VE OPT_BOTH(OPT_WIN(WV_VE))
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200187#ifdef FEAT_LINEBREAK
188# define PV_NUW OPT_WIN(WV_NUW)
189#endif
190#if defined(FEAT_QUICKFIX)
191# define PV_PVW OPT_WIN(WV_PVW)
192#endif
193#ifdef FEAT_RIGHTLEFT
194# define PV_RL OPT_WIN(WV_RL)
195# define PV_RLC OPT_WIN(WV_RLC)
196#endif
197#define PV_SCBIND OPT_WIN(WV_SCBIND)
198#define PV_SCROLL OPT_WIN(WV_SCROLL)
Bram Moolenaarf6196f42022-10-02 21:29:55 +0100199#define PV_SMS OPT_WIN(WV_SMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200200#define PV_SISO OPT_BOTH(OPT_WIN(WV_SISO))
201#define PV_SO OPT_BOTH(OPT_WIN(WV_SO))
202#ifdef FEAT_SPELL
203# define PV_SPELL OPT_WIN(WV_SPELL)
204#endif
205#ifdef FEAT_SYN_HL
206# define PV_CUC OPT_WIN(WV_CUC)
207# define PV_CUL OPT_WIN(WV_CUL)
208# define PV_CULOPT OPT_WIN(WV_CULOPT)
209# define PV_CC OPT_WIN(WV_CC)
210#endif
Bram Moolenaaree857022019-11-09 23:26:40 +0100211#ifdef FEAT_LINEBREAK
212# define PV_SBR OPT_BOTH(OPT_WIN(WV_SBR))
213#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200214#ifdef FEAT_STL_OPT
215# define PV_STL OPT_BOTH(OPT_WIN(WV_STL))
216#endif
217#define PV_UL OPT_BOTH(OPT_BUF(BV_UL))
218# define PV_WFH OPT_WIN(WV_WFH)
219# define PV_WFW OPT_WIN(WV_WFW)
220#define PV_WRAP OPT_WIN(WV_WRAP)
221#define PV_CRBIND OPT_WIN(WV_CRBIND)
222#ifdef FEAT_CONCEAL
223# define PV_COCU OPT_WIN(WV_COCU)
224# define PV_COLE OPT_WIN(WV_COLE)
225#endif
226#ifdef FEAT_TERMINAL
227# define PV_TWK OPT_WIN(WV_TWK)
228# define PV_TWS OPT_WIN(WV_TWS)
229# define PV_TWSL OPT_BUF(BV_TWSL)
230#endif
231#ifdef FEAT_SIGNS
232# define PV_SCL OPT_WIN(WV_SCL)
233#endif
234
235// WV_ and BV_ values get typecasted to this for the "indir" field
236typedef enum
237{
238 PV_NONE = 0,
239 PV_MAXVAL = 0xffff // to avoid warnings for value out of range
240} idopt_T;
241
242// Options local to a window have a value local to a buffer and global to all
243// buffers. Indicate this by setting "var" to VAR_WIN.
244#define VAR_WIN ((char_u *)-1)
245
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200246// Saved values for when 'bin' is set.
247static int p_et_nobin;
248static int p_ml_nobin;
249static long p_tw_nobin;
250static long p_wm_nobin;
251
252// Saved values for when 'paste' is set
253static int p_ai_nopaste;
254static int p_et_nopaste;
255static long p_sts_nopaste;
256static long p_tw_nopaste;
257static long p_wm_nopaste;
258#ifdef FEAT_VARTABS
259static char_u *p_vsts_nopaste;
260#endif
261
262struct vimoption
263{
264 char *fullname; // full option name
265 char *shortname; // permissible abbreviation
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000266 long_u flags; // see in option.h
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200267 char_u *var; // global option: pointer to variable;
268 // window-local option: VAR_WIN;
269 // buffer-local option: global value
270 idopt_T indir; // global option: PV_NONE;
271 // local option: indirect option index
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000272 // callback function to invoke after an option is modified to validate and
273 // apply the new value.
274 opt_did_set_cb_T opt_did_set_cb;
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200275 char_u *def_val[2]; // default values for variable (vi and vim)
276#ifdef FEAT_EVAL
277 sctx_T script_ctx; // script context where the option was last set
278# define SCTX_INIT , {0, 0, 0, 1}
279#else
280# define SCTX_INIT
281#endif
282};
283
284#define VI_DEFAULT 0 // def_val[VI_DEFAULT] is Vi default value
285#define VIM_DEFAULT 1 // def_val[VIM_DEFAULT] is Vim default value
286
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200287#define ISK_LATIN1 (char_u *)"@,48-57,_,192-255"
288
289// 'isprint' for latin1 is also used for MS-Windows cp1252, where 0x80 is used
290// for the currency sign.
291#if defined(MSWIN)
292# define ISP_LATIN1 (char_u *)"@,~-255"
293#else
294# define ISP_LATIN1 (char_u *)"@,161-255"
295#endif
296
LemonBoya4399382022-04-09 21:04:08 +0100297# define HIGHLIGHT_INIT "8:SpecialKey,~:EndOfBuffer,@:NonText,d:Directory,e:ErrorMsg,i:IncSearch,l:Search,y:CurSearch,m:MoreMsg,M:ModeMsg,n:LineNr,a:LineNrAbove,b:LineNrBelow,N:CursorLineNr,G:CursorLineSign,O:CursorLineFold,r:Question,s:StatusLine,S:StatusLineNC,c:VertSplit,t:Title,v:Visual,V:VisualNOS,w:WarningMsg,W:WildMenu,f:Folded,F:FoldColumn,A:DiffAdd,C:DiffChange,D:DiffDelete,T:DiffText,>:SignColumn,-:Conceal,B:SpellBad,P:SpellCap,R:SpellRare,L:SpellLocal,+:Pmenu,=:PmenuSel,x:PmenuSbar,X:PmenuThumb,*:TabLine,#:TabLineSel,_:TabLineFill,!:CursorColumn,.:CursorLine,o:ColorColumn,q:QuickFixLine,z:StatusLineTerm,Z:StatusLineTermNC"
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200298
299// Default python version for pyx* commands
300#if defined(FEAT_PYTHON) && defined(FEAT_PYTHON3)
301# define DEFAULT_PYTHON_VER 0
302#elif defined(FEAT_PYTHON3)
303# define DEFAULT_PYTHON_VER 3
304#elif defined(FEAT_PYTHON)
305# define DEFAULT_PYTHON_VER 2
306#else
307# define DEFAULT_PYTHON_VER 0
308#endif
309
310// used for 'cinkeys' and 'indentkeys'
311#define INDENTKEYS_DEFAULT (char_u *)"0{,0},0),0],:,0#,!^F,o,O,e"
312
313// options[] is initialized here.
314// The order of the options MUST be alphabetic for ":set all" and findoption().
315// All option names MUST start with a lowercase letter (for findoption()).
316// Exception: "t_" options are at the end.
317// The options with a NULL variable are 'hidden': a set command for them is
318// ignored and they are not printed.
319static struct vimoption options[] =
320{
321 {"aleph", "al", P_NUM|P_VI_DEF|P_CURSWANT,
322#ifdef FEAT_RIGHTLEFT
323 (char_u *)&p_aleph, PV_NONE,
324#else
325 (char_u *)NULL, PV_NONE,
326#endif
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000327 NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200328 {
329#if defined(MSWIN) && !defined(FEAT_GUI_MSWIN)
330 (char_u *)128L,
331#else
332 (char_u *)224L,
333#endif
334 (char_u *)0L} SCTX_INIT},
335 {"antialias", "anti", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000336 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200337 {(char_u *)FALSE, (char_u *)FALSE}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200338 SCTX_INIT},
339 {"arabic", "arab", P_BOOL|P_VI_DEF|P_VIM|P_CURSWANT,
340#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000341 (char_u *)VAR_WIN, PV_ARAB, did_set_arabic,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200342#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000343 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200344#endif
345 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
346 {"arabicshape", "arshape", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
347#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000348 (char_u *)&p_arshape, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200349#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000350 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200351#endif
352 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
353 {"allowrevins", "ari", P_BOOL|P_VI_DEF|P_VIM,
354#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000355 (char_u *)&p_ari, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200356#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000357 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200358#endif
359 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
360 {"altkeymap", "akm", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000361 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200362 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
363 {"ambiwidth", "ambw", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000364 (char_u *)&p_ambw, PV_NONE, did_set_ambiwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200365 {(char_u *)"single", (char_u *)0L}
366 SCTX_INIT},
367 {"autochdir", "acd", P_BOOL|P_VI_DEF,
368#ifdef FEAT_AUTOCHDIR
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000369 (char_u *)&p_acd, PV_NONE, did_set_autochdir,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200370 {(char_u *)FALSE, (char_u *)0L}
371#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000372 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200373 {(char_u *)0L, (char_u *)0L}
374#endif
375 SCTX_INIT},
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200376 {"autoshelldir", "asd", P_BOOL|P_VI_DEF,
377#ifdef FEAT_AUTOSHELLDIR
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000378 (char_u *)&p_asd, PV_NONE, NULL,
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200379 {(char_u *)FALSE, (char_u *)0L}
380#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000381 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar8b9abfd2021-03-29 20:49:05 +0200382 {(char_u *)0L, (char_u *)0L}
383#endif
384 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200385 {"autoindent", "ai", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000386 (char_u *)&p_ai, PV_AI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200387 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
388 {"autoprint", "ap", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000389 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200390 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
391 {"autoread", "ar", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000392 (char_u *)&p_ar, PV_AR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200393 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
394 {"autowrite", "aw", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000395 (char_u *)&p_aw, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200396 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
397 {"autowriteall","awa", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000398 (char_u *)&p_awa, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200399 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
400 {"background", "bg", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000401 (char_u *)&p_bg, PV_NONE, did_set_background,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200402 {
403#if (defined(MSWIN)) && !defined(FEAT_GUI)
404 (char_u *)"dark",
405#else
406 (char_u *)"light",
407#endif
408 (char_u *)0L} SCTX_INIT},
409 {"backspace", "bs", P_STRING|P_VI_DEF|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000410 (char_u *)&p_bs, PV_NONE, did_set_backspace,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200411 {(char_u *)"", (char_u *)0L} SCTX_INIT},
412 {"backup", "bk", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000413 (char_u *)&p_bk, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200414 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
415 {"backupcopy", "bkc", P_STRING|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000416 (char_u *)&p_bkc, PV_BKC, did_set_backupcopy,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200417#ifdef UNIX
418 {(char_u *)"yes", (char_u *)"auto"}
419#else
420 {(char_u *)"auto", (char_u *)"auto"}
421#endif
422 SCTX_INIT},
423 {"backupdir", "bdir", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA
424 |P_NODUP|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000425 (char_u *)&p_bdir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200426 {(char_u *)DFLT_BDIR, (char_u *)0L} SCTX_INIT},
427 {"backupext", "bex", P_STRING|P_VI_DEF|P_NFNAME,
428 (char_u *)&p_bex, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000429 did_set_backupext_or_patchmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200430 {
431#ifdef VMS
432 (char_u *)"_",
433#else
434 (char_u *)"~",
435#endif
436 (char_u *)0L} SCTX_INIT},
437 {"backupskip", "bsk", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000438 (char_u *)&p_bsk, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200439 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200440 SCTX_INIT},
441 {"balloondelay","bdlay",P_NUM|P_VI_DEF,
442#ifdef FEAT_BEVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000443 (char_u *)&p_bdlay, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200444 {(char_u *)600L, (char_u *)0L}
445#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000446 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200447 {(char_u *)0L, (char_u *)0L}
448#endif
449 SCTX_INIT},
450 {"ballooneval", "beval",P_BOOL|P_VI_DEF|P_NO_MKRC,
451#ifdef FEAT_BEVAL_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000452 (char_u *)&p_beval, PV_NONE, did_set_ballooneval,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200453 {(char_u *)FALSE, (char_u *)0L}
454#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000455 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200456 {(char_u *)0L, (char_u *)0L}
457#endif
458 SCTX_INIT},
459 {"balloonevalterm", "bevalterm",P_BOOL|P_VI_DEF|P_NO_MKRC,
460#ifdef FEAT_BEVAL_TERM
461 (char_u *)&p_bevalterm, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000462 did_set_balloonevalterm,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200463 {(char_u *)FALSE, (char_u *)0L}
464#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000465 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200466 {(char_u *)0L, (char_u *)0L}
467#endif
468 SCTX_INIT},
469 {"balloonexpr", "bexpr", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
470#if defined(FEAT_BEVAL) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000471 (char_u *)&p_bexpr, PV_BEXPR, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200472 {(char_u *)"", (char_u *)0L}
473#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000474 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200475 {(char_u *)0L, (char_u *)0L}
476#endif
477 SCTX_INIT},
478 {"beautify", "bf", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000479 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200480 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
481 {"belloff", "bo", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000482 (char_u *)&p_bo, PV_NONE, did_set_belloff,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200483 {(char_u *)"", (char_u *)0L} SCTX_INIT},
484 {"binary", "bin", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000485 (char_u *)&p_bin, PV_BIN, did_set_binary,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200486 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
487 {"bioskey", "biosk",P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000488 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200489 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
490 {"bomb", NULL, P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
491 (char_u *)&p_bomb, PV_BOMB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000492 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200493 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
494 {"breakat", "brk", P_STRING|P_VI_DEF|P_RALL|P_FLAGLIST,
495#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000496 (char_u *)&p_breakat, PV_NONE, did_set_breakat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200497 {(char_u *)" \t!@*-+;:,./?", (char_u *)0L}
498#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000499 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200500 {(char_u *)0L, (char_u *)0L}
501#endif
502 SCTX_INIT},
503 {"breakindent", "bri", P_BOOL|P_VI_DEF|P_VIM|P_RWIN,
504#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000505 (char_u *)VAR_WIN, PV_BRI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200506 {(char_u *)FALSE, (char_u *)0L}
507#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000508 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200509 {(char_u *)0L, (char_u *)0L}
510#endif
511 SCTX_INIT},
512 {"breakindentopt", "briopt", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF
513 |P_ONECOMMA|P_NODUP,
514#ifdef FEAT_LINEBREAK
515 (char_u *)VAR_WIN, PV_BRIOPT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000516 did_set_breakindentopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200517 {(char_u *)"", (char_u *)NULL}
518#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000519 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200520 {(char_u *)"", (char_u *)NULL}
521#endif
522 SCTX_INIT},
523 {"browsedir", "bsdir",P_STRING|P_VI_DEF,
524#ifdef FEAT_BROWSE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000525 (char_u *)&p_bsdir, PV_NONE, did_set_browsedir,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200526 {(char_u *)"last", (char_u *)0L}
527#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000528 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200529 {(char_u *)0L, (char_u *)0L}
530#endif
531 SCTX_INIT},
532 {"bufhidden", "bh", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000533 (char_u *)&p_bh, PV_BH, did_set_bufhidden,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200534 {(char_u *)"", (char_u *)0L}
535 SCTX_INIT},
536 {"buflisted", "bl", P_BOOL|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000537 (char_u *)&p_bl, PV_BL, did_set_buflisted,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200538 {(char_u *)1L, (char_u *)0L}
539 SCTX_INIT},
540 {"buftype", "bt", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000541 (char_u *)&p_bt, PV_BT, did_set_buftype,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200542 {(char_u *)"", (char_u *)0L}
543 SCTX_INIT},
544 {"casemap", "cmp", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000545 (char_u *)&p_cmp, PV_NONE, did_set_casemap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200546 {(char_u *)"internal,keepascii", (char_u *)0L}
547 SCTX_INIT},
Bakudankun29f3a452021-12-11 12:28:08 +0000548 {"cdhome", "cdh", P_BOOL|P_VI_DEF|P_VIM|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000549 (char_u *)&p_cdh, PV_NONE, NULL,
Bakudankun29f3a452021-12-11 12:28:08 +0000550 {(char_u *)FALSE, (char_u *)0L}
551 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200552 {"cdpath", "cd", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000553 (char_u *)&p_cdpath, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200554 {(char_u *)",,", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200555 SCTX_INIT},
556 {"cedit", NULL, P_STRING,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000557 (char_u *)&p_cedit, PV_NONE, did_set_cedit,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200558 {(char_u *)"", (char_u *)CTRL_F_STR}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200559 SCTX_INIT},
560 {"charconvert", "ccv", P_STRING|P_VI_DEF|P_SECURE,
561#if defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000562 (char_u *)&p_ccv, PV_NONE, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200563 {(char_u *)"", (char_u *)0L}
564#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000565 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200566 {(char_u *)0L, (char_u *)0L}
567#endif
568 SCTX_INIT},
569 {"cindent", "cin", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000570 (char_u *)&p_cin, PV_CIN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200571 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
572 {"cinkeys", "cink", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000573 (char_u *)&p_cink, PV_CINK, NULL,
Bram Moolenaar8e145b82022-05-21 20:17:31 +0100574 {INDENTKEYS_DEFAULT, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200575 {"cinoptions", "cino", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000576 (char_u *)&p_cino, PV_CINO, did_set_cinoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200577 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Tom Praschan3506cf32022-04-07 12:39:08 +0100578 {"cinscopedecls", "cinsd", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000579 (char_u *)&p_cinsd, PV_CINSD, NULL,
Tom Praschan3506cf32022-04-07 12:39:08 +0100580 {(char_u *)"public,protected,private", (char_u *)0L}
Tom Praschan3506cf32022-04-07 12:39:08 +0100581 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200582 {"cinwords", "cinw", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000583 (char_u *)&p_cinw, PV_CINW, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200584 {(char_u *)"if,else,while,do,for,switch",
585 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200586 SCTX_INIT},
587 {"clipboard", "cb", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
588#ifdef FEAT_CLIPBOARD
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000589 (char_u *)&p_cb, PV_NONE, did_set_clipboard,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200590# ifdef FEAT_XCLIPBOARD
591 {(char_u *)"autoselect,exclude:cons\\|linux",
592 (char_u *)0L}
593# else
594 {(char_u *)"", (char_u *)0L}
595# endif
596#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000597 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200598 {(char_u *)"", (char_u *)0L}
599#endif
600 SCTX_INIT},
601 {"cmdheight", "ch", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000602 (char_u *)&p_ch, PV_NONE, did_set_cmdheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200603 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
604 {"cmdwinheight", "cwh", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000605 (char_u *)&p_cwh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200606 {(char_u *)7L, (char_u *)0L} SCTX_INIT},
607 {"colorcolumn", "cc", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_RWIN,
608#ifdef FEAT_SYN_HL
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000609 (char_u *)VAR_WIN, PV_CC, did_set_colorcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200610#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000611 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200612#endif
613 {(char_u *)"", (char_u *)0L} SCTX_INIT},
614 {"columns", "co", P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000615 (char_u *)&Columns, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200616 {(char_u *)80L, (char_u *)0L} SCTX_INIT},
617 {"comments", "com", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA
618 |P_NODUP|P_CURSWANT,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000619 (char_u *)&p_com, PV_COM, did_set_comments,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200620 {(char_u *)"s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,fb:-",
621 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200622 SCTX_INIT},
623 {"commentstring", "cms", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
624#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000625 (char_u *)&p_cms, PV_CMS, did_set_commentstring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200626 {(char_u *)"/*%s*/", (char_u *)0L}
627#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000628 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200629 {(char_u *)0L, (char_u *)0L}
630#endif
631 SCTX_INIT},
632 // P_PRI_MKRC isn't needed here, optval_default()
633 // always returns TRUE for 'compatible'
634 {"compatible", "cp", P_BOOL|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000635 (char_u *)&p_cp, PV_NONE, did_set_compatible,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200636 {(char_u *)TRUE, (char_u *)FALSE} SCTX_INIT},
637 {"complete", "cpt", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000638 (char_u *)&p_cpt, PV_CPT, did_set_complete,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200639 {(char_u *)".,w,b,u,t,i", (char_u *)0L}
640 SCTX_INIT},
641 {"concealcursor","cocu", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
642#ifdef FEAT_CONCEAL
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000643 (char_u *)VAR_WIN, PV_COCU, did_set_concealcursor,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200644 {(char_u *)"", (char_u *)NULL}
645#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000646 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200647 {(char_u *)NULL, (char_u *)0L}
648#endif
649 SCTX_INIT},
650 {"conceallevel","cole", P_NUM|P_RWIN|P_VI_DEF,
651#ifdef FEAT_CONCEAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000652 (char_u *)VAR_WIN, PV_COLE, did_set_conceallevel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200653#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000654 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200655#endif
656 {(char_u *)0L, (char_u *)0L}
657 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +0000658 {"completefunc", "cfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200659#ifdef FEAT_COMPL_FUNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000660 (char_u *)&p_cfu, PV_CFU, did_set_completefunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200661 {(char_u *)"", (char_u *)0L}
662#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000663 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200664 {(char_u *)0L, (char_u *)0L}
665#endif
666 SCTX_INIT},
667 {"completeopt", "cot", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000668 (char_u *)&p_cot, PV_NONE, did_set_completeopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200669 {(char_u *)"menu,preview", (char_u *)0L}
670 SCTX_INIT},
671 {"completepopup", "cpp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Bram Moolenaar05ad5ff2019-11-30 22:48:27 +0100672#if defined(FEAT_PROP_POPUP) && defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000673 (char_u *)&p_cpp, PV_NONE, did_set_completepopup,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200674 {(char_u *)"", (char_u *)0L}
675#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000676 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200677 {(char_u *)NULL, (char_u *)0L}
678#endif
679 SCTX_INIT},
680 {"completeslash", "csl", P_STRING|P_VI_DEF|P_VIM,
681#if defined(BACKSLASH_IN_FILENAME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000682 (char_u *)&p_csl, PV_CSL, did_set_completeslash,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200683 {(char_u *)"", (char_u *)0L}
684#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000685 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200686 {(char_u *)0L, (char_u *)0L}
687#endif
688 SCTX_INIT},
689 {"confirm", "cf", P_BOOL|P_VI_DEF,
690#if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000691 (char_u *)&p_confirm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200692#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000693 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200694#endif
695 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
696 {"conskey", "consk",P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000697 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200698 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
699 {"copyindent", "ci", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000700 (char_u *)&p_ci, PV_CI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200701 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
702 {"cpoptions", "cpo", P_STRING|P_VIM|P_RALL|P_FLAGLIST,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000703 (char_u *)&p_cpo, PV_NONE, did_set_cpoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200704 {(char_u *)CPO_VI, (char_u *)CPO_VIM}
705 SCTX_INIT},
706 {"cryptmethod", "cm", P_STRING|P_ALLOCED|P_VI_DEF,
707#ifdef FEAT_CRYPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000708 (char_u *)&p_cm, PV_CM, did_set_cryptmethod,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200709 {(char_u *)"blowfish2", (char_u *)0L}
710#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000711 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200712 {(char_u *)0L, (char_u *)0L}
713#endif
714 SCTX_INIT},
715 {"cscopepathcomp", "cspc", P_NUM|P_VI_DEF|P_VIM,
716#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000717 (char_u *)&p_cspc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200718#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000719 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200720#endif
721 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
722 {"cscopeprg", "csprg", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
723#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000724 (char_u *)&p_csprg, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200725 {(char_u *)"cscope", (char_u *)0L}
726#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000727 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200728 {(char_u *)0L, (char_u *)0L}
729#endif
730 SCTX_INIT},
731 {"cscopequickfix", "csqf", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
732#if defined(FEAT_CSCOPE) && defined(FEAT_QUICKFIX)
733 (char_u *)&p_csqf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000734 did_set_cscopequickfix,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200735 {(char_u *)"", (char_u *)0L}
736#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000737 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200738 {(char_u *)0L, (char_u *)0L}
739#endif
740 SCTX_INIT},
741 {"cscoperelative", "csre", P_BOOL|P_VI_DEF|P_VIM,
742#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000743 (char_u *)&p_csre, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200744#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000745 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200746#endif
747 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
748 {"cscopetag", "cst", P_BOOL|P_VI_DEF|P_VIM,
749#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000750 (char_u *)&p_cst, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200751#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000752 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200753#endif
754 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
755 {"cscopetagorder", "csto", P_NUM|P_VI_DEF|P_VIM,
756#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000757 (char_u *)&p_csto, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200758#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000759 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200760#endif
761 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
762 {"cscopeverbose", "csverb", P_BOOL|P_VI_DEF|P_VIM,
763#ifdef FEAT_CSCOPE
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000764 (char_u *)&p_csverbose, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200765#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000766 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200767#endif
768 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
769 {"cursorbind", "crb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000770 (char_u *)VAR_WIN, PV_CRBIND, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200771 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
772 {"cursorcolumn", "cuc", P_BOOL|P_VI_DEF|P_RWINONLY,
773#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000774 (char_u *)VAR_WIN, PV_CUC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200775#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000776 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200777#endif
778 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
779 {"cursorline", "cul", P_BOOL|P_VI_DEF|P_RWINONLY,
780#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000781 (char_u *)VAR_WIN, PV_CUL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200782#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000783 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200784#endif
785 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar017ba072019-09-14 21:01:23 +0200786 {"cursorlineopt", "culopt", P_STRING|P_VI_DEF|P_RWIN|P_ONECOMMA|P_NODUP,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200787#ifdef FEAT_SYN_HL
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000788 (char_u *)VAR_WIN, PV_CULOPT,
789 did_set_cursorlineopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200790#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000791 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200792#endif
793 {(char_u *)"both", (char_u *)0L} SCTX_INIT},
794 {"debug", NULL, P_STRING|P_VI_DEF,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000795 (char_u *)&p_debug, PV_NONE, did_set_debug,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200796 {(char_u *)"", (char_u *)0L} SCTX_INIT},
797 {"define", "def", P_STRING|P_ALLOCED|P_VI_DEF|P_CURSWANT,
798#ifdef FEAT_FIND_ID
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000799 (char_u *)&p_def, PV_DEF, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200800 {(char_u *)"^\\s*#\\s*define", (char_u *)0L}
801#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000802 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200803 {(char_u *)NULL, (char_u *)0L}
804#endif
805 SCTX_INIT},
806 {"delcombine", "deco", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000807 (char_u *)&p_deco, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200808 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
809 {"dictionary", "dict", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000810 (char_u *)&p_dict, PV_DICT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200811 {(char_u *)"", (char_u *)0L} SCTX_INIT},
812 {"diff", NULL, P_BOOL|P_VI_DEF|P_RWIN|P_NOGLOB,
813#ifdef FEAT_DIFF
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000814 (char_u *)VAR_WIN, PV_DIFF, did_set_diff,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200815#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000816 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200817#endif
818 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
819 {"diffexpr", "dex", P_STRING|P_VI_DEF|P_SECURE|P_CURSWANT,
820#if defined(FEAT_DIFF) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000821 (char_u *)&p_dex, PV_NONE, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200822 {(char_u *)"", (char_u *)0L}
823#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000824 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200825 {(char_u *)0L, (char_u *)0L}
826#endif
827 SCTX_INIT},
828 {"diffopt", "dip", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN|P_ONECOMMA
829 |P_NODUP,
830#ifdef FEAT_DIFF
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000831 (char_u *)&p_dip, PV_NONE, did_set_diffopt,
Bram Moolenaarc8234772019-11-10 21:00:27 +0100832 {(char_u *)"internal,filler,closeoff",
833 (char_u *)NULL}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200834#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000835 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200836 {(char_u *)"", (char_u *)NULL}
837#endif
838 SCTX_INIT},
839 {"digraph", "dg", P_BOOL|P_VI_DEF|P_VIM,
840#ifdef FEAT_DIGRAPHS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000841 (char_u *)&p_dg, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200842#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000843 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200844#endif
845 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
846 {"directory", "dir", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA
847 |P_NODUP|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000848 (char_u *)&p_dir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200849 {(char_u *)DFLT_DIR, (char_u *)0L} SCTX_INIT},
850 {"display", "dy", P_STRING|P_VI_DEF|P_ONECOMMA|P_RALL|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000851 (char_u *)&p_dy, PV_NONE, did_set_display,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200852 {(char_u *)"", (char_u *)0L} SCTX_INIT},
853 {"eadirection", "ead", P_STRING|P_VI_DEF,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000854 (char_u *)&p_ead, PV_NONE, did_set_eadirection,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200855 {(char_u *)"both", (char_u *)0L}
856 SCTX_INIT},
857 {"edcompatible","ed", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000858 (char_u *)&p_ed, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200859 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarfb0cf232022-10-22 11:25:19 +0100860 {"emoji", "emo", P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000861 (char_u *)&p_emoji, PV_NONE, did_set_ambiwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200862 {(char_u *)TRUE, (char_u *)0L}
863 SCTX_INIT},
864 {"encoding", "enc", P_STRING|P_VI_DEF|P_RCLR|P_NO_ML,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000865 (char_u *)&p_enc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200866 {(char_u *)ENC_DFLT, (char_u *)0L}
867 SCTX_INIT},
Bram Moolenaarfb0cf232022-10-22 11:25:19 +0100868 {"endoffile", "eof", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
869 (char_u *)&p_eof, PV_EOF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000870 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0aad88f2022-11-12 11:54:26 +0000871 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200872 {"endofline", "eol", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
873 (char_u *)&p_eol, PV_EOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000874 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200875 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
876 {"equalalways", "ea", P_BOOL|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000877 (char_u *)&p_ea, PV_NONE, did_set_equalalways,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200878 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
879 {"equalprg", "ep", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000880 (char_u *)&p_ep, PV_EP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200881 {(char_u *)"", (char_u *)0L} SCTX_INIT},
882 {"errorbells", "eb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000883 (char_u *)&p_eb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200884 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
885 {"errorfile", "ef", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
886#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000887 (char_u *)&p_ef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200888 {(char_u *)DFLT_ERRORFILE, (char_u *)0L}
889#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000890 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200891 {(char_u *)NULL, (char_u *)0L}
892#endif
893 SCTX_INIT},
894 {"errorformat", "efm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
895#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000896 (char_u *)&p_efm, PV_EFM, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200897 {(char_u *)DFLT_EFM, (char_u *)0L}
898#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000899 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200900 {(char_u *)NULL, (char_u *)0L}
901#endif
902 SCTX_INIT},
903 {"esckeys", "ek", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000904 (char_u *)&p_ek, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200905 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
906 {"eventignore", "ei", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000907 (char_u *)&p_ei, PV_NONE, did_set_eventignore,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200908 {(char_u *)"", (char_u *)0L} SCTX_INIT},
909 {"expandtab", "et", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000910 (char_u *)&p_et, PV_ET, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200911 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
912 {"exrc", "ex", P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000913 (char_u *)&p_exrc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200914 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
915 {"fileencoding","fenc", P_STRING|P_ALLOCED|P_VI_DEF|P_RSTAT|P_RBUF
916 |P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000917 (char_u *)&p_fenc, PV_FENC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200918 {(char_u *)"", (char_u *)0L}
919 SCTX_INIT},
920 {"fileencodings","fencs", P_STRING|P_VI_DEF|P_ONECOMMA,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000921 (char_u *)&p_fencs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200922 {(char_u *)"ucs-bom", (char_u *)0L}
923 SCTX_INIT},
924 {"fileformat", "ff", P_STRING|P_ALLOCED|P_VI_DEF|P_RSTAT|P_NO_MKRC
925 |P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000926 (char_u *)&p_ff, PV_FF, did_set_fileformat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200927 {(char_u *)DFLT_FF, (char_u *)0L} SCTX_INIT},
928 {"fileformats", "ffs", P_STRING|P_VIM|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000929 (char_u *)&p_ffs, PV_NONE, did_set_fileformats,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200930 {(char_u *)DFLT_FFS_VI, (char_u *)DFLT_FFS_VIM}
931 SCTX_INIT},
932 {"fileignorecase", "fic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000933 (char_u *)&p_fic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200934 {
935#ifdef CASE_INSENSITIVE_FILENAME
936 (char_u *)TRUE,
937#else
938 (char_u *)FALSE,
939#endif
940 (char_u *)0L} SCTX_INIT},
Bram Moolenaard5e8c922021-02-02 21:10:01 +0100941 {"filetype", "ft", P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000942 (char_u *)&p_ft, PV_FT, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200943 {(char_u *)"", (char_u *)0L}
944 SCTX_INIT},
945 {"fillchars", "fcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000946 (char_u *)&p_fcs, PV_FCS, NULL,
Bram Moolenaar4ba5f1d2022-10-04 14:36:29 +0100947 {(char_u *)"vert:|,fold:-,eob:~,lastline:@",
948 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200949 SCTX_INIT},
950 {"fixendofline", "fixeol", P_BOOL|P_VI_DEF|P_RSTAT,
951 (char_u *)&p_fixeol, PV_FIXEOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000952 did_set_eof_eol_fixeol_bomb,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200953 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
954 {"fkmap", "fk", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000955 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200956 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
957 {"flash", "fl", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000958 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200959 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
960 {"foldclose", "fcl", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_RWIN,
961#ifdef FEAT_FOLDING
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +0000962 (char_u *)&p_fcl, PV_NONE, did_set_foldclose,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200963 {(char_u *)"", (char_u *)0L}
964#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000965 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200966 {(char_u *)NULL, (char_u *)0L}
967#endif
968 SCTX_INIT},
969 {"foldcolumn", "fdc", P_NUM|P_VI_DEF|P_RWIN,
970#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000971 (char_u *)VAR_WIN, PV_FDC, did_set_foldcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200972 {(char_u *)FALSE, (char_u *)0L}
973#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000974 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200975 {(char_u *)NULL, (char_u *)0L}
976#endif
977 SCTX_INIT},
978 {"foldenable", "fen", P_BOOL|P_VI_DEF|P_RWIN,
979#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000980 (char_u *)VAR_WIN, PV_FEN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200981 {(char_u *)TRUE, (char_u *)0L}
982#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000983 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200984 {(char_u *)NULL, (char_u *)0L}
985#endif
986 SCTX_INIT},
987 {"foldexpr", "fde", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN|P_MLE,
988#if defined(FEAT_FOLDING) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +0000989 (char_u *)VAR_WIN, PV_FDE, did_set_foldexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200990 {(char_u *)"0", (char_u *)NULL}
991#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000992 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200993 {(char_u *)NULL, (char_u *)0L}
994#endif
995 SCTX_INIT},
996 {"foldignore", "fdi", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN,
997#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +0000998 (char_u *)VAR_WIN, PV_FDI, did_set_foldignore,
Bram Moolenaar0eddca42019-09-12 22:26:43 +0200999 {(char_u *)"#", (char_u *)NULL}
1000#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001001 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001002 {(char_u *)NULL, (char_u *)0L}
1003#endif
1004 SCTX_INIT},
1005 {"foldlevel", "fdl", P_NUM|P_VI_DEF|P_RWIN,
1006#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001007 (char_u *)VAR_WIN, PV_FDL, did_set_foldlevel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001008 {(char_u *)0L, (char_u *)0L}
1009#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001010 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001011 {(char_u *)NULL, (char_u *)0L}
1012#endif
1013 SCTX_INIT},
1014 {"foldlevelstart","fdls", P_NUM|P_VI_DEF|P_CURSWANT,
1015#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001016 (char_u *)&p_fdls, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001017 {(char_u *)-1L, (char_u *)0L}
1018#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001019 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001020 {(char_u *)NULL, (char_u *)0L}
1021#endif
1022 SCTX_INIT},
1023 {"foldmarker", "fmr", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|
1024 P_RWIN|P_ONECOMMA|P_NODUP,
1025#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001026 (char_u *)VAR_WIN, PV_FMR, did_set_foldmarker,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001027 {(char_u *)"{{{,}}}", (char_u *)NULL}
1028#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001029 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001030 {(char_u *)NULL, (char_u *)0L}
1031#endif
1032 SCTX_INIT},
1033 {"foldmethod", "fdm", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN,
1034#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001035 (char_u *)VAR_WIN, PV_FDM, did_set_foldmethod,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001036 {(char_u *)"manual", (char_u *)NULL}
1037#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001038 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001039 {(char_u *)NULL, (char_u *)0L}
1040#endif
1041 SCTX_INIT},
1042 {"foldminlines","fml", P_NUM|P_VI_DEF|P_RWIN,
1043#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001044 (char_u *)VAR_WIN, PV_FML, did_set_foldminlines,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001045 {(char_u *)1L, (char_u *)0L}
1046#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001047 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001048 {(char_u *)NULL, (char_u *)0L}
1049#endif
1050 SCTX_INIT},
1051 {"foldnestmax", "fdn", P_NUM|P_VI_DEF|P_RWIN,
1052#ifdef FEAT_FOLDING
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001053 (char_u *)VAR_WIN, PV_FDN, did_set_foldnestmax,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001054 {(char_u *)20L, (char_u *)0L}
1055#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001056 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001057 {(char_u *)NULL, (char_u *)0L}
1058#endif
1059 SCTX_INIT},
1060 {"foldopen", "fdo", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_CURSWANT,
1061#ifdef FEAT_FOLDING
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00001062 (char_u *)&p_fdo, PV_NONE, did_set_foldopen,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001063 {(char_u *)"block,hor,mark,percent,quickfix,search,tag,undo",
1064 (char_u *)0L}
1065#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001066 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001067 {(char_u *)NULL, (char_u *)0L}
1068#endif
1069 SCTX_INIT},
1070 {"foldtext", "fdt", P_STRING|P_ALLOCED|P_VIM|P_VI_DEF|P_RWIN|P_MLE,
1071#if defined(FEAT_FOLDING) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001072 (char_u *)VAR_WIN, PV_FDT, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001073 {(char_u *)"foldtext()", (char_u *)NULL}
1074#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001075 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001076 {(char_u *)NULL, (char_u *)0L}
1077#endif
1078 SCTX_INIT},
1079 {"formatexpr", "fex", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
1080#ifdef FEAT_EVAL
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001081 (char_u *)&p_fex, PV_FEX, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001082 {(char_u *)"", (char_u *)0L}
1083#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001084 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001085 {(char_u *)0L, (char_u *)0L}
1086#endif
1087 SCTX_INIT},
1088 {"formatoptions","fo", P_STRING|P_ALLOCED|P_VIM|P_FLAGLIST,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001089 (char_u *)&p_fo, PV_FO, did_set_formatoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001090 {(char_u *)DFLT_FO_VI, (char_u *)DFLT_FO_VIM}
1091 SCTX_INIT},
1092 {"formatlistpat","flp", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001093 (char_u *)&p_flp, PV_FLP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001094 {(char_u *)"^\\s*\\d\\+[\\]:.)}\\t ]\\s*",
1095 (char_u *)0L} SCTX_INIT},
1096 {"formatprg", "fp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001097 (char_u *)&p_fp, PV_FP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001098 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1099 {"fsync", "fs", P_BOOL|P_SECURE|P_VI_DEF,
1100#ifdef HAVE_FSYNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001101 (char_u *)&p_fs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001102 {(char_u *)TRUE, (char_u *)0L}
1103#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001104 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001105 {(char_u *)FALSE, (char_u *)0L}
1106#endif
1107 SCTX_INIT},
1108 {"gdefault", "gd", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001109 (char_u *)&p_gd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001110 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1111 {"graphic", "gr", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001112 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001113 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1114 {"grepformat", "gfm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1115#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001116 (char_u *)&p_gefm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001117 {(char_u *)DFLT_GREPFORMAT, (char_u *)0L}
1118#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001119 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001120 {(char_u *)NULL, (char_u *)0L}
1121#endif
1122 SCTX_INIT},
1123 {"grepprg", "gp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1124#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001125 (char_u *)&p_gp, PV_GP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001126 {
ichizok02560422022-04-05 14:18:44 +01001127# if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001128 // may be changed to "grep -n" in os_win32.c
1129 (char_u *)"findstr /n",
ichizok02560422022-04-05 14:18:44 +01001130# elif defined(UNIX)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001131 // Add an extra file name so that grep will always
1132 // insert a file name in the match line.
1133 (char_u *)"grep -n $* /dev/null",
ichizok02560422022-04-05 14:18:44 +01001134# elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001135 (char_u *)"SEARCH/NUMBERS ",
ichizok02560422022-04-05 14:18:44 +01001136# else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001137 (char_u *)"grep -n ",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001138# endif
1139 (char_u *)0L}
1140#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001141 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001142 {(char_u *)NULL, (char_u *)0L}
1143#endif
1144 SCTX_INIT},
1145 {"guicursor", "gcr", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1146#ifdef CURSOR_SHAPE
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001147 (char_u *)&p_guicursor, PV_NONE,
1148 did_set_guicursor,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001149 {
1150# ifdef FEAT_GUI
1151 (char_u *)"n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor-blinkwait175-blinkoff150-blinkon175",
1152# else // Win32 console
1153 (char_u *)"n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block",
1154# endif
1155 (char_u *)0L}
1156#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001157 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001158 {(char_u *)NULL, (char_u *)0L}
1159#endif
1160 SCTX_INIT},
1161 {"guifont", "gfn", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1162#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001163 (char_u *)&p_guifont, PV_NONE, did_set_guifont,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001164 {(char_u *)"", (char_u *)0L}
1165#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001166 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001167 {(char_u *)NULL, (char_u *)0L}
1168#endif
1169 SCTX_INIT},
1170 {"guifontset", "gfs", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA,
1171#if defined(FEAT_GUI) && defined(FEAT_XFONTSET)
1172 (char_u *)&p_guifontset, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001173 did_set_guifontset,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001174 {(char_u *)"", (char_u *)0L}
1175#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001176 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001177 {(char_u *)NULL, (char_u *)0L}
1178#endif
1179 SCTX_INIT},
1180 {"guifontwide", "gfw", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1181#if defined(FEAT_GUI)
1182 (char_u *)&p_guifontwide, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001183 did_set_guifontwide,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001184 {(char_u *)"", (char_u *)0L}
1185#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001186 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001187 {(char_u *)NULL, (char_u *)0L}
1188#endif
1189 SCTX_INIT},
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001190
1191
1192 {"guiligatures", "gli", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
1193#if defined(FEAT_GUI_GTK)
1194 (char_u *)&p_guiligatures, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001195 did_set_guiligatures,
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001196 {(char_u *)"", (char_u *)0L}
1197#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001198 (char_u *)NULL, PV_NONE, NULL,
Dusan Popovic4eeedc02021-10-16 20:52:05 +01001199 {(char_u *)NULL, (char_u *)0L}
1200#endif
1201 SCTX_INIT},
1202
1203
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001204 {"guiheadroom", "ghr", P_NUM|P_VI_DEF,
1205#if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001206 (char_u *)&p_ghr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001207#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001208 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001209#endif
1210 {(char_u *)50L, (char_u *)0L} SCTX_INIT},
1211 {"guioptions", "go", P_STRING|P_VI_DEF|P_RALL|P_FLAGLIST,
1212#if defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001213 (char_u *)&p_go, PV_NONE, did_set_guioptions,
Bram Moolenaar097148e2020-08-11 21:58:20 +02001214# if defined(UNIX)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001215 {(char_u *)"aegimrLtT", (char_u *)0L}
1216# else
1217 {(char_u *)"egmrLtT", (char_u *)0L}
1218# endif
1219#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001220 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001221 {(char_u *)NULL, (char_u *)0L}
1222#endif
1223 SCTX_INIT},
1224 {"guipty", NULL, P_BOOL|P_VI_DEF,
1225#if defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001226 (char_u *)&p_guipty, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001227#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001228 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001229#endif
1230 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1231 {"guitablabel", "gtl", P_STRING|P_VI_DEF|P_RWIN|P_MLE,
1232#if defined(FEAT_GUI_TABLINE)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001233 (char_u *)&p_gtl, PV_NONE, did_set_guitablabel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001234 {(char_u *)"", (char_u *)0L}
1235#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001236 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001237 {(char_u *)NULL, (char_u *)0L}
1238#endif
1239 SCTX_INIT},
1240 {"guitabtooltip", "gtt", P_STRING|P_VI_DEF|P_RWIN,
1241#if defined(FEAT_GUI_TABLINE)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001242 (char_u *)&p_gtt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001243 {(char_u *)"", (char_u *)0L}
1244#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001245 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001246 {(char_u *)NULL, (char_u *)0L}
1247#endif
1248 SCTX_INIT},
1249 {"hardtabs", "ht", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001250 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001251 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1252 {"helpfile", "hf", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001253 (char_u *)&p_hf, PV_NONE, did_set_helpfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001254 {(char_u *)DFLT_HELPFILE, (char_u *)0L}
1255 SCTX_INIT},
1256 {"helpheight", "hh", P_NUM|P_VI_DEF,
1257 (char_u *)&p_hh, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001258 did_set_winheight_helpheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001259 {(char_u *)20L, (char_u *)0L} SCTX_INIT},
1260 {"helplang", "hlg", P_STRING|P_VI_DEF|P_ONECOMMA,
1261#ifdef FEAT_MULTI_LANG
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001262 (char_u *)&p_hlg, PV_NONE, did_set_helplang,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001263 {(char_u *)"", (char_u *)0L}
1264#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001265 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001266 {(char_u *)0L, (char_u *)0L}
1267#endif
1268 SCTX_INIT},
1269 {"hidden", "hid", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001270 (char_u *)&p_hid, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001271 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1272 {"highlight", "hl", P_STRING|P_VI_DEF|P_RCLR|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001273 (char_u *)&p_hl, PV_NONE, did_set_highlight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001274 {(char_u *)HIGHLIGHT_INIT, (char_u *)0L}
1275 SCTX_INIT},
1276 {"history", "hi", P_NUM|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001277 (char_u *)&p_hi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001278 {(char_u *)0L, (char_u *)50L} SCTX_INIT},
1279 {"hkmap", "hk", P_BOOL|P_VI_DEF|P_VIM,
1280#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001281 (char_u *)&p_hkmap, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001282#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001283 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001284#endif
1285 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1286 {"hkmapp", "hkp", P_BOOL|P_VI_DEF|P_VIM,
1287#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001288 (char_u *)&p_hkmapp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001289#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001290 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001291#endif
1292 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1293 {"hlsearch", "hls", P_BOOL|P_VI_DEF|P_VIM|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001294#if defined(FEAT_SEARCH_EXTRA)
1295 (char_u *)&p_hls, PV_NONE, did_set_hlsearch,
1296#else
1297 (char_u *)NULL, PV_NONE, NULL,
1298#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001299 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1300 {"icon", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001301 (char_u *)&p_icon, PV_NONE, did_set_title_icon,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001302 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1303 {"iconstring", NULL, P_STRING|P_VI_DEF|P_MLE,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001304 (char_u *)&p_iconstring, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001305 did_set_iconstring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001306 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1307 {"ignorecase", "ic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001308 (char_u *)&p_ic, PV_NONE, did_set_ignorecase,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001309 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001310 {"imactivatefunc","imaf",P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001311#if defined(FEAT_EVAL) && \
1312 (defined(FEAT_XIM) || defined(IME_WITHOUT_XIM) || defined(VIMDLL))
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001313 (char_u *)&p_imaf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001314 did_set_imactivatefunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001315 {(char_u *)"", (char_u *)NULL}
1316# else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001317 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001318 {(char_u *)NULL, (char_u *)0L}
1319# endif
1320 SCTX_INIT},
1321 {"imactivatekey","imak",P_STRING|P_VI_DEF,
1322#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
1323 (char_u *)&p_imak, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001324 did_set_imactivatekey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001325#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001326 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001327#endif
1328 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1329 {"imcmdline", "imc", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001330 (char_u *)&p_imcmdline, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001331 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1332 {"imdisable", "imd", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001333#if defined(HAVE_INPUT_METHOD)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001334 (char_u *)&p_imdisable, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001335 did_set_imdisable,
1336#else
1337 (char_u *)NULL, PV_NONE, NULL,
1338#endif
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001339 {(char_u *)FALSE, (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001340 SCTX_INIT},
1341 {"iminsert", "imi", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001342 (char_u *)&p_iminsert, PV_IMI, did_set_iminsert,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001343 {(char_u *)B_IMODE_NONE, (char_u *)0L}
1344 SCTX_INIT},
1345 {"imsearch", "ims", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001346 (char_u *)&p_imsearch, PV_IMS, did_set_imsearch,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001347 {(char_u *)B_IMODE_USE_INSERT, (char_u *)0L}
1348 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001349 {"imstatusfunc","imsf",P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001350#if defined(FEAT_EVAL) && \
1351 (defined(FEAT_XIM) || defined(IME_WITHOUT_XIM) || defined(VIMDLL))
1352 (char_u *)&p_imsf, PV_NONE, did_set_imstatusfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001353 {(char_u *)"", (char_u *)NULL}
1354#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001355 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001356 {(char_u *)NULL, (char_u *)0L}
1357#endif
1358 SCTX_INIT},
1359 {"imstyle", "imst", P_NUM|P_VI_DEF|P_SECURE,
1360#if defined(FEAT_XIM) && defined(FEAT_GUI_GTK)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001361 (char_u *)&p_imst, PV_NONE, did_set_imstyle,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001362 {(char_u *)IM_OVER_THE_SPOT, (char_u *)0L}
1363#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001364 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001365 {(char_u *)0L, (char_u *)0L}
1366#endif
1367 SCTX_INIT},
1368 {"include", "inc", P_STRING|P_ALLOCED|P_VI_DEF,
1369#ifdef FEAT_FIND_ID
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001370 (char_u *)&p_inc, PV_INC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001371 {(char_u *)"^\\s*#\\s*include", (char_u *)0L}
1372#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001373 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001374 {(char_u *)0L, (char_u *)0L}
1375#endif
1376 SCTX_INIT},
1377 {"includeexpr", "inex", P_STRING|P_ALLOCED|P_VI_DEF|P_MLE,
1378#if defined(FEAT_FIND_ID) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001379 (char_u *)&p_inex, PV_INEX, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001380 {(char_u *)"", (char_u *)0L}
1381#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001382 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001383 {(char_u *)0L, (char_u *)0L}
1384#endif
1385 SCTX_INIT},
1386 {"incsearch", "is", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001387 (char_u *)&p_is, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001388 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1389 {"indentexpr", "inde", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_MLE,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001390#if defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001391 (char_u *)&p_inde, PV_INDE, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001392 {(char_u *)"", (char_u *)0L}
1393#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001394 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001395 {(char_u *)0L, (char_u *)0L}
1396#endif
1397 SCTX_INIT},
1398 {"indentkeys", "indk", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001399#if defined(FEAT_EVAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001400 (char_u *)&p_indk, PV_INDK, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001401 {INDENTKEYS_DEFAULT, (char_u *)0L}
1402#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001403 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001404 {(char_u *)0L, (char_u *)0L}
1405#endif
1406 SCTX_INIT},
1407 {"infercase", "inf", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001408 (char_u *)&p_inf, PV_INF, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001409 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1410 {"insertmode", "im", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001411 (char_u *)&p_im, PV_NONE, did_set_insertmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001412 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1413 {"isfname", "isf", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001414 (char_u *)&p_isf, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001415 {
1416#ifdef BACKSLASH_IN_FILENAME
1417 // Excluded are: & and ^ are special in cmd.exe
1418 // ( and ) are used in text separating fnames
1419 (char_u *)"@,48-57,/,\\,.,-,_,+,,,#,$,%,{,},[,],:,@-@,!,~,=",
1420#else
ichizok02560422022-04-05 14:18:44 +01001421# if defined(AMIGA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001422 (char_u *)"@,48-57,/,.,-,_,+,,,$,:",
ichizok02560422022-04-05 14:18:44 +01001423# elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001424 (char_u *)"@,48-57,/,.,-,_,+,,,#,$,%,<,>,[,],:,;,~",
ichizok02560422022-04-05 14:18:44 +01001425# else // UNIX et al.
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001426 (char_u *)"@,48-57,/,.,-,_,+,,,#,$,%,~,=",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001427# endif
1428#endif
1429 (char_u *)0L} SCTX_INIT},
1430 {"isident", "isi", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001431 (char_u *)&p_isi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001432 {
1433#if defined(MSWIN)
1434 (char_u *)"@,48-57,_,128-167,224-235",
1435#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001436 (char_u *)"@,48-57,_,192-255",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001437#endif
1438 (char_u *)0L} SCTX_INIT},
1439 {"iskeyword", "isk", P_STRING|P_ALLOCED|P_VIM|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001440 (char_u *)&p_isk, PV_ISK, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001441 {
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001442 (char_u *)"@,48-57,_",
Bram Moolenaar424bcae2022-01-31 14:59:41 +00001443#if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001444 (char_u *)"@,48-57,_,128-167,224-235"
Bram Moolenaar424bcae2022-01-31 14:59:41 +00001445#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001446 ISK_LATIN1
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001447#endif
1448 } SCTX_INIT},
1449 {"isprint", "isp", P_STRING|P_VI_DEF|P_RALL|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001450 (char_u *)&p_isp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001451 {
1452#if defined(MSWIN) || defined(VMS)
1453 (char_u *)"@,~-255",
1454#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001455 ISP_LATIN1,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001456#endif
1457 (char_u *)0L} SCTX_INIT},
1458 {"joinspaces", "js", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001459 (char_u *)&p_js, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001460 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1461 {"key", NULL, P_STRING|P_ALLOCED|P_VI_DEF|P_NO_MKRC,
1462#ifdef FEAT_CRYPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001463 (char_u *)&p_key, PV_KEY, did_set_cryptkey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001464 {(char_u *)"", (char_u *)0L}
1465#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001466 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001467 {(char_u *)0L, (char_u *)0L}
1468#endif
1469 SCTX_INIT},
1470 {"keymap", "kmp", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF|P_RSTAT|P_NFNAME|P_PRI_MKRC,
1471#ifdef FEAT_KEYMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001472 (char_u *)&p_keymap, PV_KMAP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001473 {(char_u *)"", (char_u *)0L}
1474#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001475 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001476 {(char_u *)"", (char_u *)0L}
1477#endif
1478 SCTX_INIT},
1479 {"keymodel", "km", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001480 (char_u *)&p_km, PV_NONE, did_set_keymodel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001481 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Bram Moolenaar63a2e362022-11-23 20:20:18 +00001482 {"keyprotocol", "kpc", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001483 (char_u *)&p_kpc, PV_NONE, did_set_keyprotocol,
Bram Moolenaar63a2e362022-11-23 20:20:18 +00001484 {(char_u *)"kitty:kitty,foot:kitty,wezterm:kitty,xterm:mok2", (char_u *)0L}
1485 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001486 {"keywordprg", "kp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001487 (char_u *)&p_kp, PV_KP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001488 {
ichizok02560422022-04-05 14:18:44 +01001489#if defined(MSWIN)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001490 (char_u *)":help",
ichizok02560422022-04-05 14:18:44 +01001491#elif defined(VMS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001492 (char_u *)"help",
ichizok02560422022-04-05 14:18:44 +01001493#elif defined(USEMAN_S)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001494 (char_u *)"man -s",
ichizok02560422022-04-05 14:18:44 +01001495#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001496 (char_u *)"man",
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001497#endif
1498 (char_u *)0L} SCTX_INIT},
1499 {"langmap", "lmap", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP|P_SECURE,
1500#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001501 (char_u *)&p_langmap, PV_NONE, did_set_langmap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001502 {(char_u *)"", (char_u *)0L}
1503#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001504 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001505 {(char_u *)NULL, (char_u *)0L}
1506#endif
1507 SCTX_INIT},
1508 {"langmenu", "lm", P_STRING|P_VI_DEF|P_NFNAME,
1509#if defined(FEAT_MENU) && defined(FEAT_MULTI_LANG)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001510 (char_u *)&p_lm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001511#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001512 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001513#endif
1514 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1515 {"langnoremap", "lnr", P_BOOL|P_VI_DEF,
1516#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001517 (char_u *)&p_lnr, PV_NONE, did_set_langnoremap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001518#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001519 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001520#endif
1521 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1522 {"langremap", "lrm", P_BOOL|P_VI_DEF,
1523#ifdef FEAT_LANGMAP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001524 (char_u *)&p_lrm, PV_NONE, did_set_langremap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001525#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001526 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001527#endif
1528 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1529 {"laststatus", "ls", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001530 (char_u *)&p_ls, PV_NONE, did_set_laststatus,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001531 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
1532 {"lazyredraw", "lz", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001533 (char_u *)&p_lz, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001534 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1535 {"linebreak", "lbr", P_BOOL|P_VI_DEF|P_RWIN,
1536#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001537 (char_u *)VAR_WIN, PV_LBR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001538#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001539 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001540#endif
1541 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1542 {"lines", NULL, P_NUM|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001543 (char_u *)&Rows, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001544 {
1545#if defined(MSWIN)
1546 (char_u *)25L,
1547#else
1548 (char_u *)24L,
1549#endif
1550 (char_u *)0L} SCTX_INIT},
1551 {"linespace", "lsp", P_NUM|P_VI_DEF|P_RCLR,
1552#ifdef FEAT_GUI
1553 (char_u *)&p_linespace, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001554 did_set_linespace,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001555#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001556 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001557#endif
1558#ifdef FEAT_GUI_MSWIN
1559 {(char_u *)1L, (char_u *)0L}
1560#else
1561 {(char_u *)0L, (char_u *)0L}
1562#endif
1563 SCTX_INIT},
1564 {"lisp", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001565 (char_u *)&p_lisp, PV_LISP, did_set_lisp,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001566 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar49846fb2022-10-15 16:05:33 +01001567 {"lispoptions", "lop", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001568 (char_u *)&p_lop, PV_LOP, did_set_lispoptions,
Bram Moolenaar49846fb2022-10-15 16:05:33 +01001569 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001570 {"lispwords", "lw", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001571 (char_u *)&p_lispwords, PV_LW, NULL,
Bram Moolenaar8e145b82022-05-21 20:17:31 +01001572 {(char_u *)LISPWORD_VALUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001573 {"list", NULL, P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001574 (char_u *)VAR_WIN, PV_LIST, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001575 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1576 {"listchars", "lcs", P_STRING|P_VI_DEF|P_RALL|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001577 (char_u *)&p_lcs, PV_LCS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001578 {(char_u *)"eol:$", (char_u *)0L} SCTX_INIT},
1579 {"loadplugins", "lpl", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001580 (char_u *)&p_lpl, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001581 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1582 {"luadll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1583#if defined(DYNAMIC_LUA)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001584 (char_u *)&p_luadll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001585 {(char_u *)DYNAMIC_LUA_DLL, (char_u *)0L}
1586#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001587 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001588 {(char_u *)"", (char_u *)0L}
1589#endif
1590 SCTX_INIT},
1591 {"macatsui", NULL, P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001592 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001593 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001594 SCTX_INIT},
1595 {"magic", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001596 (char_u *)&p_magic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001597 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1598 {"makeef", "mef", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1599#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001600 (char_u *)&p_mef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001601 {(char_u *)"", (char_u *)0L}
1602#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001603 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001604 {(char_u *)NULL, (char_u *)0L}
1605#endif
1606 SCTX_INIT},
1607 {"makeencoding","menc", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001608 (char_u *)&p_menc, PV_MENC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001609 {(char_u *)"", (char_u *)0L}
1610 SCTX_INIT},
1611 {"makeprg", "mp", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1612#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001613 (char_u *)&p_mp, PV_MP, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001614# ifdef VMS
1615 {(char_u *)"MMS", (char_u *)0L}
1616# else
1617 {(char_u *)"make", (char_u *)0L}
1618# endif
1619#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001620 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001621 {(char_u *)NULL, (char_u *)0L}
1622#endif
1623 SCTX_INIT},
1624 {"matchpairs", "mps", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001625 (char_u *)&p_mps, PV_MPS, did_set_matchpairs,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001626 {(char_u *)"(:),{:},[:]", (char_u *)0L}
1627 SCTX_INIT},
1628 {"matchtime", "mat", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001629 (char_u *)&p_mat, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001630 {(char_u *)5L, (char_u *)0L} SCTX_INIT},
1631 {"maxcombine", "mco", P_NUM|P_VI_DEF|P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001632 (char_u *)&p_mco, PV_NONE, did_set_maxcombine,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001633 {(char_u *)2, (char_u *)0L} SCTX_INIT},
1634 {"maxfuncdepth", "mfd", P_NUM|P_VI_DEF,
1635#ifdef FEAT_EVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001636 (char_u *)&p_mfd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001637#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001638 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001639#endif
1640 {(char_u *)100L, (char_u *)0L} SCTX_INIT},
1641 {"maxmapdepth", "mmd", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001642 (char_u *)&p_mmd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001643 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
1644 {"maxmem", "mm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001645 (char_u *)&p_mm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001646 {(char_u *)DFLT_MAXMEM, (char_u *)0L}
1647 SCTX_INIT},
1648 {"maxmempattern","mmp", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001649 (char_u *)&p_mmp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001650 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
1651 {"maxmemtot", "mmt", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001652 (char_u *)&p_mmt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001653 {(char_u *)DFLT_MAXMEMTOT, (char_u *)0L}
1654 SCTX_INIT},
1655 {"menuitems", "mis", P_NUM|P_VI_DEF,
1656#ifdef FEAT_MENU
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001657 (char_u *)&p_mis, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001658#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001659 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001660#endif
1661 {(char_u *)25L, (char_u *)0L} SCTX_INIT},
1662 {"mesg", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001663 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001664 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1665 {"mkspellmem", "msm", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE,
1666#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001667 (char_u *)&p_msm, PV_NONE, did_set_mkspellmem,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001668 {(char_u *)"460000,2000,500", (char_u *)0L}
1669#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001670 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001671 {(char_u *)0L, (char_u *)0L}
1672#endif
1673 SCTX_INIT},
1674 {"modeline", "ml", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001675 (char_u *)&p_ml, PV_ML, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001676 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
1677 {"modelineexpr", "mle", P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001678 (char_u *)&p_mle, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001679 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1680 {"modelines", "mls", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001681 (char_u *)&p_mls, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001682 {(char_u *)5L, (char_u *)0L} SCTX_INIT},
1683 {"modifiable", "ma", P_BOOL|P_VI_DEF|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001684 (char_u *)&p_ma, PV_MA, did_set_modifiable,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001685 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1686 {"modified", "mod", P_BOOL|P_NO_MKRC|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001687 (char_u *)&p_mod, PV_MOD, did_set_modified,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001688 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1689 {"more", NULL, P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001690 (char_u *)&p_more, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001691 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
1692 {"mouse", NULL, P_STRING|P_VI_DEF|P_FLAGLIST,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001693 (char_u *)&p_mouse, PV_NONE, did_set_mouse,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001694 {
1695#if defined(MSWIN)
1696 (char_u *)"a",
1697#else
1698 (char_u *)"",
1699#endif
1700 (char_u *)0L} SCTX_INIT},
1701 {"mousefocus", "mousef", P_BOOL|P_VI_DEF,
1702#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001703 (char_u *)&p_mousef, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001704#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001705 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001706#endif
1707 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1708 {"mousehide", "mh", P_BOOL|P_VI_DEF,
1709#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001710 (char_u *)&p_mh, PV_NONE, did_set_mousehide,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001711#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001712 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001713#endif
1714 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1715 {"mousemodel", "mousem", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001716 (char_u *)&p_mousem, PV_NONE, did_set_mousemodel,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001717 {
1718#if defined(MSWIN)
1719 (char_u *)"popup",
1720#else
1721# if defined(MACOS_X)
1722 (char_u *)"popup_setpos",
1723# else
1724 (char_u *)"extend",
1725# endif
1726#endif
1727 (char_u *)0L} SCTX_INIT},
Ernie Raelc4cb5442022-04-03 15:47:28 +01001728 {"mousemoveevent", "mousemev", P_BOOL|P_VI_DEF,
1729#ifdef FEAT_GUI
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001730 (char_u *)&p_mousemev, PV_NONE, NULL,
Ernie Raelc4cb5442022-04-03 15:47:28 +01001731#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001732 (char_u *)NULL, PV_NONE, NULL,
Ernie Raelc4cb5442022-04-03 15:47:28 +01001733#endif
1734 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001735 {"mouseshape", "mouses", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1736#ifdef FEAT_MOUSESHAPE
1737 (char_u *)&p_mouseshape, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001738 did_set_mouseshape,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001739 {(char_u *)"i-r:beam,s:updown,sd:udsizing,vs:leftright,vd:lrsizing,m:no,ml:up-arrow,v:rightup-arrow", (char_u *)0L}
1740#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001741 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001742 {(char_u *)NULL, (char_u *)0L}
1743#endif
1744 SCTX_INIT},
1745 {"mousetime", "mouset", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001746 (char_u *)&p_mouset, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001747 {(char_u *)500L, (char_u *)0L} SCTX_INIT},
1748 {"mzschemedll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1749#if defined(DYNAMIC_MZSCHEME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001750 (char_u *)&p_mzschemedll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001751 {(char_u *)DYNAMIC_MZSCH_DLL, (char_u *)0L}
1752#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001753 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001754 {(char_u *)"", (char_u *)0L}
1755#endif
1756 SCTX_INIT},
1757 {"mzschemegcdll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1758#if defined(DYNAMIC_MZSCHEME)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001759 (char_u *)&p_mzschemegcdll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001760 {(char_u *)DYNAMIC_MZGC_DLL, (char_u *)0L}
1761#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001762 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001763 {(char_u *)"", (char_u *)0L}
1764#endif
1765 SCTX_INIT},
1766 {"mzquantum", "mzq", P_NUM,
1767#ifdef FEAT_MZSCHEME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001768 (char_u *)&p_mzq, PV_NONE, did_set_mzquantum,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001769#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001770 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001771#endif
1772 {(char_u *)100L, (char_u *)100L} SCTX_INIT},
1773 {"novice", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001774 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001775 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1776 {"nrformats", "nf", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00001777 (char_u *)&p_nf, PV_NF, did_set_nrformats,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001778 {(char_u *)"bin,octal,hex", (char_u *)0L}
1779 SCTX_INIT},
1780 {"number", "nu", P_BOOL|P_VI_DEF|P_RWIN,
1781 (char_u *)VAR_WIN, PV_NU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001782 did_set_number_relativenumber,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001783 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1784 {"numberwidth", "nuw", P_NUM|P_RWIN|P_VIM,
1785#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001786 (char_u *)VAR_WIN, PV_NUW, did_set_numberwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001787#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001788 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001789#endif
1790 {(char_u *)8L, (char_u *)4L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001791 {"omnifunc", "ofu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001792#ifdef FEAT_COMPL_FUNC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001793 (char_u *)&p_ofu, PV_OFU, did_set_omnifunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001794 {(char_u *)"", (char_u *)0L}
1795#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001796 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001797 {(char_u *)0L, (char_u *)0L}
1798#endif
1799 SCTX_INIT},
1800 {"open", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001801 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001802 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1803 {"opendevice", "odev", P_BOOL|P_VI_DEF,
1804#if defined(MSWIN)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001805 (char_u *)&p_odev, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001806#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001807 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001808#endif
1809 {(char_u *)FALSE, (char_u *)FALSE}
1810 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00001811 {"operatorfunc", "opfunc", P_STRING|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001812 (char_u *)&p_opfunc, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001813 did_set_operatorfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001814 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1815 {"optimize", "opt", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001816 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001817 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1818 {"osfiletype", "oft", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001819 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001820 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1821 {"packpath", "pp", P_STRING|P_VI_DEF|P_EXPAND|P_ONECOMMA|P_NODUP
1822 |P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001823 (char_u *)&p_pp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001824 {(char_u *)DFLT_RUNTIMEPATH, (char_u *)0L}
1825 SCTX_INIT},
1826 {"paragraphs", "para", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001827 (char_u *)&p_para, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001828 {(char_u *)"IPLPPPQPP TPHPLIPpLpItpplpipbp",
1829 (char_u *)0L} SCTX_INIT},
1830 {"paste", NULL, P_BOOL|P_VI_DEF|P_PRI_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001831 (char_u *)&p_paste, PV_NONE, did_set_paste,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001832 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1833 {"pastetoggle", "pt", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001834 (char_u *)&p_pt, PV_NONE, did_set_pastetoggle,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001835 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1836 {"patchexpr", "pex", P_STRING|P_VI_DEF|P_SECURE,
1837#if defined(FEAT_DIFF) && defined(FEAT_EVAL)
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001838 (char_u *)&p_pex, PV_NONE, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001839 {(char_u *)"", (char_u *)0L}
1840#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001841 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001842 {(char_u *)0L, (char_u *)0L}
1843#endif
1844 SCTX_INIT},
1845 {"patchmode", "pm", P_STRING|P_VI_DEF|P_NFNAME,
1846 (char_u *)&p_pm, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001847 did_set_backupext_or_patchmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001848 {(char_u *)"", (char_u *)0L} SCTX_INIT},
1849 {"path", "pa", P_STRING|P_EXPAND|P_VI_DEF|P_COMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001850 (char_u *)&p_path, PV_PATH, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001851 {
1852#if defined(AMIGA) || defined(MSWIN)
1853 (char_u *)".,,",
1854#else
1855 (char_u *)".,/usr/include,,",
1856#endif
1857 (char_u *)0L} SCTX_INIT},
1858 {"perldll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1859#if defined(DYNAMIC_PERL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001860 (char_u *)&p_perldll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001861 {(char_u *)DYNAMIC_PERL_DLL, (char_u *)0L}
1862#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001863 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001864 {(char_u *)0L, (char_u *)0L}
1865#endif
1866 SCTX_INIT},
1867 {"preserveindent", "pi", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001868 (char_u *)&p_pi, PV_PI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001869 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1870 {"previewheight", "pvh", P_NUM|P_VI_DEF,
1871#if defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001872 (char_u *)&p_pvh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001873#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001874 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001875#endif
1876 {(char_u *)12L, (char_u *)0L} SCTX_INIT},
1877 {"previewpopup", "pvp", P_STRING|P_VI_DEF|P_COMMA|P_NODUP,
Bram Moolenaar05ad5ff2019-11-30 22:48:27 +01001878#ifdef FEAT_PROP_POPUP
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001879 (char_u *)&p_pvp, PV_NONE, did_set_previewpopup,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001880 {(char_u *)"", (char_u *)0L}
1881#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001882 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001883 {(char_u *)NULL, (char_u *)0L}
1884#endif
1885 SCTX_INIT},
1886 {"previewwindow", "pvw", P_BOOL|P_VI_DEF|P_RSTAT|P_NOGLOB,
1887#if defined(FEAT_QUICKFIX)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001888 (char_u *)VAR_WIN, PV_PVW, did_set_previewwindow,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001889#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001890 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001891#endif
1892 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
1893 {"printdevice", "pdev", P_STRING|P_VI_DEF|P_SECURE,
1894#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001895 (char_u *)&p_pdev, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001896 {(char_u *)"", (char_u *)0L}
1897#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001898 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001899 {(char_u *)NULL, (char_u *)0L}
1900#endif
1901 SCTX_INIT},
1902 {"printencoding", "penc", P_STRING|P_VI_DEF,
1903#ifdef FEAT_POSTSCRIPT
1904 (char_u *)&p_penc, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001905 did_set_printencoding,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001906 {(char_u *)"", (char_u *)0L}
1907#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001908 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001909 {(char_u *)NULL, (char_u *)0L}
1910#endif
1911 SCTX_INIT},
1912 {"printexpr", "pexpr", P_STRING|P_VI_DEF|P_SECURE,
1913#ifdef FEAT_POSTSCRIPT
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00001914 (char_u *)&p_pexpr, PV_NONE, did_set_optexpr,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001915 {(char_u *)"", (char_u *)0L}
1916#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001917 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001918 {(char_u *)NULL, (char_u *)0L}
1919#endif
1920 SCTX_INIT},
1921 {"printfont", "pfn", P_STRING|P_VI_DEF,
1922#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001923 (char_u *)&p_pfn, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001924 {
1925# ifdef MSWIN
1926 (char_u *)"Courier_New:h10",
1927# else
1928 (char_u *)"courier",
1929# endif
1930 (char_u *)0L}
1931#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001932 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001933 {(char_u *)NULL, (char_u *)0L}
1934#endif
1935 SCTX_INIT},
1936 {"printheader", "pheader", P_STRING|P_VI_DEF|P_GETTEXT,
1937#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001938 (char_u *)&p_header, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001939 // untranslated to avoid problems when 'encoding'
1940 // is changed
1941 {(char_u *)"%<%f%h%m%=Page %N", (char_u *)0L}
1942#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001943 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001944 {(char_u *)NULL, (char_u *)0L}
1945#endif
1946 SCTX_INIT},
1947 {"printmbcharset", "pmbcs", P_STRING|P_VI_DEF,
1948#if defined(FEAT_POSTSCRIPT)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001949 (char_u *)&p_pmcs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001950 {(char_u *)"", (char_u *)0L}
1951#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001952 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001953 {(char_u *)NULL, (char_u *)0L}
1954#endif
1955 SCTX_INIT},
1956 {"printmbfont", "pmbfn", P_STRING|P_VI_DEF,
1957#if defined(FEAT_POSTSCRIPT)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001958 (char_u *)&p_pmfn, PV_NONE, parse_printmbfont,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001959 {(char_u *)"", (char_u *)0L}
1960#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001961 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001962 {(char_u *)NULL, (char_u *)0L}
1963#endif
1964 SCTX_INIT},
1965 {"printoptions", "popt", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
1966#ifdef FEAT_PRINTER
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001967 (char_u *)&p_popt, PV_NONE, parse_printoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001968 {(char_u *)"", (char_u *)0L}
1969#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001970 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001971 {(char_u *)NULL, (char_u *)0L}
1972#endif
1973 SCTX_INIT},
1974 {"prompt", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001975 (char_u *)&p_prompt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001976 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
1977 {"pumheight", "ph", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001978 (char_u *)&p_ph, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001979 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
1980 {"pumwidth", "pw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001981 (char_u *)&p_pw, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001982 {(char_u *)15L, (char_u *)15L} SCTX_INIT},
1983 {"pythonthreedll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1984#if defined(DYNAMIC_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001985 (char_u *)&p_py3dll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001986 {(char_u *)DYNAMIC_PYTHON3_DLL, (char_u *)0L}
1987#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001988 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001989 {(char_u *)NULL, (char_u *)0L}
1990#endif
1991 SCTX_INIT},
1992 {"pythonthreehome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
1993#if defined(FEAT_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001994 (char_u *)&p_py3home, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001995 {(char_u *)"", (char_u *)0L}
1996#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00001997 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02001998 {(char_u *)NULL, (char_u *)0L}
1999#endif
2000 SCTX_INIT},
2001 {"pythondll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2002#if defined(DYNAMIC_PYTHON)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002003 (char_u *)&p_pydll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002004 {(char_u *)DYNAMIC_PYTHON_DLL, (char_u *)0L}
2005#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002006 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002007 {(char_u *)NULL, (char_u *)0L}
2008#endif
2009 SCTX_INIT},
2010 {"pythonhome", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2011#if defined(FEAT_PYTHON)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002012 (char_u *)&p_pyhome, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002013 {(char_u *)"", (char_u *)0L}
2014#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002015 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002016 {(char_u *)NULL, (char_u *)0L}
2017#endif
2018 SCTX_INIT},
2019 {"pyxversion", "pyx", P_NUM|P_VI_DEF|P_SECURE,
2020#if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002021 (char_u *)&p_pyx, PV_NONE, did_set_pyxversion,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002022#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002023 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002024#endif
2025 {(char_u *)DEFAULT_PYTHON_VER, (char_u *)0L}
2026 SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002027 {"quickfixtextfunc", "qftf", P_STRING|P_ALLOCED|P_VI_DEF|P_VIM|P_SECURE|P_FUNC,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002028#if defined(FEAT_QUICKFIX) && defined(FEAT_EVAL)
2029 (char_u *)&p_qftf, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002030 did_set_quickfixtextfunc,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002031 {(char_u *)"", (char_u *)0L}
2032#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002033 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar858ba062020-05-31 23:11:59 +02002034 {(char_u *)NULL, (char_u *)NULL}
2035#endif
2036 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002037 {"quoteescape", "qe", P_STRING|P_ALLOCED|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002038 (char_u *)&p_qe, PV_QE, NULL,
Bram Moolenaar88774872022-08-16 20:24:29 +01002039 {(char_u *)"\\", (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002040 {"readonly", "ro", P_BOOL|P_VI_DEF|P_RSTAT|P_NOGLOB,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002041 (char_u *)&p_ro, PV_RO, did_set_readonly,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002042 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2043 {"redraw", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002044 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002045 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2046 {"redrawtime", "rdt", P_NUM|P_VI_DEF,
2047#ifdef FEAT_RELTIME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002048 (char_u *)&p_rdt, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002049#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002050 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002051#endif
2052 {(char_u *)2000L, (char_u *)0L} SCTX_INIT},
2053 {"regexpengine", "re", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002054 (char_u *)&p_re, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002055 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2056 {"relativenumber", "rnu", P_BOOL|P_VI_DEF|P_RWIN,
2057 (char_u *)VAR_WIN, PV_RNU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002058 did_set_number_relativenumber,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002059 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2060 {"remap", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002061 (char_u *)&p_remap, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002062 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2063 {"renderoptions", "rop", P_STRING|P_ONECOMMA|P_RCLR|P_VI_DEF,
2064#ifdef FEAT_RENDER_OPTIONS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002065 (char_u *)&p_rop, PV_NONE, did_set_renderoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002066 {(char_u *)"", (char_u *)0L}
2067#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002068 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002069 {(char_u *)NULL, (char_u *)0L}
2070#endif
2071 SCTX_INIT},
2072 {"report", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002073 (char_u *)&p_report, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002074 {(char_u *)2L, (char_u *)0L} SCTX_INIT},
2075 {"restorescreen", "rs", P_BOOL|P_VI_DEF,
2076#ifdef MSWIN
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002077 (char_u *)&p_rs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002078#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002079 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002080#endif
2081 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2082 {"revins", "ri", P_BOOL|P_VI_DEF|P_VIM,
2083#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002084 (char_u *)&p_ri, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002085#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002086 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002087#endif
2088 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2089 {"rightleft", "rl", P_BOOL|P_VI_DEF|P_RWIN,
2090#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002091 (char_u *)VAR_WIN, PV_RL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002092#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002093 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002094#endif
2095 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2096 {"rightleftcmd", "rlc", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN,
2097#ifdef FEAT_RIGHTLEFT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002098 (char_u *)VAR_WIN, PV_RLC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002099 {(char_u *)"search", (char_u *)NULL}
2100#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002101 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002102 {(char_u *)NULL, (char_u *)0L}
2103#endif
2104 SCTX_INIT},
2105 {"rubydll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2106#if defined(DYNAMIC_RUBY)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002107 (char_u *)&p_rubydll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002108 {(char_u *)DYNAMIC_RUBY_DLL, (char_u *)0L}
2109#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002110 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002111 {(char_u *)NULL, (char_u *)0L}
2112#endif
2113 SCTX_INIT},
2114 {"ruler", "ru", P_BOOL|P_VI_DEF|P_VIM|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002115 (char_u *)&p_ru, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002116 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2117 {"rulerformat", "ruf", P_STRING|P_VI_DEF|P_ALLOCED|P_RSTAT|P_MLE,
2118#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002119 (char_u *)&p_ruf, PV_NONE, did_set_rulerformat,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002120#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002121 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002122#endif
2123 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2124 {"runtimepath", "rtp", P_STRING|P_VI_DEF|P_EXPAND|P_ONECOMMA|P_NODUP
2125 |P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002126 (char_u *)&p_rtp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002127 {(char_u *)DFLT_RUNTIMEPATH, (char_u *)0L}
2128 SCTX_INIT},
2129 {"scroll", "scr", P_NUM|P_NO_MKRC|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002130 (char_u *)VAR_WIN, PV_SCROLL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002131 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2132 {"scrollbind", "scb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002133 (char_u *)VAR_WIN, PV_SCBIND, did_set_scrollbind,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002134 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarae20f342019-11-05 21:09:23 +01002135 {"scrollfocus", "scf", P_BOOL|P_VI_DEF,
2136#if defined(MSWIN) && defined(FEAT_GUI)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002137 (char_u *)&p_scf, PV_NONE, NULL,
Bram Moolenaarae20f342019-11-05 21:09:23 +01002138#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002139 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaarae20f342019-11-05 21:09:23 +01002140#endif
2141 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002142 {"scrolljump", "sj", P_NUM|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002143 (char_u *)&p_sj, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002144 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2145 {"scrolloff", "so", P_NUM|P_VI_DEF|P_VIM|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002146 (char_u *)&p_so, PV_SO, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002147 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2148 {"scrollopt", "sbo", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002149 (char_u *)&p_sbo, PV_NONE, did_set_scrollopt,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002150 {(char_u *)"ver,jump", (char_u *)0L}
2151 SCTX_INIT},
2152 {"sections", "sect", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002153 (char_u *)&p_sections, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002154 {(char_u *)"SHNHH HUnhsh", (char_u *)0L}
2155 SCTX_INIT},
2156 {"secure", NULL, P_BOOL|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002157 (char_u *)&p_secure, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002158 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2159 {"selection", "sel", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002160 (char_u *)&p_sel, PV_NONE, did_set_selection,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002161 {(char_u *)"inclusive", (char_u *)0L}
2162 SCTX_INIT},
2163 {"selectmode", "slm", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002164 (char_u *)&p_slm, PV_NONE, did_set_selectmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002165 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2166 {"sessionoptions", "ssop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
2167#ifdef FEAT_SESSION
2168 (char_u *)&p_ssop, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002169 did_set_sessionoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002170 {(char_u *)"blank,buffers,curdir,folds,help,options,tabpages,winsize,terminal",
2171 (char_u *)0L}
2172#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002173 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002174 {(char_u *)0L, (char_u *)0L}
2175#endif
2176 SCTX_INIT},
2177 {"shell", "sh", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002178 (char_u *)&p_sh, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002179 {
2180#ifdef VMS
2181 (char_u *)"-",
2182#else
2183# if defined(MSWIN)
2184 (char_u *)"", // set in set_init_1()
2185# else
2186 (char_u *)"sh",
2187# endif
2188#endif // VMS
2189 (char_u *)0L} SCTX_INIT},
2190 {"shellcmdflag","shcf", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002191 (char_u *)&p_shcf, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002192 {
2193#if defined(MSWIN)
2194 (char_u *)"/c",
2195#else
2196 (char_u *)"-c",
2197#endif
2198 (char_u *)0L} SCTX_INIT},
2199 {"shellpipe", "sp", P_STRING|P_VI_DEF|P_SECURE,
2200#ifdef FEAT_QUICKFIX
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002201 (char_u *)&p_sp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002202 {
2203#if defined(UNIX)
2204 (char_u *)"| tee",
2205#else
2206 (char_u *)">",
2207#endif
2208 (char_u *)0L}
2209#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002210 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002211 {(char_u *)0L, (char_u *)0L}
2212#endif
2213 SCTX_INIT},
2214 {"shellquote", "shq", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002215 (char_u *)&p_shq, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002216 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2217 {"shellredir", "srr", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002218 (char_u *)&p_srr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002219 {(char_u *)">", (char_u *)0L} SCTX_INIT},
2220 {"shellslash", "ssl", P_BOOL|P_VI_DEF,
2221#ifdef BACKSLASH_IN_FILENAME
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002222 (char_u *)&p_ssl, PV_NONE, did_set_shellslash,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002223#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002224 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002225#endif
2226 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2227 {"shelltemp", "stmp", P_BOOL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002228 (char_u *)&p_stmp, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002229 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2230 {"shelltype", "st", P_NUM|P_VI_DEF,
2231#ifdef AMIGA
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002232 (char_u *)&p_st, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002233#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002234 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002235#endif
2236 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2237 {"shellxquote", "sxq", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002238 (char_u *)&p_sxq, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002239 {
2240#if defined(UNIX) && defined(USE_SYSTEM)
2241 (char_u *)"\"",
2242#else
2243 (char_u *)"",
2244#endif
2245 (char_u *)0L} SCTX_INIT},
2246 {"shellxescape", "sxe", P_STRING|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002247 (char_u *)&p_sxe, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002248 {
2249#if defined(MSWIN)
2250 (char_u *)"\"&|<>()@^",
2251#else
2252 (char_u *)"",
2253#endif
2254 (char_u *)0L} SCTX_INIT},
2255 {"shiftround", "sr", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002256 (char_u *)&p_sr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002257 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2258 {"shiftwidth", "sw", P_NUM|P_VI_DEF,
2259 (char_u *)&p_sw, PV_SW,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002260 did_set_shiftwidth_tabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002261 {(char_u *)8L, (char_u *)0L} SCTX_INIT},
2262 {"shortmess", "shm", P_STRING|P_VIM|P_FLAGLIST,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00002263 (char_u *)&p_shm, PV_NONE, did_set_shortmess,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002264 {(char_u *)"S", (char_u *)"filnxtToOS"}
2265 SCTX_INIT},
2266 {"shortname", "sn", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002267 (char_u *)&p_sn, PV_SN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002268 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2269 {"showbreak", "sbr", P_STRING|P_VI_DEF|P_RALL,
2270#ifdef FEAT_LINEBREAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002271 (char_u *)&p_sbr, PV_SBR, did_set_showbreak,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002272#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002273 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002274#endif
2275 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2276 {"showcmd", "sc", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002277 (char_u *)&p_sc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002278 {(char_u *)FALSE,
2279#ifdef UNIX
2280 (char_u *)FALSE
2281#else
2282 (char_u *)TRUE
2283#endif
2284 } SCTX_INIT},
Luuk van Baalba936f62022-12-15 13:15:39 +00002285 {"showcmdloc", "sloc", P_STRING|P_RSTAT,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002286 (char_u *)&p_sloc, PV_NONE, did_set_showcmdloc,
Luuk van Baalba936f62022-12-15 13:15:39 +00002287 {(char_u *)"last", (char_u *)"last"} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002288 {"showfulltag", "sft", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002289 (char_u *)&p_sft, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002290 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2291 {"showmatch", "sm", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002292 (char_u *)&p_sm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002293 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2294 {"showmode", "smd", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002295 (char_u *)&p_smd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002296 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2297 {"showtabline", "stal", P_NUM|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002298 (char_u *)&p_stal, PV_NONE, did_set_showtabline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002299 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2300 {"sidescroll", "ss", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002301 (char_u *)&p_ss, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002302 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2303 {"sidescrolloff", "siso", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002304 (char_u *)&p_siso, PV_SISO, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002305 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2306 {"signcolumn", "scl", P_STRING|P_ALLOCED|P_VI_DEF|P_RCLR,
2307#ifdef FEAT_SIGNS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002308 (char_u *)VAR_WIN, PV_SCL, did_set_signcolumn,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002309 {(char_u *)"auto", (char_u *)0L}
2310#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002311 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002312 {(char_u *)NULL, (char_u *)0L}
2313#endif
2314 SCTX_INIT},
2315 {"slowopen", "slow", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002316 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002317 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2318 {"smartcase", "scs", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002319 (char_u *)&p_scs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002320 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2321 {"smartindent", "si", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002322 (char_u *)&p_si, PV_SI, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002323 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2324 {"smarttab", "sta", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002325 (char_u *)&p_sta, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002326 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaarf6196f42022-10-02 21:29:55 +01002327 {"smoothscroll", "sms", P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002328 (char_u *)VAR_WIN, PV_SMS, did_set_smoothscroll,
Bram Moolenaarf6196f42022-10-02 21:29:55 +01002329 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002330 {"softtabstop", "sts", P_NUM|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002331 (char_u *)&p_sts, PV_STS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002332 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2333 {"sourceany", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002334 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002335 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2336 {"spell", NULL, P_BOOL|P_VI_DEF|P_RWIN,
2337#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002338 (char_u *)VAR_WIN, PV_SPELL, did_set_spell,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002339#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002340 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002341#endif
2342 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2343 {"spellcapcheck", "spc", P_STRING|P_ALLOCED|P_VI_DEF|P_RBUF,
2344#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002345 (char_u *)&p_spc, PV_SPC, did_set_spellcapcheck,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002346 {(char_u *)"[.?!]\\_[\\])'\" ]\\+", (char_u *)0L}
2347#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002348 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002349 {(char_u *)0L, (char_u *)0L}
2350#endif
2351 SCTX_INIT},
2352 {"spellfile", "spf", P_STRING|P_EXPAND|P_ALLOCED|P_VI_DEF|P_SECURE
2353 |P_ONECOMMA,
2354#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002355 (char_u *)&p_spf, PV_SPF, did_set_spellfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002356 {(char_u *)"", (char_u *)0L}
2357#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002358 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002359 {(char_u *)0L, (char_u *)0L}
2360#endif
2361 SCTX_INIT},
2362 {"spelllang", "spl", P_STRING|P_ALLOCED|P_VI_DEF|P_ONECOMMA
2363 |P_RBUF|P_EXPAND,
2364#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002365 (char_u *)&p_spl, PV_SPL, did_set_spelllang,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002366 {(char_u *)"en", (char_u *)0L}
2367#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002368 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002369 {(char_u *)0L, (char_u *)0L}
2370#endif
2371 SCTX_INIT},
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002372 {"spelloptions", "spo", P_STRING|P_ALLOCED|P_VI_DEF
2373 |P_ONECOMMA|P_NODUP|P_RBUF,
2374#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002375 (char_u *)&p_spo, PV_SPO, did_set_spelloptions,
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002376 {(char_u *)"", (char_u *)0L}
2377#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002378 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar362b44b2020-06-10 21:47:00 +02002379 {(char_u *)0L, (char_u *)0L}
2380#endif
2381 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002382 {"spellsuggest", "sps", P_STRING|P_VI_DEF|P_EXPAND|P_SECURE|P_ONECOMMA,
2383#ifdef FEAT_SPELL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002384 (char_u *)&p_sps, PV_NONE, did_set_spellsuggest,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002385 {(char_u *)"best", (char_u *)0L}
2386#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002387 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002388 {(char_u *)0L, (char_u *)0L}
2389#endif
2390 SCTX_INIT},
2391 {"splitbelow", "sb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002392 (char_u *)&p_sb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002393 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
Luuk van Baal13ece2a2022-10-03 15:28:08 +01002394 {"splitkeep", "spk", P_STRING,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002395 (char_u *)&p_spk, PV_NONE, did_set_splitkeep,
Luuk van Baal13ece2a2022-10-03 15:28:08 +01002396 {(char_u *)"cursor", (char_u *)"cursor"} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002397 {"splitright", "spr", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002398 (char_u *)&p_spr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002399 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2400 {"startofline", "sol", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002401 (char_u *)&p_sol, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002402 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2403 {"statusline" ,"stl", P_STRING|P_VI_DEF|P_ALLOCED|P_RSTAT|P_MLE,
2404#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002405 (char_u *)&p_stl, PV_STL, did_set_statusline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002406#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002407 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002408#endif
2409 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2410 {"suffixes", "su", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002411 (char_u *)&p_su, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002412 {(char_u *)".bak,~,.o,.h,.info,.swp,.obj",
2413 (char_u *)0L} SCTX_INIT},
2414 {"suffixesadd", "sua", P_STRING|P_VI_DEF|P_ALLOCED|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002415 (char_u *)&p_sua, PV_SUA, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002416 {(char_u *)"", (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002417 SCTX_INIT},
2418 {"swapfile", "swf", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002419 (char_u *)&p_swf, PV_SWF, did_set_swapfile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002420 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2421 {"swapsync", "sws", P_STRING|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002422 (char_u *)&p_sws, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002423 {(char_u *)"fsync", (char_u *)0L} SCTX_INIT},
2424 {"switchbuf", "swb", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002425 (char_u *)&p_swb, PV_NONE, did_set_switchbuf,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002426 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2427 {"synmaxcol", "smc", P_NUM|P_VI_DEF|P_RBUF,
2428#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002429 (char_u *)&p_smc, PV_SMC, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002430 {(char_u *)3000L, (char_u *)0L}
2431#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002432 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002433 {(char_u *)0L, (char_u *)0L}
2434#endif
2435 SCTX_INIT},
2436 {"syntax", "syn", P_STRING|P_ALLOCED|P_VI_DEF|P_NOGLOB|P_NFNAME,
2437#ifdef FEAT_SYN_HL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002438 (char_u *)&p_syn, PV_SYN, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002439 {(char_u *)"", (char_u *)0L}
2440#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002441 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002442 {(char_u *)0L, (char_u *)0L}
2443#endif
2444 SCTX_INIT},
2445 {"tabline", "tal", P_STRING|P_VI_DEF|P_RALL|P_MLE,
2446#ifdef FEAT_STL_OPT
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002447 (char_u *)&p_tal, PV_NONE, did_set_tabline,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002448#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002449 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002450#endif
2451 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2452 {"tabpagemax", "tpm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002453 (char_u *)&p_tpm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002454 {(char_u *)10L, (char_u *)0L} SCTX_INIT},
2455 {"tabstop", "ts", P_NUM|P_VI_DEF|P_RBUF,
2456 (char_u *)&p_ts, PV_TS,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002457 did_set_shiftwidth_tabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002458 {(char_u *)8L, (char_u *)0L} SCTX_INIT},
2459 {"tagbsearch", "tbs", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002460 (char_u *)&p_tbs, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002461#ifdef VMS // binary searching doesn't appear to work on VMS
2462 {(char_u *)0L, (char_u *)0L}
2463#else
2464 {(char_u *)TRUE, (char_u *)0L}
2465#endif
2466 SCTX_INIT},
2467 {"tagcase", "tc", P_STRING|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002468 (char_u *)&p_tc, PV_TC, did_set_tagcase,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002469 {(char_u *)"followic", (char_u *)"followic"} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002470 {"tagfunc", "tfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002471#ifdef FEAT_EVAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002472 (char_u *)&p_tfu, PV_TFU, did_set_tagfunc,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002473 {(char_u *)"", (char_u *)0L}
2474#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002475 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002476 {(char_u *)0L, (char_u *)0L}
2477#endif
2478 SCTX_INIT},
2479 {"taglength", "tl", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002480 (char_u *)&p_tl, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002481 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2482 {"tagrelative", "tr", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002483 (char_u *)&p_tr, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002484 {(char_u *)FALSE, (char_u *)TRUE} SCTX_INIT},
2485 {"tags", "tag", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002486 (char_u *)&p_tags, PV_TAGS, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002487 {
2488#if defined(FEAT_EMACS_TAGS) && !defined(CASE_INSENSITIVE_FILENAME)
2489 (char_u *)"./tags,./TAGS,tags,TAGS",
2490#else
2491 (char_u *)"./tags,tags",
2492#endif
2493 (char_u *)0L} SCTX_INIT},
2494 {"tagstack", "tgst", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002495 (char_u *)&p_tgst, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002496 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2497 {"tcldll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2498#if defined(DYNAMIC_TCL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002499 (char_u *)&p_tcldll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002500 {(char_u *)DYNAMIC_TCL_DLL, (char_u *)0L}
2501#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002502 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002503 {(char_u *)0L, (char_u *)0L}
2504#endif
2505 SCTX_INIT},
2506 {"term", NULL, P_STRING|P_EXPAND|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002507 (char_u *)&T_NAME, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002508 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2509 {"termbidi", "tbidi", P_BOOL|P_VI_DEF,
2510#ifdef FEAT_ARABIC
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002511 (char_u *)&p_tbidi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002512#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002513 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002514#endif
2515 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2516 {"termencoding", "tenc", P_STRING|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002517 (char_u *)&p_tenc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002518 {(char_u *)"", (char_u *)0L}
2519 SCTX_INIT},
2520 {"termguicolors", "tgc", P_BOOL|P_VI_DEF|P_VIM|P_RCLR,
2521#ifdef FEAT_TERMGUICOLORS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002522 (char_u *)&p_tgc, PV_NONE, did_set_termguicolors,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002523 {(char_u *)FALSE, (char_u *)FALSE}
2524#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002525 (char_u*)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002526 {(char_u *)FALSE, (char_u *)FALSE}
2527#endif
2528 SCTX_INIT},
2529 {"termwinkey", "twk", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
2530#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002531 (char_u *)VAR_WIN, PV_TWK, did_set_termwinkey,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002532 {(char_u *)"", (char_u *)NULL}
2533#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002534 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002535 {(char_u *)NULL, (char_u *)0L}
2536#endif
2537 SCTX_INIT},
2538 {"termwinscroll", "twsl", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
2539#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002540 (char_u *)&p_twsl, PV_TWSL, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002541 {(char_u *)10000L, (char_u *)10000L}
2542#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002543 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002544 {(char_u *)NULL, (char_u *)0L}
2545#endif
2546 SCTX_INIT},
2547 {"termwinsize", "tws", P_STRING|P_ALLOCED|P_RWIN|P_VI_DEF,
2548#ifdef FEAT_TERMINAL
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002549 (char_u *)VAR_WIN, PV_TWS, did_set_termwinsize,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002550 {(char_u *)"", (char_u *)NULL}
2551#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002552 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002553 {(char_u *)NULL, (char_u *)0L}
2554#endif
2555 SCTX_INIT},
2556 {"termwintype", "twt", P_STRING|P_ALLOCED|P_VI_DEF,
2557#if defined(MSWIN) && defined(FEAT_TERMINAL)
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002558 (char_u *)&p_twt, PV_NONE, did_set_termwintype,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002559 {(char_u *)"", (char_u *)NULL}
2560#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002561 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002562 {(char_u *)NULL, (char_u *)0L}
2563#endif
2564 SCTX_INIT},
2565 {"terse", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002566 (char_u *)&p_terse, PV_NONE, did_set_terse,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002567 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2568 {"textauto", "ta", P_BOOL|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002569 (char_u *)&p_ta, PV_NONE, did_set_textauto,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002570 {(char_u *)DFLT_TEXTAUTO, (char_u *)TRUE}
2571 SCTX_INIT},
2572 {"textmode", "tx", P_BOOL|P_VI_DEF|P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002573 (char_u *)&p_tx, PV_TX, did_set_textmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002574 {
2575#ifdef USE_CRNL
2576 (char_u *)TRUE,
2577#else
2578 (char_u *)FALSE,
2579#endif
2580 (char_u *)0L} SCTX_INIT},
2581 {"textwidth", "tw", P_NUM|P_VI_DEF|P_VIM|P_RBUF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002582 (char_u *)&p_tw, PV_TW, did_set_textwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002583 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2584 {"thesaurus", "tsr", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NDNAME,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002585 (char_u *)&p_tsr, PV_TSR, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002586 {(char_u *)"", (char_u *)0L} SCTX_INIT},
Yegappan Lakshmanan64095532021-12-06 11:03:55 +00002587 {"thesaurusfunc", "tsrfu", P_STRING|P_ALLOCED|P_VI_DEF|P_SECURE|P_FUNC,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002588#ifdef FEAT_COMPL_FUNC
Bram Moolenaarf4d8b762021-10-17 14:13:09 +01002589 (char_u *)&p_tsrfu, PV_TSRFU,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002590 did_set_thesaurusfunc,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002591 {(char_u *)"", (char_u *)0L}
2592#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002593 (char_u *)NULL, PV_NONE, NULL,
Yegappan Lakshmanan160e9942021-10-16 15:41:29 +01002594 {(char_u *)0L, (char_u *)0L}
2595#endif
2596 SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002597 {"tildeop", "top", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002598 (char_u *)&p_to, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002599 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2600 {"timeout", "to", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002601 (char_u *)&p_timeout, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002602 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2603 {"timeoutlen", "tm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002604 (char_u *)&p_tm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002605 {(char_u *)1000L, (char_u *)0L} SCTX_INIT},
2606 {"title", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002607 (char_u *)&p_title, PV_NONE, did_set_title_icon,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002608 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2609 {"titlelen", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002610 (char_u *)&p_titlelen, PV_NONE, did_set_titlelen,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002611 {(char_u *)85L, (char_u *)0L} SCTX_INIT},
2612 {"titleold", NULL, P_STRING|P_VI_DEF|P_GETTEXT|P_SECURE|P_NO_MKRC,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002613 (char_u *)&p_titleold, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002614 {(char_u *)N_("Thanks for flying Vim"),
2615 (char_u *)0L}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002616 SCTX_INIT},
2617 {"titlestring", NULL, P_STRING|P_VI_DEF|P_MLE,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002618 (char_u *)&p_titlestring, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002619 did_set_titlestring,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002620 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2621 {"toolbar", "tb", P_STRING|P_ONECOMMA|P_VI_DEF|P_NODUP,
2622#if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002623 (char_u *)&p_toolbar, PV_NONE, did_set_toolbar,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002624 {(char_u *)"icons,tooltips", (char_u *)0L}
2625#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002626 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002627 {(char_u *)0L, (char_u *)0L}
2628#endif
2629 SCTX_INIT},
2630 {"toolbariconsize", "tbis", P_STRING|P_VI_DEF,
2631#if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK)
2632 (char_u *)&p_tbis, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002633 did_set_toolbariconsize,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002634 {(char_u *)"small", (char_u *)0L}
2635#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002636 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002637 {(char_u *)0L, (char_u *)0L}
2638#endif
2639 SCTX_INIT},
2640 {"ttimeout", NULL, P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002641 (char_u *)&p_ttimeout, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002642 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2643 {"ttimeoutlen", "ttm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002644 (char_u *)&p_ttm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002645 {(char_u *)-1L, (char_u *)0L} SCTX_INIT},
2646 {"ttybuiltin", "tbi", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002647 (char_u *)&p_tbi, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002648 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2649 {"ttyfast", "tf", P_BOOL|P_NO_MKRC|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002650 (char_u *)&p_tf, PV_NONE, NULL,
Bram Moolenaarc1cf4c92022-11-25 15:09:35 +00002651 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002652 {"ttymouse", "ttym", P_STRING|P_NODEFAULT|P_NO_MKRC|P_VI_DEF,
Bram Moolenaara1cb1d12019-10-17 23:00:07 +02002653#if defined(UNIX) || defined(VMS)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002654 (char_u *)&p_ttym, PV_NONE, did_set_ttymouse,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002655#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002656 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002657#endif
2658 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2659 {"ttyscroll", "tsl", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002660 (char_u *)&p_ttyscroll, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002661 {(char_u *)999L, (char_u *)0L} SCTX_INIT},
2662 {"ttytype", "tty", P_STRING|P_EXPAND|P_NODEFAULT|P_NO_MKRC|P_VI_DEF|P_RALL,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002663 (char_u *)&T_NAME, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002664 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2665 {"undodir", "udir", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP|P_SECURE
2666 |P_VI_DEF,
2667#ifdef FEAT_PERSISTENT_UNDO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002668 (char_u *)&p_udir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002669 {(char_u *)".", (char_u *)0L}
2670#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002671 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002672 {(char_u *)0L, (char_u *)0L}
2673#endif
2674 SCTX_INIT},
2675 {"undofile", "udf", P_BOOL|P_VI_DEF|P_VIM,
2676#ifdef FEAT_PERSISTENT_UNDO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002677 (char_u *)&p_udf, PV_UDF, did_set_undofile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002678#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002679 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002680#endif
2681 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2682 {"undolevels", "ul", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002683 (char_u *)&p_ul, PV_UL, did_set_undolevels,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002684 {
2685#if defined(UNIX) || defined(MSWIN) || defined(VMS)
2686 (char_u *)1000L,
2687#else
2688 (char_u *)100L,
2689#endif
2690 (char_u *)0L} SCTX_INIT},
2691 {"undoreload", "ur", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002692 (char_u *)&p_ur, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002693 { (char_u *)10000L, (char_u *)0L} SCTX_INIT},
2694 {"updatecount", "uc", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002695 (char_u *)&p_uc, PV_NONE, did_set_updatecount,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002696 {(char_u *)200L, (char_u *)0L} SCTX_INIT},
2697 {"updatetime", "ut", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002698 (char_u *)&p_ut, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002699 {(char_u *)4000L, (char_u *)0L} SCTX_INIT},
2700 {"varsofttabstop", "vsts", P_STRING|P_VI_DEF|P_VIM|P_COMMA,
2701#ifdef FEAT_VARTABS
2702 (char_u *)&p_vsts, PV_VSTS,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002703 did_set_varsofttabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002704 {(char_u *)"", (char_u *)0L}
2705#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002706 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002707 {(char_u *)"", (char_u *)NULL}
2708#endif
2709 SCTX_INIT},
2710 {"vartabstop", "vts", P_STRING|P_VI_DEF|P_VIM|P_RBUF|P_COMMA,
2711#ifdef FEAT_VARTABS
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002712 (char_u *)&p_vts, PV_VTS, did_set_vartabstop,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002713 {(char_u *)"", (char_u *)0L}
2714#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002715 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002716 {(char_u *)"", (char_u *)NULL}
2717#endif
2718 SCTX_INIT},
2719 {"verbose", "vbs", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002720 (char_u *)&p_verbose, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002721 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2722 {"verbosefile", "vfile", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002723 (char_u *)&p_vfile, PV_NONE, did_set_verbosefile,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002724 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2725 {"viewdir", "vdir", P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2726#ifdef FEAT_SESSION
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002727 (char_u *)&p_vdir, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002728 {(char_u *)DFLT_VDIR, (char_u *)0L}
2729#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002730 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002731 {(char_u *)0L, (char_u *)0L}
2732#endif
2733 SCTX_INIT},
2734 {"viewoptions", "vop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
2735#ifdef FEAT_SESSION
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002736 (char_u *)&p_vop, PV_NONE, did_set_viewoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002737 {(char_u *)"folds,options,cursor,curdir",
2738 (char_u *)0L}
2739#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002740 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002741 {(char_u *)0L, (char_u *)0L}
2742#endif
2743 SCTX_INIT},
2744 {"viminfo", "vi", P_STRING|P_ONECOMMA|P_NODUP|P_SECURE,
2745#ifdef FEAT_VIMINFO
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00002746 (char_u *)&p_viminfo, PV_NONE, did_set_viminfo,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002747#if defined(MSWIN)
2748 {(char_u *)"", (char_u *)"'100,<50,s10,h,rA:,rB:"}
ichizok02560422022-04-05 14:18:44 +01002749#elif defined(AMIGA)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002750 {(char_u *)"",
2751 (char_u *)"'100,<50,s10,h,rdf0:,rdf1:,rdf2:"}
ichizok02560422022-04-05 14:18:44 +01002752#else
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002753 {(char_u *)"", (char_u *)"'100,<50,s10,h"}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002754#endif
2755#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002756 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002757 {(char_u *)0L, (char_u *)0L}
2758#endif
2759 SCTX_INIT},
2760 {"viminfofile", "vif", P_STRING|P_EXPAND|P_ONECOMMA|P_NODUP
2761 |P_SECURE|P_VI_DEF,
2762#ifdef FEAT_VIMINFO
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002763 (char_u *)&p_viminfofile, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002764 {(char_u *)"", (char_u *)0L}
2765#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002766 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002767 {(char_u *)0L, (char_u *)0L}
2768#endif
2769 SCTX_INIT},
2770 {"virtualedit", "ve", P_STRING|P_ONECOMMA|P_NODUP|P_VI_DEF
2771 |P_VIM|P_CURSWANT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002772 (char_u *)&p_ve, PV_VE, did_set_virtualedit,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002773 {(char_u *)"", (char_u *)""}
2774 SCTX_INIT},
2775 {"visualbell", "vb", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002776 (char_u *)&p_vb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002777 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2778 {"w300", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002779 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002780 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2781 {"w1200", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002782 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002783 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2784 {"w9600", NULL, P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002785 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002786 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2787 {"warn", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002788 (char_u *)&p_warn, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002789 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2790 {"weirdinvert", "wiv", P_BOOL|P_VI_DEF|P_RCLR,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002791 (char_u *)&p_wiv, PV_NONE, did_set_weirdinvert,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002792 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2793 {"whichwrap", "ww", P_STRING|P_VIM|P_ONECOMMA|P_FLAGLIST,
Yegappan Lakshmanan6d611de2023-02-25 11:59:33 +00002794 (char_u *)&p_ww, PV_NONE, did_set_whichwrap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002795 {(char_u *)"", (char_u *)"b,s"} SCTX_INIT},
2796 {"wildchar", "wc", P_NUM|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002797 (char_u *)&p_wc, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002798 {(char_u *)(long)Ctrl_E, (char_u *)(long)TAB}
2799 SCTX_INIT},
2800 {"wildcharm", "wcm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002801 (char_u *)&p_wcm, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002802 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2803 {"wildignore", "wig", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002804 (char_u *)&p_wig, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002805 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2806 {"wildignorecase", "wic", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002807 (char_u *)&p_wic, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002808 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2809 {"wildmenu", "wmnu", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002810 (char_u *)&p_wmnu, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002811 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2812 {"wildmode", "wim", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002813 (char_u *)&p_wim, PV_NONE, did_set_wildmode,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002814 {(char_u *)"full", (char_u *)0L} SCTX_INIT},
Bram Moolenaar2e61e2d2020-05-22 14:10:36 +02002815 {"wildoptions", "wop", P_STRING|P_VI_DEF|P_ONECOMMA|P_NODUP,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002816 (char_u *)&p_wop, PV_NONE, did_set_wildoptions,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002817 {(char_u *)"", (char_u *)0L}
2818 SCTX_INIT},
2819 {"winaltkeys", "wak", P_STRING|P_VI_DEF,
2820#ifdef FEAT_WAK
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002821 (char_u *)&p_wak, PV_NONE, did_set_winaltkeys,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002822 {(char_u *)"menu", (char_u *)0L}
2823#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002824 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002825 {(char_u *)NULL, (char_u *)0L}
2826#endif
2827 SCTX_INIT},
2828 {"wincolor", "wcr", P_STRING|P_ALLOCED|P_VI_DEF|P_RWIN,
Yegappan Lakshmanan8ad862a2023-02-23 15:05:22 +00002829 (char_u *)VAR_WIN, PV_WCR, did_set_wincolor,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002830 {(char_u *)"", (char_u *)NULL}
2831 SCTX_INIT},
2832 {"window", "wi", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002833 (char_u *)&p_window, PV_NONE, did_set_window,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002834 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2835 {"winheight", "wh", P_NUM|P_VI_DEF,
2836 (char_u *)&p_wh, PV_NONE,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002837 did_set_winheight_helpheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002838 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2839 {"winfixheight", "wfh", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002840 (char_u *)VAR_WIN, PV_WFH, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002841 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2842 {"winfixwidth", "wfw", P_BOOL|P_VI_DEF|P_RSTAT,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002843 (char_u *)VAR_WIN, PV_WFW, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002844 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2845 {"winminheight", "wmh", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002846 (char_u *)&p_wmh, PV_NONE, did_set_winminheight,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002847 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2848 {"winminwidth", "wmw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002849 (char_u *)&p_wmw, PV_NONE, did_set_winminwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002850 {(char_u *)1L, (char_u *)0L} SCTX_INIT},
2851 {"winptydll", NULL, P_STRING|P_EXPAND|P_VI_DEF|P_SECURE,
2852#if defined(MSWIN) && defined(FEAT_TERMINAL)
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002853 (char_u *)&p_winptydll, PV_NONE, NULL, {
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002854# ifdef _WIN64
2855 (char_u *)"winpty64.dll",
2856# else
2857 (char_u *)"winpty32.dll",
2858# endif
2859 (char_u *)0L}
2860#else
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002861 (char_u *)NULL, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002862 {(char_u *)0L, (char_u *)0L}
2863#endif
2864 SCTX_INIT},
2865 {"winwidth", "wiw", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002866 (char_u *)&p_wiw, PV_NONE, did_set_winwidth,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002867 {(char_u *)20L, (char_u *)0L} SCTX_INIT},
2868 {"wrap", NULL, P_BOOL|P_VI_DEF|P_RWIN,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002869 (char_u *)VAR_WIN, PV_WRAP, did_set_wrap,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002870 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2871 {"wrapmargin", "wm", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002872 (char_u *)&p_wm, PV_WM, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002873 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
2874 {"wrapscan", "ws", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002875 (char_u *)&p_ws, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002876 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2877 {"write", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002878 (char_u *)&p_write, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002879 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
2880 {"writeany", "wa", P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002881 (char_u *)&p_wa, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002882 {(char_u *)FALSE, (char_u *)0L} SCTX_INIT},
2883 {"writebackup", "wb", P_BOOL|P_VI_DEF|P_VIM,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002884 (char_u *)&p_wb, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002885 {
2886#ifdef FEAT_WRITEBACKUP
2887 (char_u *)TRUE,
2888#else
2889 (char_u *)FALSE,
2890#endif
2891 (char_u *)0L} SCTX_INIT},
2892 {"writedelay", "wd", P_NUM|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002893 (char_u *)&p_wd, PV_NONE, NULL,
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002894 {(char_u *)0L, (char_u *)0L} SCTX_INIT},
Bram Moolenaar6f79e612021-12-21 09:12:23 +00002895 {"xtermcodes", NULL, P_BOOL|P_VI_DEF,
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002896 (char_u *)&p_xtermcodes, PV_NONE, NULL,
Bram Moolenaar6f79e612021-12-21 09:12:23 +00002897 {(char_u *)TRUE, (char_u *)0L} SCTX_INIT},
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002898
2899// terminal output codes
Bram Moolenaarebfec1c2023-01-22 21:14:53 +00002900#define p_term(sss, vvv) \
2901 {sss, NULL, P_STRING|P_VI_DEF|P_RALL|P_SECURE, \
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002902 (char_u *)&vvv, PV_NONE, NULL, \
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002903 {(char_u *)"", (char_u *)0L} SCTX_INIT},
2904
2905 p_term("t_AB", T_CAB)
2906 p_term("t_AF", T_CAF)
Bram Moolenaare023e882020-05-31 16:42:30 +02002907 p_term("t_AU", T_CAU)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002908 p_term("t_AL", T_CAL)
2909 p_term("t_al", T_AL)
2910 p_term("t_bc", T_BC)
2911 p_term("t_BE", T_BE)
2912 p_term("t_BD", T_BD)
2913 p_term("t_cd", T_CD)
2914 p_term("t_ce", T_CE)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002915 p_term("t_Ce", T_UCE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002916 p_term("t_cl", T_CL)
2917 p_term("t_cm", T_CM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002918 p_term("t_Co", T_CCO)
2919 p_term("t_CS", T_CCS)
2920 p_term("t_Cs", T_UCS)
2921 p_term("t_cs", T_CS)
2922 p_term("t_CV", T_CSV)
2923 p_term("t_da", T_DA)
2924 p_term("t_db", T_DB)
2925 p_term("t_DL", T_CDL)
2926 p_term("t_dl", T_DL)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002927 p_term("t_ds", T_DS)
2928 p_term("t_Ds", T_CDS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002929 p_term("t_EC", T_CEC)
2930 p_term("t_EI", T_CEI)
2931 p_term("t_fs", T_FS)
Bram Moolenaar681fc3f2021-01-14 17:35:21 +01002932 p_term("t_fd", T_FD)
2933 p_term("t_fe", T_FE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002934 p_term("t_GP", T_CGP)
2935 p_term("t_IE", T_CIE)
2936 p_term("t_IS", T_CIS)
2937 p_term("t_ke", T_KE)
2938 p_term("t_ks", T_KS)
2939 p_term("t_le", T_LE)
2940 p_term("t_mb", T_MB)
2941 p_term("t_md", T_MD)
2942 p_term("t_me", T_ME)
2943 p_term("t_mr", T_MR)
2944 p_term("t_ms", T_MS)
2945 p_term("t_nd", T_ND)
2946 p_term("t_op", T_OP)
2947 p_term("t_RF", T_RFG)
2948 p_term("t_RB", T_RBG)
2949 p_term("t_RC", T_CRC)
2950 p_term("t_RI", T_CRI)
2951 p_term("t_Ri", T_SRI)
Bram Moolenaar184a6222022-12-01 19:25:04 +00002952 p_term("t_RK", T_CRK)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002953 p_term("t_RS", T_CRS)
2954 p_term("t_RT", T_CRT)
2955 p_term("t_RV", T_CRV)
2956 p_term("t_Sb", T_CSB)
2957 p_term("t_SC", T_CSC)
2958 p_term("t_se", T_SE)
2959 p_term("t_Sf", T_CSF)
2960 p_term("t_SH", T_CSH)
2961 p_term("t_SI", T_CSI)
2962 p_term("t_Si", T_SSI)
2963 p_term("t_so", T_SO)
2964 p_term("t_SR", T_CSR)
2965 p_term("t_sr", T_SR)
2966 p_term("t_ST", T_CST)
2967 p_term("t_Te", T_STE)
2968 p_term("t_te", T_TE)
Bram Moolenaar171a9212019-10-12 21:08:59 +02002969 p_term("t_TE", T_CTE)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002970 p_term("t_ti", T_TI)
Bram Moolenaar171a9212019-10-12 21:08:59 +02002971 p_term("t_TI", T_CTI)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002972 p_term("t_Ts", T_STS)
2973 p_term("t_ts", T_TS)
2974 p_term("t_u7", T_U7)
2975 p_term("t_ue", T_UE)
2976 p_term("t_us", T_US)
Bram Moolenaar84f54632022-06-29 18:39:11 +01002977 p_term("t_Us", T_USS)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002978 p_term("t_ut", T_UT)
2979 p_term("t_vb", T_VB)
2980 p_term("t_ve", T_VE)
2981 p_term("t_vi", T_VI)
2982 p_term("t_VS", T_CVS)
2983 p_term("t_vs", T_VS)
2984 p_term("t_WP", T_CWP)
2985 p_term("t_WS", T_CWS)
Bram Moolenaar06cd14d2023-01-10 12:37:38 +00002986 p_term("t_XM", T_CXM)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002987 p_term("t_xn", T_XN)
2988 p_term("t_xs", T_XS)
2989 p_term("t_ZH", T_CZH)
2990 p_term("t_ZR", T_CZR)
2991 p_term("t_8f", T_8F)
2992 p_term("t_8b", T_8B)
Bram Moolenaare023e882020-05-31 16:42:30 +02002993 p_term("t_8u", T_8U)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002994
2995// terminal key codes are not in here
2996
2997 // end marker
Yegappan Lakshmananaf936912023-02-20 12:16:39 +00002998 {NULL, NULL, 0, NULL, PV_NONE, NULL, {NULL, NULL} SCTX_INIT}
Bram Moolenaar0eddca42019-09-12 22:26:43 +02002999};
3000
K.Takataeeec2542021-06-02 13:28:16 +02003001#define OPTION_COUNT ARRAY_LENGTH(options)
Bram Moolenaar0eddca42019-09-12 22:26:43 +02003002
Bram Moolenaardac13472019-09-16 21:06:21 +02003003// The following is needed to make the gen_opt_test.vim script work.
3004// {"