152
152
#define COCU_ALL "nvic" /* flags for 'concealcursor' */
154
/* characters for p_shm option: */
155
#define SHM_RO 'r' /* readonly */
156
#define SHM_MOD 'm' /* modified */
157
#define SHM_FILE 'f' /* (file 1 of 2) */
158
#define SHM_LAST 'i' /* last line incomplete */
159
#define SHM_TEXT 'x' /* tx instead of textmode */
160
#define SHM_LINES 'l' /* "L" instead of "lines" */
161
#define SHM_NEW 'n' /* "[New]" instead of "[New file]" */
162
#define SHM_WRI 'w' /* "[w]" instead of "written" */
163
#define SHM_A "rmfixlnw" /* represented by 'a' flag */
164
#define SHM_WRITE 'W' /* don't use "written" at all */
165
#define SHM_TRUNC 't' /* trunctate file messages */
166
#define SHM_TRUNCALL 'T' /* trunctate all messages */
167
#define SHM_OVER 'o' /* overwrite file messages */
168
#define SHM_OVERALL 'O' /* overwrite more messages */
169
#define SHM_SEARCH 's' /* no search hit bottom messages */
170
#define SHM_ATTENTION 'A' /* no ATTENTION messages */
171
#define SHM_INTRO 'I' /* intro messages */
172
#define SHM_COMPLETIONMENU 'c' // completion menu messages
173
#define SHM_ALL "rmfixlnwaWtToOsAIc" /* all possible flags for 'shm' */
154
/// characters for p_shm option:
156
SHM_RO = 'r', ///< Readonly.
157
SHM_MOD = 'm', ///< Modified.
158
SHM_FILE = 'f', ///< (file 1 of 2)
159
SHM_LAST = 'i', ///< Last line incomplete.
160
SHM_TEXT = 'x', ///< Tx instead of textmode.
161
SHM_LINES = 'l', ///< "L" instead of "lines".
162
SHM_NEW = 'n', ///< "[New]" instead of "[New file]".
163
SHM_WRI = 'w', ///< "[w]" instead of "written".
164
SHM_ABBREVIATIONS = 'a', ///< Use abbreviations from #SHM_ALL_ABBREVIATIONS.
165
SHM_WRITE = 'W', ///< Don't use "written" at all.
166
SHM_TRUNC = 't', ///< Trunctate file messages.
167
SHM_TRUNCALL = 'T', ///< Trunctate all messages.
168
SHM_OVER = 'o', ///< Overwrite file messages.
169
SHM_OVERALL = 'O', ///< Overwrite more messages.
170
SHM_SEARCH = 's', ///< No search hit bottom messages.
171
SHM_ATTENTION = 'A', ///< No ATTENTION messages.
172
SHM_INTRO = 'I', ///< Intro messages.
173
SHM_COMPLETIONMENU = 'c', ///< Completion menu messages.
174
SHM_RECORDING = 'q', ///< Short recording message.
175
SHM_FILEINFO = 'F', ///< No file info messages.
177
/// Represented by 'a' flag.
178
#define SHM_ALL_ABBREVIATIONS ((char_u[]) { \
179
SHM_RO, SHM_MOD, SHM_FILE, SHM_LAST, SHM_TEXT, SHM_LINES, SHM_NEW, SHM_WRI, \
182
/// All possible flags for 'shm'.
183
#define SHM_ALL ((char_u[]) { \
184
SHM_RO, SHM_MOD, SHM_FILE, SHM_LAST, SHM_TEXT, SHM_LINES, SHM_NEW, SHM_WRI, \
185
SHM_ABBREVIATIONS, SHM_WRITE, SHM_TRUNC, SHM_TRUNCALL, SHM_OVER, \
186
SHM_OVERALL, SHM_SEARCH, SHM_ATTENTION, SHM_INTRO, SHM_COMPLETIONMENU, \
187
SHM_RECORDING, SHM_FILEINFO, \
175
191
/* characters for p_go: */
176
192
#define GO_ASEL 'a' /* autoselect */
571
587
EXTERN char_u *p_swb; // 'switchbuf'
572
588
EXTERN unsigned swb_flags;
573
589
#ifdef IN_OPTION_C
574
static char *(p_swb_values[]) = {"useopen", "usetab", "split", "newtab", NULL};
590
static char *(p_swb_values[]) =
591
{ "useopen", "usetab", "split", "newtab", "vsplit", NULL };
576
593
#define SWB_USEOPEN 0x001
577
594
#define SWB_USETAB 0x002
578
595
#define SWB_SPLIT 0x004
579
596
#define SWB_NEWTAB 0x008
580
EXTERN int p_tbs; /* 'tagbsearch' */
581
EXTERN long p_tl; /* 'taglength' */
582
EXTERN int p_tr; /* 'tagrelative' */
583
EXTERN char_u *p_tags; /* 'tags' */
584
EXTERN int p_tgst; /* 'tagstack' */
585
EXTERN int p_tbidi; /* 'termbidi' */
586
EXTERN int p_terse; /* 'terse' */
587
EXTERN int p_to; /* 'tildeop' */
588
EXTERN int p_timeout; /* 'timeout' */
589
EXTERN long p_tm; /* 'timeoutlen' */
590
EXTERN int p_title; /* 'title' */
591
EXTERN long p_titlelen; /* 'titlelen' */
592
EXTERN char_u *p_titleold; /* 'titleold' */
593
EXTERN char_u *p_titlestring; /* 'titlestring' */
594
EXTERN char_u *p_tsr; /* 'thesaurus' */
595
EXTERN int p_ttimeout; /* 'ttimeout' */
596
EXTERN long p_ttm; /* 'ttimeoutlen' */
597
EXTERN char_u *p_udir; /* 'undodir' */
598
EXTERN long p_ul; /* 'undolevels' */
599
EXTERN long p_ur; /* 'undoreload' */
600
EXTERN long p_uc; /* 'updatecount' */
601
EXTERN long p_ut; /* 'updatetime' */
602
EXTERN char_u *p_fcs; /* 'fillchar' */
603
EXTERN char_u *p_shada; /* 'shada' */
604
EXTERN char_u *p_vdir; /* 'viewdir' */
605
EXTERN char_u *p_vop; /* 'viewoptions' */
606
EXTERN unsigned vop_flags; /* uses SSOP_ flags */
607
EXTERN int p_vb; /* 'visualbell' */
608
EXTERN char_u *p_ve; /* 'virtualedit' */
597
#define SWB_VSPLIT 0x010
598
EXTERN int p_tbs; ///< 'tagbsearch'
599
EXTERN long p_tl; ///< 'taglength'
600
EXTERN int p_tr; ///< 'tagrelative'
601
EXTERN char_u *p_tags; ///< 'tags'
602
EXTERN int p_tgst; ///< 'tagstack'
603
EXTERN int p_tbidi; ///< 'termbidi'
604
EXTERN int p_terse; ///< 'terse'
605
EXTERN int p_to; ///< 'tildeop'
606
EXTERN int p_timeout; ///< 'timeout'
607
EXTERN long p_tm; ///< 'timeoutlen'
608
EXTERN int p_title; ///< 'title'
609
EXTERN long p_titlelen; ///< 'titlelen'
610
EXTERN char_u *p_titleold; ///< 'titleold'
611
EXTERN char_u *p_titlestring; ///< 'titlestring'
612
EXTERN char_u *p_tsr; ///< 'thesaurus'
613
EXTERN int p_ttimeout; ///< 'ttimeout'
614
EXTERN long p_ttm; ///< 'ttimeoutlen'
615
EXTERN char_u *p_udir; ///< 'undodir'
616
EXTERN long p_ul; ///< 'undolevels'
617
EXTERN long p_ur; ///< 'undoreload'
618
EXTERN long p_uc; ///< 'updatecount'
619
EXTERN long p_ut; ///< 'updatetime'
620
EXTERN char_u *p_fcs; ///< 'fillchar'
621
EXTERN char_u *p_shada; ///< 'shada'
622
EXTERN char_u *p_vdir; ///< 'viewdir'
623
EXTERN char_u *p_vop; ///< 'viewoptions'
624
EXTERN unsigned vop_flags; ///< uses SSOP_ flags
625
EXTERN int p_vb; ///< 'visualbell'
626
EXTERN char_u *p_ve; ///< 'virtualedit'
609
627
EXTERN unsigned ve_flags;
610
628
# ifdef IN_OPTION_C
611
629
static char *(p_ve_values[]) = {"block", "insert", "all", "onemore", NULL};