option.h
Go to the documentation of this file.
1 #ifndef NVIM_OPTION_H
2 #define NVIM_OPTION_H
3 
4 #include "nvim/ex_cmds_defs.h" // for exarg_T
5 
6 // flags for buf_copy_options()
7 #define BCO_ENTER 1 // going to enter the buffer
8 #define BCO_ALWAYS 2 // always copy the options
9 #define BCO_NOHELP 4 // don't touch the help related options
10 
15 typedef enum {
16  OPT_FREE = 0x01,
17  OPT_GLOBAL = 0x02,
18  OPT_LOCAL = 0x04,
19  OPT_MODELINE = 0x08,
20  OPT_WINONLY = 0x10,
21  OPT_NOWIN = 0x20,
22  OPT_ONECOLUMN = 0x40,
23  OPT_NO_REDRAW = 0x80,
24  OPT_SKIPRTP = 0x100,
25  OPT_CLEAR = 0x200,
26 } OptionFlags;
27 
28 #ifdef INCLUDE_GENERATED_DECLARATIONS
29 # include "option.h.generated.h"
30 #endif
31 #endif // NVIM_OPTION_H
OptionFlags
OptionFlags
Definition: option.h:15
OPT_MODELINE
@ OPT_MODELINE
Option in modeline.
Definition: option.h:19
OPT_WINONLY
@ OPT_WINONLY
Only set window-local options.
Definition: option.h:20
OPT_NO_REDRAW
@ OPT_NO_REDRAW
ignore redraw flags on option
Definition: option.h:23
OPT_ONECOLUMN
@ OPT_ONECOLUMN
list options one per line
Definition: option.h:22
OPT_LOCAL
@ OPT_LOCAL
Use local value.
Definition: option.h:18
OPT_CLEAR
@ OPT_CLEAR
Clear local value of an option.
Definition: option.h:25
OPT_FREE
@ OPT_FREE
Free old value if it was allocated.
Definition: option.h:16
OPT_SKIPRTP
@ OPT_SKIPRTP
"skiprtp" in 'sessionoptions'
Definition: option.h:24
OPT_NOWIN
@ OPT_NOWIN
Don’t set window-local options.
Definition: option.h:21
ex_cmds_defs.h
OPT_GLOBAL
@ OPT_GLOBAL
Use global value.
Definition: option.h:17