1 /* 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 * option.h: definition of global variables for settable options 11 */ 12 13 #ifndef _OPTION_H_ 14 #define _OPTION_H_ 15 16 // 17 // Flags 18 // 19 #define P_BOOL 0x01 // the option is boolean 20 #define P_NUM 0x02 // the option is numeric 21 #define P_STRING 0x04 // the option is a string 22 #define P_ALLOCED 0x08 // the string option is in allocated memory, 23 // must use free_string_option() when 24 // assigning new value. Not set if default is 25 // the same. 26 #define P_EXPAND 0x10 // environment expansion. NOTE: P_EXPAND can 27 // never be used for local or hidden options! 28 #define P_NODEFAULT 0x40 // don't set to default value 29 #define P_DEF_ALLOCED 0x80 // default value is in allocated memory, must 30 // use vim_free() when assigning new value 31 #define P_WAS_SET 0x100 // option has been set/reset 32 #define P_NO_MKRC 0x200 // don't include in :mkvimrc output 33 #define P_VI_DEF 0x400 // Use Vi default for Vim 34 #define P_VIM 0x800 // Vim option, reset when 'cp' set 35 36 // when option changed, what to display: 37 #define P_RSTAT 0x1000 // redraw status lines 38 #define P_RWIN 0x2000 // redraw current window and recompute text 39 #define P_RBUF 0x4000 // redraw current buffer and recompute text 40 #define P_RALL 0x6000 // redraw all windows 41 #define P_RCLR 0x7000 // clear and redraw all 42 43 #define P_COMMA 0x8000 // comma separated list 44 #define P_ONECOMMA 0x18000L // P_COMMA and cannot have two consecutive 45 // commas 46 #define P_NODUP 0x20000L // don't allow duplicate strings 47 #define P_FLAGLIST 0x40000L // list of single-char flags 48 49 #define P_SECURE 0x80000L // cannot change in modeline or secure mode 50 #define P_GETTEXT 0x100000L // expand default value with _() 51 #define P_NOGLOB 0x200000L // do not use local value for global vimrc 52 #define P_NFNAME 0x400000L // only normal file name chars allowed 53 #define P_INSECURE 0x800000L // option was set from a modeline 54 #define P_PRI_MKRC 0x1000000L // priority for :mkvimrc (setting option has 55 // side effects) 56 #define P_NO_ML 0x2000000L // not allowed in modeline 57 #define P_CURSWANT 0x4000000L // update curswant required; not needed when 58 // there is a redraw flag 59 #define P_NDNAME 0x8000000L // only normal dir name chars allowed 60 #define P_RWINONLY 0x10000000L // only redraw current window 61 #define P_MLE 0x20000000L // under control of 'modelineexpr' 62 63 // Returned by get_option_value(). 64 typedef enum { 65 gov_unknown, 66 gov_bool, 67 gov_number, 68 gov_string, 69 gov_hidden_bool, 70 gov_hidden_number, 71 gov_hidden_string 72 } getoption_T; 73 74 /* 75 * Default values for 'errorformat'. 76 * The "%f|%l| %m" one is used for when the contents of the quickfix window is 77 * written to a file. 78 */ 79 #ifdef AMIGA 80 # define DFLT_EFM "%f>%l:%c:%t:%n:%m,%f:%l: %t%*\\D%n: %m,%f %l %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f:%l:%m,%f|%l| %m" 81 #else 82 # if defined(MSWIN) 83 # define DFLT_EFM "%f(%l) \\=: %t%*\\D%n: %m,%*[^\"]\"%f\"%*\\D%l: %m,%f(%l) \\=: %m,%*[^ ] %f %l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,%f|%l| %m" 84 # else 85 # if defined(__QNX__) 86 # define DFLT_EFM "%f(%l):%*[^WE]%t%*\\D%n:%m,%f|%l| %m" 87 # else 88 # ifdef VMS 89 # define DFLT_EFM "%A%p^,%C%%CC-%t-%m,%Cat line number %l in file %f,%f|%l| %m" 90 # else // Unix, probably 91 # ifdef EBCDIC 92 #define DFLT_EFM "%*[^ ] %*[^ ] %f:%l%*[ ]%m,%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory %*[`']%f',%X%*\\a[%*\\d]: Leaving directory %*[`']%f',%DMaking %*\\a in %f,%f|%l| %m" 93 # else 94 #define DFLT_EFM "%*[^\"]\"%f\"%*\\D%l: %m,\"%f\"%*\\D%l: %m,%-G%f:%l: (Each undeclared identifier is reported only once,%-G%f:%l: for each function it appears in.),%-GIn file included from %f:%l:%c:,%-GIn file included from %f:%l:%c\\,,%-GIn file included from %f:%l:%c,%-GIn file included from %f:%l,%-G%*[ ]from %f:%l:%c,%-G%*[ ]from %f:%l:,%-G%*[ ]from %f:%l\\,,%-G%*[ ]from %f:%l,%f:%l:%c:%m,%f(%l):%m,%f:%l:%m,\"%f\"\\, line %l%*\\D%c%*[^ ] %m,%D%*\\a[%*\\d]: Entering directory %*[`']%f',%X%*\\a[%*\\d]: Leaving directory %*[`']%f',%D%*\\a: Entering directory %*[`']%f',%X%*\\a: Leaving directory %*[`']%f',%DMaking %*\\a in %f,%f|%l| %m" 95 # endif 96 # endif 97 # endif 98 # endif 99 #endif 100 101 #define DFLT_GREPFORMAT "%f:%l:%m,%f:%l%m,%f %l%m" 102 103 // default values for b_p_ff 'fileformat' and p_ffs 'fileformats' 104 #define FF_DOS "dos" 105 #define FF_MAC "mac" 106 #define FF_UNIX "unix" 107 108 #ifdef USE_CRNL 109 # define DFLT_FF "dos" 110 # define DFLT_FFS_VIM "dos,unix" 111 # define DFLT_FFS_VI "dos,unix" // also autodetect in compatible mode 112 # define DFLT_TEXTAUTO TRUE 113 #else 114 # define DFLT_FF "unix" 115 # define DFLT_FFS_VIM "unix,dos" 116 # ifdef __CYGWIN__ 117 # define DFLT_FFS_VI "unix,dos" // Cygwin always needs file detection 118 # define DFLT_TEXTAUTO TRUE 119 # else 120 # define DFLT_FFS_VI "" 121 # define DFLT_TEXTAUTO FALSE 122 # endif 123 #endif 124 125 126 // Possible values for 'encoding' 127 #define ENC_UCSBOM "ucs-bom" // check for BOM at start of file 128 129 // default value for 'encoding' 130 #ifdef MSWIN 131 # define ENC_DFLT "utf-8" 132 #else 133 # define ENC_DFLT "latin1" 134 #endif 135 136 // end-of-line style 137 #define EOL_UNKNOWN -1 // not defined yet 138 #define EOL_UNIX 0 // NL 139 #define EOL_DOS 1 // CR NL 140 #define EOL_MAC 2 // CR 141 142 // Formatting options for p_fo 'formatoptions' 143 #define FO_WRAP 't' 144 #define FO_WRAP_COMS 'c' 145 #define FO_RET_COMS 'r' 146 #define FO_OPEN_COMS 'o' 147 #define FO_Q_COMS 'q' 148 #define FO_Q_NUMBER 'n' 149 #define FO_Q_SECOND '2' 150 #define FO_INS_VI 'v' 151 #define FO_INS_LONG 'l' 152 #define FO_INS_BLANK 'b' 153 #define FO_MBYTE_BREAK 'm' // break before/after multi-byte char 154 #define FO_MBYTE_JOIN 'M' // no space before/after multi-byte char 155 #define FO_MBYTE_JOIN2 'B' // no space between multi-byte chars 156 #define FO_ONE_LETTER '1' 157 #define FO_WHITE_PAR 'w' // trailing white space continues paragr. 158 #define FO_AUTO 'a' // automatic formatting 159 #define FO_RIGOROUS_TW ']' // respect textwidth rigorously 160 #define FO_REMOVE_COMS 'j' // remove comment leaders when joining lines 161 #define FO_PERIOD_ABBR 'p' // don't break a single space after a period 162 163 #define DFLT_FO_VI "vt" 164 #define DFLT_FO_VIM "tcq" 165 #define FO_ALL "tcroq2vlb1mMBn,aw]jp" // for do_set() 166 167 // characters for the p_cpo option: 168 #define CPO_ALTREAD 'a' // ":read" sets alternate file name 169 #define CPO_ALTWRITE 'A' // ":write" sets alternate file name 170 #define CPO_BAR 'b' // "\|" ends a mapping 171 #define CPO_BSLASH 'B' // backslash in mapping is not special 172 #define CPO_SEARCH 'c' 173 #define CPO_CONCAT 'C' // Don't concatenate sourced lines 174 #define CPO_DOTTAG 'd' // "./tags" in 'tags' is in current dir 175 #define CPO_DIGRAPH 'D' // No digraph after "r", "f", etc. 176 #define CPO_EXECBUF 'e' 177 #define CPO_EMPTYREGION 'E' // operating on empty region is an error 178 #define CPO_FNAMER 'f' // set file name for ":r file" 179 #define CPO_FNAMEW 'F' // set file name for ":w file" 180 #define CPO_GOTO1 'g' // goto line 1 for ":edit" 181 #define CPO_INSEND 'H' // "I" inserts before last blank in line 182 #define CPO_INTMOD 'i' // interrupt a read makes buffer modified 183 #define CPO_INDENT 'I' // remove auto-indent more often 184 #define CPO_JOINSP 'j' // only use two spaces for join after '.' 185 #define CPO_ENDOFSENT 'J' // need two spaces to detect end of sentence 186 #define CPO_KEYCODE 'k' // don't recognize raw key code in mappings 187 #define CPO_KOFFSET 'K' // don't wait for key code in mappings 188 #define CPO_LITERAL 'l' // take char after backslash in [] literal 189 #define CPO_LISTWM 'L' // 'list' changes wrapmargin 190 #define CPO_SHOWMATCH 'm' 191 #define CPO_MATCHBSL 'M' // "%" ignores use of backslashes 192 #define CPO_NUMCOL 'n' // 'number' column also used for text 193 #define CPO_LINEOFF 'o' 194 #define CPO_OVERNEW 'O' // silently overwrite new file 195 #define CPO_LISP 'p' // 'lisp' indenting 196 #define CPO_FNAMEAPP 'P' // set file name for ":w >>file" 197 #define CPO_JOINCOL 'q' // with "3J" use column after first join 198 #define CPO_REDO 'r' 199 #define CPO_REMMARK 'R' // remove marks when filtering 200 #define CPO_BUFOPT 's' 201 #define CPO_BUFOPTGLOB 'S' 202 #define CPO_TAGPAT 't' 203 #define CPO_UNDO 'u' // "u" undoes itself 204 #define CPO_BACKSPACE 'v' // "v" keep deleted text 205 #define CPO_CW 'w' // "cw" only changes one blank 206 #define CPO_FWRITE 'W' // "w!" doesn't overwrite readonly files 207 #define CPO_ESC 'x' 208 #define CPO_REPLCNT 'X' // "R" with a count only deletes chars once 209 #define CPO_YANK 'y' 210 #define CPO_KEEPRO 'Z' // don't reset 'readonly' on ":w!" 211 #define CPO_DOLLAR '$' 212 #define CPO_FILTER '!' 213 #define CPO_MATCH '%' 214 #define CPO_STAR '*' // ":*" means ":@" 215 #define CPO_PLUS '+' // ":write file" resets 'modified' 216 #define CPO_MINUS '-' // "9-" fails at and before line 9 217 #define CPO_SPECI '<' // don't recognize <> in mappings 218 #define CPO_REGAPPEND '>' // insert NL when appending to a register 219 // POSIX flags 220 #define CPO_HASH '#' // "D", "o" and "O" do not use a count 221 #define CPO_PARA '{' // "{" is also a paragraph boundary 222 #define CPO_TSIZE '|' // $LINES and $COLUMNS overrule term size 223 #define CPO_PRESERVE '&' // keep swap file after :preserve 224 #define CPO_SUBPERCENT '/' // % in :s string uses previous one 225 #define CPO_BACKSL '\\' // \ is not special in [] 226 #define CPO_CHDIR '.' // don't chdir if buffer is modified 227 #define CPO_SCOLON ';' // using "," and ";" will skip over char if 228 // cursor would not move 229 // default values for Vim, Vi and POSIX 230 #define CPO_VIM "aABceFs" 231 #define CPO_VI "aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>;" 232 #define CPO_ALL "aAbBcCdDeEfFgHiIjJkKlLmMnoOpPqrRsStuvwWxXyZ$!%*-+<>#{|&/\\.;" 233 234 // characters for p_ww option: 235 #define WW_ALL "bshl<>[],~" 236 237 // characters for p_mouse option: 238 #define MOUSE_NORMAL 'n' // use mouse in Normal mode 239 #define MOUSE_VISUAL 'v' // use mouse in Visual/Select mode 240 #define MOUSE_INSERT 'i' // use mouse in Insert mode 241 #define MOUSE_COMMAND 'c' // use mouse in Command-line mode 242 #define MOUSE_HELP 'h' // use mouse in help buffers 243 #define MOUSE_RETURN 'r' // use mouse for hit-return message 244 #define MOUSE_A "nvich" // used for 'a' flag 245 #define MOUSE_ALL "anvichr" // all possible characters 246 #define MOUSE_NONE ' ' // don't use Visual selection 247 #define MOUSE_NONEF 'x' // forced modeless selection 248 249 #define COCU_ALL "nvic" // flags for 'concealcursor' 250 251 // characters for p_shm option: 252 #define SHM_RO 'r' // readonly 253 #define SHM_MOD 'm' // modified 254 #define SHM_FILE 'f' // (file 1 of 2) 255 #define SHM_LAST 'i' // last line incomplete 256 #define SHM_TEXT 'x' // tx instead of textmode 257 #define SHM_LINES 'l' // "L" instead of "lines" 258 #define SHM_NEW 'n' // "[New]" instead of "[New file]" 259 #define SHM_WRI 'w' // "[w]" instead of "written" 260 #define SHM_A "rmfixlnw" // represented by 'a' flag 261 #define SHM_WRITE 'W' // don't use "written" at all 262 #define SHM_TRUNC 't' // truncate file messages 263 #define SHM_TRUNCALL 'T' // truncate all messages 264 #define SHM_OVER 'o' // overwrite file messages 265 #define SHM_OVERALL 'O' // overwrite more messages 266 #define SHM_SEARCH 's' // no search hit bottom messages 267 #define SHM_ATTENTION 'A' // no ATTENTION messages 268 #define SHM_INTRO 'I' // intro messages 269 #define SHM_COMPLETIONMENU 'c' // completion menu messages 270 #define SHM_RECORDING 'q' // short recording message 271 #define SHM_FILEINFO 'F' // no file info messages 272 #define SHM_SEARCHCOUNT 'S' // search stats: '[1/10]' 273 #define SHM_POSIX "AS" // POSIX value 274 #define SHM_ALL "rmfixlnwaWtToOsAIcqFS" // all possible flags for 'shm' 275 276 // characters for p_go: 277 #define GO_TERMINAL '!' // use terminal for system commands 278 #define GO_ASEL 'a' // autoselect 279 #define GO_ASELML 'A' // autoselect modeless selection 280 #define GO_BOT 'b' // use bottom scrollbar 281 #define GO_CONDIALOG 'c' // use console dialog 282 #define GO_DARKTHEME 'd' // use dark theme variant 283 #define GO_TABLINE 'e' // may show tabline 284 #define GO_FORG 'f' // start GUI in foreground 285 #define GO_GREY 'g' // use grey menu items 286 #define GO_HORSCROLL 'h' // flexible horizontal scrolling 287 #define GO_ICON 'i' // use Vim icon 288 #define GO_LEFT 'l' // use left scrollbar 289 #define GO_VLEFT 'L' // left scrollbar with vert split 290 #define GO_MENUS 'm' // use menu bar 291 #define GO_NOSYSMENU 'M' // don't source system menu 292 #define GO_POINTER 'p' // pointer enter/leave callbacks 293 #define GO_ASELPLUS 'P' // autoselectPlus 294 #define GO_RIGHT 'r' // use right scrollbar 295 #define GO_VRIGHT 'R' // right scrollbar with vert split 296 #define GO_TEAROFF 't' // add tear-off menu items 297 #define GO_TOOLBAR 'T' // add toolbar 298 #define GO_FOOTER 'F' // add footer 299 #define GO_VERTICAL 'v' // arrange dialog buttons vertically 300 #define GO_KEEPWINSIZE 'k' // keep GUI window size 301 #define GO_ALL "!aAbcdefFghilmMprtTvk" // all possible flags for 'go' 302 303 // flags for 'comments' option 304 #define COM_NEST 'n' // comments strings nest 305 #define COM_BLANK 'b' // needs blank after string 306 #define COM_START 's' // start of comment 307 #define COM_MIDDLE 'm' // middle of comment 308 #define COM_END 'e' // end of comment 309 #define COM_AUTO_END 'x' // last char of end closes comment 310 #define COM_FIRST 'f' // first line comment only 311 #define COM_LEFT 'l' // left adjusted 312 #define COM_RIGHT 'r' // right adjusted 313 #define COM_NOBACK 'O' // don't use for "O" command 314 #define COM_ALL "nbsmexflrO" // all flags for 'comments' option 315 #define COM_MAX_LEN 50 // maximum length of a part 316 317 // flags for 'statusline' option 318 #define STL_FILEPATH 'f' // path of file in buffer 319 #define STL_FULLPATH 'F' // full path of file in buffer 320 #define STL_FILENAME 't' // last part (tail) of file path 321 #define STL_COLUMN 'c' // column og cursor 322 #define STL_VIRTCOL 'v' // virtual column 323 #define STL_VIRTCOL_ALT 'V' // - with 'if different' display 324 #define STL_LINE 'l' // line number of cursor 325 #define STL_NUMLINES 'L' // number of lines in buffer 326 #define STL_BUFNO 'n' // current buffer number 327 #define STL_KEYMAP 'k' // 'keymap' when active 328 #define STL_OFFSET 'o' // offset of character under cursor 329 #define STL_OFFSET_X 'O' // - in hexadecimal 330 #define STL_BYTEVAL 'b' // byte value of character 331 #define STL_BYTEVAL_X 'B' // - in hexadecimal 332 #define STL_ROFLAG 'r' // readonly flag 333 #define STL_ROFLAG_ALT 'R' // - other display 334 #define STL_HELPFLAG 'h' // window is showing a help file 335 #define STL_HELPFLAG_ALT 'H' // - other display 336 #define STL_FILETYPE 'y' // 'filetype' 337 #define STL_FILETYPE_ALT 'Y' // - other display 338 #define STL_PREVIEWFLAG 'w' // window is showing the preview buf 339 #define STL_PREVIEWFLAG_ALT 'W' // - other display 340 #define STL_MODIFIED 'm' // modified flag 341 #define STL_MODIFIED_ALT 'M' // - other display 342 #define STL_QUICKFIX 'q' // quickfix window description 343 #define STL_PERCENTAGE 'p' // percentage through file 344 #define STL_ALTPERCENT 'P' // percentage as TOP BOT ALL or NN% 345 #define STL_ARGLISTSTAT 'a' // argument list status as (x of y) 346 #define STL_PAGENUM 'N' // page number (when printing) 347 #define STL_VIM_EXPR '{' // start of expression to substitute 348 #define STL_MIDDLEMARK '=' // separation between left and right 349 #define STL_TRUNCMARK '<' // truncation mark if line is too long 350 #define STL_USER_HL '*' // highlight from (User)1..9 or 0 351 #define STL_HIGHLIGHT '#' // highlight name 352 #define STL_TABPAGENR 'T' // tab page label nr 353 #define STL_TABCLOSENR 'X' // tab page close nr 354 #define STL_ALL ((char_u *) "fFtcvVlLknoObBrRhHmYyWwMqpPaN{#") 355 356 // flags used for parsed 'wildmode' 357 #define WIM_FULL 0x01 358 #define WIM_LONGEST 0x02 359 #define WIM_LIST 0x04 360 #define WIM_BUFLASTUSED 0x08 361 362 // arguments for can_bs() 363 // each defined char should be unique over all values 364 // except for BS_START, that intentionally also matches BS_NOSTOP 365 // because BS_NOSTOP behaves exactly the same except it 366 // does not stop at the start of the insert point 367 #define BS_INDENT 'i' // "Indent" 368 #define BS_EOL 'l' // "eoL" 369 #define BS_START 's' // "Start" 370 #define BS_NOSTOP 'p' // "nostoP 371 372 // flags for the 'culopt' option 373 #define CULOPT_LINE 0x01 // Highlight complete line 374 #define CULOPT_SCRLINE 0x02 // Highlight screen line 375 #define CULOPT_NBR 0x04 // Highlight Number column 376 377 #define LISPWORD_VALUE "defun,define,defmacro,set!,lambda,if,case,let,flet,let*,letrec,do,do*,define-syntax,let-syntax,letrec-syntax,destructuring-bind,defpackage,defparameter,defstruct,deftype,defvar,do-all-symbols,do-external-symbols,do-symbols,dolist,dotimes,ecase,etypecase,eval-when,labels,macrolet,multiple-value-bind,multiple-value-call,multiple-value-prog1,multiple-value-setq,prog1,progv,typecase,unless,unwind-protect,when,with-input-from-string,with-open-file,with-open-stream,with-output-to-string,with-package-iterator,define-condition,handler-bind,handler-case,restart-bind,restart-case,with-simple-restart,store-value,use-value,muffle-warning,abort,continue,with-slots,with-slots*,with-accessors,with-accessors*,defclass,defmethod,print-unreadable-object" 378 379 /* 380 * The following are actual variables for the options 381 */ 382 383 #ifdef FEAT_RIGHTLEFT 384 EXTERN long p_aleph; // 'aleph' 385 #endif 386 EXTERN char_u *p_ambw; // 'ambiwidth' 387 #ifdef FEAT_AUTOCHDIR 388 EXTERN int p_acd; // 'autochdir' 389 #endif 390 #ifdef FEAT_AUTOSHELLDIR 391 EXTERN int p_asd; // 'autoshelldir' 392 #endif 393 EXTERN int p_ai; // 'autoindent' 394 EXTERN int p_bin; // 'binary' 395 EXTERN int p_bomb; // 'bomb' 396 EXTERN int p_bl; // 'buflisted' 397 #ifdef FEAT_CINDENT 398 EXTERN int p_cin; // 'cindent' 399 EXTERN char_u *p_cink; // 'cinkeys' 400 #endif 401 #if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT) 402 EXTERN char_u *p_cinw; // 'cinwords' 403 #endif 404 #ifdef FEAT_COMPL_FUNC 405 EXTERN char_u *p_cfu; // 'completefunc' 406 EXTERN char_u *p_ofu; // 'omnifunc' 407 EXTERN char_u *p_tsrfu; // 'thesaurusfunc' 408 #endif 409 EXTERN int p_ci; // 'copyindent' 410 #if defined(FEAT_GUI) && defined(MACOS_X) 411 EXTERN int *p_antialias; // 'antialias' 412 #endif 413 EXTERN int p_ar; // 'autoread' 414 EXTERN int p_aw; // 'autowrite' 415 EXTERN int p_awa; // 'autowriteall' 416 EXTERN char_u *p_bs; // 'backspace' 417 EXTERN char_u *p_bg; // 'background' 418 EXTERN int p_bk; // 'backup' 419 EXTERN char_u *p_bkc; // 'backupcopy' 420 EXTERN unsigned bkc_flags; // flags from 'backupcopy' 421 # define BKC_YES 0x001 422 # define BKC_AUTO 0x002 423 # define BKC_NO 0x004 424 # define BKC_BREAKSYMLINK 0x008 425 # define BKC_BREAKHARDLINK 0x010 426 EXTERN char_u *p_bdir; // 'backupdir' 427 EXTERN char_u *p_bex; // 'backupext' 428 EXTERN char_u *p_bo; // 'belloff' 429 EXTERN unsigned bo_flags; 430 431 // values for the 'belloff' option 432 #define BO_ALL 0x0001 433 #define BO_BS 0x0002 434 #define BO_CRSR 0x0004 435 #define BO_COMPL 0x0008 436 #define BO_COPY 0x0010 437 #define BO_CTRLG 0x0020 438 #define BO_ERROR 0x0040 439 #define BO_ESC 0x0080 440 #define BO_EX 0x0100 441 #define BO_HANGUL 0x0200 442 #define BO_IM 0x0400 443 #define BO_LANG 0x0800 444 #define BO_MESS 0x1000 445 #define BO_MATCH 0x2000 446 #define BO_OPER 0x4000 447 #define BO_REG 0x8000 448 #define BO_SH 0x10000 449 #define BO_SPELL 0x20000 450 #define BO_WILD 0x40000 451 452 #ifdef FEAT_WILDIGN 453 EXTERN char_u *p_bsk; // 'backupskip' 454 #endif 455 #ifdef FEAT_CRYPT 456 EXTERN char_u *p_cm; // 'cryptmethod' 457 #endif 458 #ifdef FEAT_BEVAL 459 # ifdef FEAT_BEVAL_GUI 460 EXTERN int p_beval; // 'ballooneval' 461 # endif 462 EXTERN long p_bdlay; // 'balloondelay' 463 # ifdef FEAT_EVAL 464 EXTERN char_u *p_bexpr; 465 # endif 466 # ifdef FEAT_BEVAL_TERM 467 EXTERN int p_bevalterm; // 'balloonevalterm' 468 # endif 469 #endif 470 #ifdef FEAT_BROWSE 471 EXTERN char_u *p_bsdir; // 'browsedir' 472 #endif 473 #ifdef FEAT_LINEBREAK 474 EXTERN char_u *p_breakat; // 'breakat' 475 #endif 476 EXTERN char_u *p_bh; // 'bufhidden' 477 EXTERN char_u *p_bt; // 'buftype' 478 EXTERN char_u *p_cmp; // 'casemap' 479 EXTERN unsigned cmp_flags; 480 #define CMP_INTERNAL 0x001 481 #define CMP_KEEPASCII 0x002 482 EXTERN char_u *p_enc; // 'encoding' 483 EXTERN int p_deco; // 'delcombine' 484 #ifdef FEAT_EVAL 485 EXTERN char_u *p_ccv; // 'charconvert' 486 #endif 487 EXTERN char_u *p_cino; // 'cinoptions' 488 #ifdef FEAT_CMDWIN 489 EXTERN char_u *p_cedit; // 'cedit' 490 EXTERN long p_cwh; // 'cmdwinheight' 491 #endif 492 #ifdef FEAT_CLIPBOARD 493 EXTERN char_u *p_cb; // 'clipboard' 494 #endif 495 EXTERN long p_ch; // 'cmdheight' 496 #ifdef FEAT_FOLDING 497 EXTERN char_u *p_cms; // 'commentstring' 498 #endif 499 EXTERN char_u *p_cpt; // 'complete' 500 #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG) 501 EXTERN int p_confirm; // 'confirm' 502 #endif 503 EXTERN int p_cp; // 'compatible' 504 EXTERN char_u *p_cot; // 'completeopt' 505 #ifdef BACKSLASH_IN_FILENAME 506 EXTERN char_u *p_csl; // 'completeslash' 507 #endif 508 EXTERN long p_ph; // 'pumheight' 509 EXTERN long p_pw; // 'pumwidth' 510 EXTERN char_u *p_com; // 'comments' 511 EXTERN char_u *p_cpo; // 'cpoptions' 512 #ifdef FEAT_CSCOPE 513 EXTERN char_u *p_csprg; // 'cscopeprg' 514 EXTERN int p_csre; // 'cscoperelative' 515 # ifdef FEAT_QUICKFIX 516 EXTERN char_u *p_csqf; // 'cscopequickfix' 517 # define CSQF_CMDS "sgdctefia" 518 # define CSQF_FLAGS "+-0" 519 # endif 520 EXTERN int p_cst; // 'cscopetag' 521 EXTERN long p_csto; // 'cscopetagorder' 522 EXTERN long p_cspc; // 'cscopepathcomp' 523 EXTERN int p_csverbose; // 'cscopeverbose' 524 #endif 525 EXTERN char_u *p_debug; // 'debug' 526 #ifdef FEAT_FIND_ID 527 EXTERN char_u *p_def; // 'define' 528 EXTERN char_u *p_inc; 529 #endif 530 #ifdef FEAT_DIFF 531 EXTERN char_u *p_dip; // 'diffopt' 532 # ifdef FEAT_EVAL 533 EXTERN char_u *p_dex; // 'diffexpr' 534 # endif 535 #endif 536 EXTERN char_u *p_dict; // 'dictionary' 537 #ifdef FEAT_DIGRAPHS 538 EXTERN int p_dg; // 'digraph' 539 #endif 540 EXTERN char_u *p_dir; // 'directory' 541 EXTERN char_u *p_dy; // 'display' 542 EXTERN unsigned dy_flags; 543 #define DY_LASTLINE 0x001 544 #define DY_TRUNCATE 0x002 545 #define DY_UHEX 0x004 546 EXTERN int p_ed; // 'edcompatible' 547 EXTERN char_u *p_ead; // 'eadirection' 548 EXTERN char_u *p_emoji; // 'emoji' 549 EXTERN int p_ea; // 'equalalways' 550 EXTERN char_u *p_ep; // 'equalprg' 551 EXTERN int p_eb; // 'errorbells' 552 #ifdef FEAT_QUICKFIX 553 EXTERN char_u *p_ef; // 'errorfile' 554 EXTERN char_u *p_efm; // 'errorformat' 555 EXTERN char_u *p_gefm; // 'grepformat' 556 EXTERN char_u *p_gp; // 'grepprg' 557 #endif 558 EXTERN int p_eol; // 'endofline' 559 EXTERN int p_ek; // 'esckeys' 560 EXTERN char_u *p_ei; // 'eventignore' 561 EXTERN int p_et; // 'expandtab' 562 EXTERN int p_exrc; // 'exrc' 563 EXTERN char_u *p_fenc; // 'fileencoding' 564 EXTERN char_u *p_fencs; // 'fileencodings' 565 EXTERN char_u *p_ff; // 'fileformat' 566 EXTERN char_u *p_ffs; // 'fileformats' 567 EXTERN long p_fic; // 'fileignorecase' 568 EXTERN char_u *p_ft; // 'filetype' 569 EXTERN char_u *p_fcs; // 'fillchar' 570 EXTERN int p_fixeol; // 'fixendofline' 571 #ifdef FEAT_FOLDING 572 EXTERN char_u *p_fcl; // 'foldclose' 573 EXTERN long p_fdls; // 'foldlevelstart' 574 EXTERN char_u *p_fdo; // 'foldopen' 575 EXTERN unsigned fdo_flags; 576 # define FDO_ALL 0x001 577 # define FDO_BLOCK 0x002 578 # define FDO_HOR 0x004 579 # define FDO_MARK 0x008 580 # define FDO_PERCENT 0x010 581 # define FDO_QUICKFIX 0x020 582 # define FDO_SEARCH 0x040 583 # define FDO_TAG 0x080 584 # define FDO_INSERT 0x100 585 # define FDO_UNDO 0x200 586 # define FDO_JUMP 0x400 587 #endif 588 #if defined(FEAT_EVAL) 589 EXTERN char_u *p_fex; // 'formatexpr' 590 #endif 591 EXTERN char_u *p_flp; // 'formatlistpat' 592 EXTERN char_u *p_fo; // 'formatoptions' 593 EXTERN char_u *p_fp; // 'formatprg' 594 #ifdef HAVE_FSYNC 595 EXTERN int p_fs; // 'fsync' 596 #endif 597 EXTERN int p_gd; // 'gdefault' 598 #ifdef FEAT_PROP_POPUP 599 # ifdef FEAT_QUICKFIX 600 EXTERN char_u *p_cpp; // 'completepopup' 601 # endif 602 EXTERN char_u *p_pvp; // 'previewpopup' 603 #endif 604 #ifdef FEAT_PRINTER 605 EXTERN char_u *p_pdev; // 'printdevice' 606 # ifdef FEAT_POSTSCRIPT 607 EXTERN char_u *p_penc; // 'printencoding' 608 EXTERN char_u *p_pexpr; // 'printexpr' 609 EXTERN char_u *p_pmfn; // 'printmbfont' 610 EXTERN char_u *p_pmcs; // 'printmbcharset' 611 # endif 612 EXTERN char_u *p_pfn; // 'printfont' 613 EXTERN char_u *p_popt; // 'printoptions' 614 EXTERN char_u *p_header; // 'printheader' 615 #endif 616 EXTERN int p_prompt; // 'prompt' 617 #ifdef FEAT_GUI 618 EXTERN char_u *p_guifont; // 'guifont' 619 # ifdef FEAT_XFONTSET 620 EXTERN char_u *p_guifontset; // 'guifontset' 621 # endif 622 EXTERN char_u *p_guifontwide; // 'guifontwide' 623 EXTERN int p_guipty; // 'guipty' 624 #endif 625 #ifdef FEAT_GUI_GTK 626 EXTERN char_u *p_guiligatures; // 'guiligatures' 627 # endif 628 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_X11) 629 EXTERN long p_ghr; // 'guiheadroom' 630 #endif 631 #ifdef CURSOR_SHAPE 632 EXTERN char_u *p_guicursor; // 'guicursor' 633 #endif 634 #ifdef FEAT_MOUSESHAPE 635 EXTERN char_u *p_mouseshape; // 'mouseshape' 636 #endif 637 #if defined(FEAT_GUI) 638 EXTERN char_u *p_go; // 'guioptions' 639 #endif 640 #if defined(FEAT_GUI_TABLINE) 641 EXTERN char_u *p_gtl; // 'guitablabel' 642 EXTERN char_u *p_gtt; // 'guitabtooltip' 643 #endif 644 EXTERN char_u *p_hf; // 'helpfile' 645 EXTERN long p_hh; // 'helpheight' 646 #ifdef FEAT_MULTI_LANG 647 EXTERN char_u *p_hlg; // 'helplang' 648 #endif 649 EXTERN int p_hid; // 'hidden' 650 EXTERN char_u *p_hl; // 'highlight' 651 EXTERN int p_hls; // 'hlsearch' 652 EXTERN long p_hi; // 'history' 653 #ifdef FEAT_RIGHTLEFT 654 EXTERN int p_hkmap; // 'hkmap' 655 EXTERN int p_hkmapp; // 'hkmapp' 656 # ifdef FEAT_ARABIC 657 EXTERN int p_arshape; // 'arabicshape' 658 # endif 659 #endif 660 #ifdef FEAT_TITLE 661 EXTERN int p_icon; // 'icon' 662 EXTERN char_u *p_iconstring; // 'iconstring' 663 #endif 664 EXTERN int p_ic; // 'ignorecase' 665 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) 666 EXTERN char_u *p_imak; // 'imactivatekey' 667 #define IM_ON_THE_SPOT 0L 668 #define IM_OVER_THE_SPOT 1L 669 EXTERN long p_imst; // 'imstyle' 670 #endif 671 #if defined(FEAT_EVAL) 672 EXTERN char_u *p_imaf; // 'imactivatefunc' 673 EXTERN char_u *p_imsf; // 'imstatusfunc' 674 #endif 675 EXTERN int p_imcmdline; // 'imcmdline' 676 EXTERN int p_imdisable; // 'imdisable' 677 EXTERN long p_iminsert; // 'iminsert' 678 EXTERN long p_imsearch; // 'imsearch' 679 EXTERN int p_inf; // 'infercase' 680 #if defined(FEAT_FIND_ID) && defined(FEAT_EVAL) 681 EXTERN char_u *p_inex; // 'includeexpr' 682 #endif 683 EXTERN int p_is; // 'incsearch' 684 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) 685 EXTERN char_u *p_inde; // 'indentexpr' 686 EXTERN char_u *p_indk; // 'indentkeys' 687 #endif 688 EXTERN int p_im; // 'insertmode' 689 EXTERN char_u *p_isf; // 'isfname' 690 EXTERN char_u *p_isi; // 'isident' 691 EXTERN char_u *p_isk; // 'iskeyword' 692 EXTERN char_u *p_isp; // 'isprint' 693 EXTERN int p_js; // 'joinspaces' 694 #ifdef FEAT_CRYPT 695 EXTERN char_u *p_key; // 'key' 696 #endif 697 #ifdef FEAT_KEYMAP 698 EXTERN char_u *p_keymap; // 'keymap' 699 #endif 700 EXTERN char_u *p_kp; // 'keywordprg' 701 EXTERN char_u *p_km; // 'keymodel' 702 #ifdef FEAT_LANGMAP 703 EXTERN char_u *p_langmap; // 'langmap' 704 EXTERN int p_lnr; // 'langnoremap' 705 EXTERN int p_lrm; // 'langremap' 706 #endif 707 #if defined(FEAT_MENU) && defined(FEAT_MULTI_LANG) 708 EXTERN char_u *p_lm; // 'langmenu' 709 #endif 710 #ifdef FEAT_GUI 711 EXTERN long p_linespace; // 'linespace' 712 #endif 713 #ifdef FEAT_LISP 714 EXTERN int p_lisp; // 'lisp' 715 EXTERN char_u *p_lispwords; // 'lispwords' 716 #endif 717 EXTERN long p_ls; // 'laststatus' 718 EXTERN long p_stal; // 'showtabline' 719 EXTERN char_u *p_lcs; // 'listchars' 720 721 EXTERN int p_lz; // 'lazyredraw' 722 EXTERN int p_lpl; // 'loadplugins' 723 #if defined(DYNAMIC_LUA) 724 EXTERN char_u *p_luadll; // 'luadll' 725 #endif 726 EXTERN int p_magic; // 'magic' 727 EXTERN char_u *p_menc; // 'makeencoding' 728 #ifdef FEAT_QUICKFIX 729 EXTERN char_u *p_mef; // 'makeef' 730 EXTERN char_u *p_mp; // 'makeprg' 731 #endif 732 EXTERN char_u *p_mps; // 'matchpairs' 733 #ifdef FEAT_SIGNS 734 EXTERN char_u *p_scl; // signcolumn 735 #endif 736 #ifdef FEAT_SYN_HL 737 EXTERN char_u *p_cc; // 'colorcolumn' 738 EXTERN int p_cc_cols[256]; // array for 'colorcolumn' columns 739 #endif 740 EXTERN long p_mat; // 'matchtime' 741 EXTERN long p_mco; // 'maxcombine' 742 #ifdef FEAT_EVAL 743 EXTERN long p_mfd; // 'maxfuncdepth' 744 #endif 745 EXTERN long p_mmd; // 'maxmapdepth' 746 EXTERN long p_mm; // 'maxmem' 747 EXTERN long p_mmp; // 'maxmempattern' 748 EXTERN long p_mmt; // 'maxmemtot' 749 #ifdef FEAT_MENU 750 EXTERN long p_mis; // 'menuitems' 751 #endif 752 #ifdef FEAT_SPELL 753 EXTERN char_u *p_msm; // 'mkspellmem' 754 #endif 755 EXTERN int p_ml; // 'modeline' 756 EXTERN long p_mle; // 'modelineexpr' 757 EXTERN long p_mls; // 'modelines' 758 EXTERN int p_ma; // 'modifiable' 759 EXTERN int p_mod; // 'modified' 760 EXTERN char_u *p_mouse; // 'mouse' 761 #ifdef FEAT_GUI 762 EXTERN int p_mousef; // 'mousefocus' 763 EXTERN int p_mh; // 'mousehide' 764 #endif 765 EXTERN char_u *p_mousem; // 'mousemodel' 766 EXTERN long p_mouset; // 'mousetime' 767 EXTERN int p_more; // 'more' 768 #ifdef FEAT_MZSCHEME 769 EXTERN long p_mzq; // 'mzquantum 770 # if defined(DYNAMIC_MZSCHEME) 771 EXTERN char_u *p_mzschemedll; // 'mzschemedll' 772 EXTERN char_u *p_mzschemegcdll; // 'mzschemegcdll' 773 # endif 774 #endif 775 EXTERN char_u *p_nf; // 'nrformats' 776 #if defined(MSWIN) 777 EXTERN int p_odev; // 'opendevice' 778 #endif 779 EXTERN char_u *p_opfunc; // 'operatorfunc' 780 EXTERN char_u *p_para; // 'paragraphs' 781 EXTERN int p_paste; // 'paste' 782 EXTERN char_u *p_pt; // 'pastetoggle' 783 #if defined(FEAT_EVAL) && defined(FEAT_DIFF) 784 EXTERN char_u *p_pex; // 'patchexpr' 785 #endif 786 EXTERN char_u *p_pm; // 'patchmode' 787 EXTERN char_u *p_path; // 'path' 788 #ifdef FEAT_SEARCHPATH 789 EXTERN char_u *p_cdpath; // 'cdpath' 790 #endif 791 #if defined(DYNAMIC_PERL) 792 EXTERN char_u *p_perldll; // 'perldll' 793 #endif 794 EXTERN int p_pi; // 'preserveindent' 795 #if defined(DYNAMIC_PYTHON3) 796 EXTERN char_u *p_py3dll; // 'pythonthreedll' 797 #endif 798 #ifdef FEAT_PYTHON3 799 EXTERN char_u *p_py3home; // 'pythonthreehome' 800 #endif 801 #if defined(DYNAMIC_PYTHON) 802 EXTERN char_u *p_pydll; // 'pythondll' 803 #endif 804 #ifdef FEAT_PYTHON 805 EXTERN char_u *p_pyhome; // 'pythonhome' 806 #endif 807 #if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) 808 EXTERN long p_pyx; // 'pyxversion' 809 #endif 810 #ifdef FEAT_TEXTOBJ 811 EXTERN char_u *p_qe; // 'quoteescape' 812 #endif 813 EXTERN int p_ro; // 'readonly' 814 #ifdef FEAT_RELTIME 815 EXTERN long p_rdt; // 'redrawtime' 816 #endif 817 EXTERN int p_remap; // 'remap' 818 EXTERN long p_re; // 'regexpengine' 819 #ifdef FEAT_RENDER_OPTIONS 820 EXTERN char_u *p_rop; // 'renderoptions' 821 #endif 822 EXTERN long p_report; // 'report' 823 #if defined(FEAT_QUICKFIX) 824 EXTERN long p_pvh; // 'previewheight' 825 #endif 826 #ifdef MSWIN 827 EXTERN int p_rs; // 'restorescreen' 828 #endif 829 #ifdef FEAT_RIGHTLEFT 830 EXTERN int p_ari; // 'allowrevins' 831 EXTERN int p_ri; // 'revins' 832 #endif 833 #if defined(DYNAMIC_RUBY) 834 EXTERN char_u *p_rubydll; // 'rubydll' 835 #endif 836 #ifdef FEAT_CMDL_INFO 837 EXTERN int p_ru; // 'ruler' 838 #endif 839 #ifdef FEAT_STL_OPT 840 EXTERN char_u *p_ruf; // 'rulerformat' 841 #endif 842 EXTERN char_u *p_pp; // 'packpath' 843 EXTERN char_u *p_qftf; // 'quickfixtextfunc' 844 EXTERN char_u *p_rtp; // 'runtimepath' 845 EXTERN long p_sj; // 'scrolljump' 846 #if defined(MSWIN) && defined(FEAT_GUI) 847 EXTERN int p_scf; // 'scrollfocus' 848 #endif 849 EXTERN long p_so; // 'scrolloff' 850 EXTERN char_u *p_sbo; // 'scrollopt' 851 EXTERN char_u *p_sections; // 'sections' 852 EXTERN int p_secure; // 'secure' 853 EXTERN char_u *p_sel; // 'selection' 854 EXTERN char_u *p_slm; // 'selectmode' 855 #ifdef FEAT_SESSION 856 EXTERN char_u *p_ssop; // 'sessionoptions' 857 EXTERN unsigned ssop_flags; 858 # define SSOP_BUFFERS 0x001 859 # define SSOP_WINPOS 0x002 860 # define SSOP_RESIZE 0x004 861 # define SSOP_WINSIZE 0x008 862 # define SSOP_LOCALOPTIONS 0x010 863 # define SSOP_OPTIONS 0x020 864 # define SSOP_HELP 0x040 865 # define SSOP_BLANK 0x080 866 # define SSOP_GLOBALS 0x100 867 # define SSOP_SLASH 0x200 868 # define SSOP_UNIX 0x400 869 # define SSOP_SESDIR 0x800 870 # define SSOP_CURDIR 0x1000 871 # define SSOP_FOLDS 0x2000 872 # define SSOP_CURSOR 0x4000 873 # define SSOP_TABPAGES 0x8000 874 # define SSOP_TERMINAL 0x10000 875 # define SSOP_SKIP_RTP 0x20000 876 #endif 877 EXTERN char_u *p_sh; // 'shell' 878 EXTERN char_u *p_shcf; // 'shellcmdflag' 879 #ifdef FEAT_QUICKFIX 880 EXTERN char_u *p_sp; // 'shellpipe' 881 #endif 882 EXTERN char_u *p_shq; // 'shellquote' 883 EXTERN char_u *p_sxq; // 'shellxquote' 884 EXTERN char_u *p_sxe; // 'shellxescape' 885 EXTERN char_u *p_srr; // 'shellredir' 886 #ifdef AMIGA 887 EXTERN long p_st; // 'shelltype' 888 #endif 889 EXTERN int p_stmp; // 'shelltemp' 890 #ifdef BACKSLASH_IN_FILENAME 891 EXTERN int p_ssl; // 'shellslash' 892 #endif 893 #ifdef FEAT_STL_OPT 894 EXTERN char_u *p_stl; // 'statusline' 895 #endif 896 EXTERN int p_sr; // 'shiftround' 897 EXTERN long p_sw; // 'shiftwidth' 898 EXTERN char_u *p_shm; // 'shortmess' 899 EXTERN int p_sn; // 'shortname' 900 #ifdef FEAT_LINEBREAK 901 EXTERN char_u *p_sbr; // 'showbreak' 902 #endif 903 #ifdef FEAT_CMDL_INFO 904 EXTERN int p_sc; // 'showcmd' 905 #endif 906 EXTERN int p_sft; // 'showfulltag' 907 EXTERN int p_sm; // 'showmatch' 908 EXTERN int p_smd; // 'showmode' 909 EXTERN long p_ss; // 'sidescroll' 910 EXTERN long p_siso; // 'sidescrolloff' 911 EXTERN int p_scs; // 'smartcase' 912 #ifdef FEAT_SMARTINDENT 913 EXTERN int p_si; // 'smartindent' 914 #endif 915 EXTERN int p_sta; // 'smarttab' 916 EXTERN long p_sts; // 'softtabstop' 917 EXTERN int p_sb; // 'splitbelow' 918 #if defined(FEAT_SEARCHPATH) 919 EXTERN char_u *p_sua; // 'suffixesadd' 920 #endif 921 EXTERN int p_swf; // 'swapfile' 922 #ifdef FEAT_SYN_HL 923 EXTERN long p_smc; // 'synmaxcol' 924 #endif 925 EXTERN long p_tpm; // 'tabpagemax' 926 #ifdef FEAT_STL_OPT 927 EXTERN char_u *p_tal; // 'tabline' 928 #endif 929 #ifdef FEAT_EVAL 930 EXTERN char_u *p_tfu; // 'tagfunc' 931 #endif 932 #ifdef FEAT_SPELL 933 EXTERN char_u *p_spc; // 'spellcapcheck' 934 EXTERN char_u *p_spf; // 'spellfile' 935 EXTERN char_u *p_spl; // 'spelllang' 936 EXTERN char_u *p_spo; // 'spelloptions' 937 EXTERN char_u *p_sps; // 'spellsuggest' 938 #endif 939 EXTERN int p_spr; // 'splitright' 940 EXTERN int p_sol; // 'startofline' 941 EXTERN char_u *p_su; // 'suffixes' 942 EXTERN char_u *p_sws; // 'swapsync' 943 EXTERN char_u *p_swb; // 'switchbuf' 944 EXTERN unsigned swb_flags; 945 // Keep in sync with p_swb_values in optionstr.c 946 #define SWB_USEOPEN 0x001 947 #define SWB_USETAB 0x002 948 #define SWB_SPLIT 0x004 949 #define SWB_NEWTAB 0x008 950 #define SWB_VSPLIT 0x010 951 #define SWB_USELAST 0x020 952 EXTERN char_u *p_syn; // 'syntax' 953 EXTERN long p_ts; // 'tabstop' 954 EXTERN int p_tbs; // 'tagbsearch' 955 EXTERN char_u *p_tc; // 'tagcase' 956 EXTERN unsigned tc_flags; // flags from 'tagcase' 957 #define TC_FOLLOWIC 0x01 958 #define TC_IGNORE 0x02 959 #define TC_MATCH 0x04 960 #define TC_FOLLOWSCS 0x08 961 #define TC_SMART 0x10 962 EXTERN long p_tl; // 'taglength' 963 EXTERN int p_tr; // 'tagrelative' 964 EXTERN char_u *p_tags; // 'tags' 965 EXTERN int p_tgst; // 'tagstack' 966 #if defined(DYNAMIC_TCL) 967 EXTERN char_u *p_tcldll; // 'tcldll' 968 #endif 969 #ifdef FEAT_ARABIC 970 EXTERN int p_tbidi; // 'termbidi' 971 #endif 972 EXTERN char_u *p_tenc; // 'termencoding' 973 #ifdef FEAT_TERMGUICOLORS 974 EXTERN int p_tgc; // 'termguicolors' 975 #endif 976 #ifdef FEAT_TERMINAL 977 EXTERN long p_twsl; // 'termwinscroll' 978 #endif 979 #if defined(MSWIN) && defined(FEAT_TERMINAL) 980 EXTERN char_u *p_twt; // 'termwintype' 981 #endif 982 EXTERN int p_terse; // 'terse' 983 EXTERN int p_ta; // 'textauto' 984 EXTERN int p_tx; // 'textmode' 985 EXTERN long p_tw; // 'textwidth' 986 EXTERN int p_to; // 'tildeop' 987 EXTERN int p_timeout; // 'timeout' 988 EXTERN long p_tm; // 'timeoutlen' 989 #ifdef FEAT_TITLE 990 EXTERN int p_title; // 'title' 991 EXTERN long p_titlelen; // 'titlelen' 992 EXTERN char_u *p_titleold; // 'titleold' 993 EXTERN char_u *p_titlestring; // 'titlestring' 994 #endif 995 EXTERN char_u *p_tsr; // 'thesaurus' 996 EXTERN int p_ttimeout; // 'ttimeout' 997 EXTERN long p_ttm; // 'ttimeoutlen' 998 EXTERN int p_tbi; // 'ttybuiltin' 999 EXTERN int p_tf; // 'ttyfast' 1000 #if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN) 1001 EXTERN char_u *p_toolbar; // 'toolbar' 1002 EXTERN unsigned toolbar_flags; 1003 # define TOOLBAR_TEXT 0x01 1004 # define TOOLBAR_ICONS 0x02 1005 # define TOOLBAR_TOOLTIPS 0x04 1006 # define TOOLBAR_HORIZ 0x08 1007 #endif 1008 #if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK) 1009 EXTERN char_u *p_tbis; // 'toolbariconsize' 1010 EXTERN unsigned tbis_flags; 1011 # define TBIS_TINY 0x01 1012 # define TBIS_SMALL 0x02 1013 # define TBIS_MEDIUM 0x04 1014 # define TBIS_LARGE 0x08 1015 # define TBIS_HUGE 0x10 1016 # define TBIS_GIANT 0x20 1017 #endif 1018 EXTERN long p_ttyscroll; // 'ttyscroll' 1019 #if defined(UNIX) || defined(VMS) 1020 EXTERN char_u *p_ttym; // 'ttymouse' 1021 EXTERN unsigned ttym_flags; 1022 # define TTYM_XTERM 0x01 1023 # define TTYM_XTERM2 0x02 1024 # define TTYM_DEC 0x04 1025 # define TTYM_NETTERM 0x08 1026 # define TTYM_JSBTERM 0x10 1027 # define TTYM_PTERM 0x20 1028 # define TTYM_URXVT 0x40 1029 # define TTYM_SGR 0x80 1030 #endif 1031 EXTERN char_u *p_udir; // 'undodir' 1032 #ifdef FEAT_PERSISTENT_UNDO 1033 EXTERN int p_udf; // 'undofile' 1034 #endif 1035 EXTERN long p_ul; // 'undolevels' 1036 EXTERN long p_ur; // 'undoreload' 1037 EXTERN long p_uc; // 'updatecount' 1038 EXTERN long p_ut; // 'updatetime' 1039 #ifdef FEAT_VARTABS 1040 EXTERN char_u *p_vsts; // 'varsofttabstop' 1041 EXTERN char_u *p_vts; // 'vartabstop' 1042 #endif 1043 #ifdef FEAT_VIMINFO 1044 EXTERN char_u *p_viminfo; // 'viminfo' 1045 EXTERN char_u *p_viminfofile; // 'viminfofile' 1046 #endif 1047 #ifdef FEAT_SESSION 1048 EXTERN char_u *p_vdir; // 'viewdir' 1049 EXTERN char_u *p_vop; // 'viewoptions' 1050 EXTERN unsigned vop_flags; // uses SSOP_ flags 1051 #endif 1052 EXTERN int p_vb; // 'visualbell' 1053 EXTERN char_u *p_ve; // 'virtualedit' 1054 EXTERN unsigned ve_flags; 1055 #define VE_BLOCK 5 // includes "all" 1056 #define VE_INSERT 6 // includes "all" 1057 #define VE_ALL 4 1058 #define VE_ONEMORE 8 1059 #define VE_NONE 16 // "none" 1060 #define VE_NONEU 32 // "NONE" 1061 EXTERN long p_verbose; // 'verbose' 1062 #ifdef IN_OPTION_C 1063 char_u *p_vfile = (char_u *)""; // used before options are initialized 1064 #else 1065 extern char_u *p_vfile; // 'verbosefile' 1066 #endif 1067 EXTERN int p_warn; // 'warn' 1068 EXTERN char_u *p_wop; // 'wildoptions' 1069 EXTERN long p_window; // 'window' 1070 #if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) || defined(LINT) \ 1071 || defined (FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON) 1072 #define FEAT_WAK 1073 EXTERN char_u *p_wak; // 'winaltkeys' 1074 #endif 1075 #ifdef FEAT_WILDIGN 1076 EXTERN char_u *p_wig; // 'wildignore' 1077 #endif 1078 EXTERN int p_wiv; // 'weirdinvert' 1079 EXTERN char_u *p_ww; // 'whichwrap' 1080 EXTERN long p_wc; // 'wildchar' 1081 EXTERN long p_wcm; // 'wildcharm' 1082 EXTERN long p_wic; // 'wildignorecase' 1083 EXTERN char_u *p_wim; // 'wildmode' 1084 #ifdef FEAT_WILDMENU 1085 EXTERN int p_wmnu; // 'wildmenu' 1086 #endif 1087 EXTERN long p_wh; // 'winheight' 1088 EXTERN long p_wmh; // 'winminheight' 1089 EXTERN long p_wmw; // 'winminwidth' 1090 EXTERN long p_wiw; // 'winwidth' 1091 #if defined(MSWIN) && defined(FEAT_TERMINAL) 1092 EXTERN char_u *p_winptydll; // 'winptydll' 1093 #endif 1094 EXTERN long p_wm; // 'wrapmargin' 1095 EXTERN int p_ws; // 'wrapscan' 1096 EXTERN int p_write; // 'write' 1097 EXTERN int p_wa; // 'writeany' 1098 EXTERN int p_wb; // 'writebackup' 1099 EXTERN long p_wd; // 'writedelay' 1100 1101 /* 1102 * "indir" values for buffer-local options. 1103 * These need to be defined globally, so that the BV_COUNT can be used with 1104 * b_p_scriptID[]. 1105 */ 1106 enum 1107 { 1108 BV_AI = 0 1109 , BV_AR 1110 , BV_BH 1111 , BV_BKC 1112 , BV_BT 1113 #ifdef FEAT_QUICKFIX 1114 , BV_EFM 1115 , BV_GP 1116 , BV_MP 1117 #endif 1118 , BV_BIN 1119 , BV_BL 1120 , BV_BOMB 1121 , BV_CI 1122 #ifdef FEAT_CINDENT 1123 , BV_CIN 1124 , BV_CINK 1125 , BV_CINO 1126 #endif 1127 #if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT) 1128 , BV_CINW 1129 #endif 1130 , BV_CM 1131 #ifdef FEAT_FOLDING 1132 , BV_CMS 1133 #endif 1134 , BV_COM 1135 , BV_CPT 1136 , BV_DICT 1137 , BV_TSR 1138 #ifdef BACKSLASH_IN_FILENAME 1139 , BV_CSL 1140 #endif 1141 #ifdef FEAT_COMPL_FUNC 1142 , BV_CFU 1143 #endif 1144 #ifdef FEAT_FIND_ID 1145 , BV_DEF 1146 , BV_INC 1147 #endif 1148 , BV_EOL 1149 , BV_FIXEOL 1150 , BV_EP 1151 , BV_ET 1152 , BV_FENC 1153 , BV_FP 1154 #ifdef FEAT_EVAL 1155 , BV_BEXPR 1156 , BV_FEX 1157 #endif 1158 , BV_FF 1159 , BV_FLP 1160 , BV_FO 1161 , BV_FT 1162 , BV_IMI 1163 , BV_IMS 1164 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) 1165 , BV_INDE 1166 , BV_INDK 1167 #endif 1168 #if defined(FEAT_FIND_ID) && defined(FEAT_EVAL) 1169 , BV_INEX 1170 #endif 1171 , BV_INF 1172 , BV_ISK 1173 #ifdef FEAT_CRYPT 1174 , BV_KEY 1175 #endif 1176 #ifdef FEAT_KEYMAP 1177 , BV_KMAP 1178 #endif 1179 , BV_KP 1180 #ifdef FEAT_LISP 1181 , BV_LISP 1182 , BV_LW 1183 #endif 1184 , BV_MENC 1185 , BV_MA 1186 , BV_ML 1187 , BV_MOD 1188 , BV_MPS 1189 , BV_NF 1190 #ifdef FEAT_COMPL_FUNC 1191 , BV_OFU 1192 #endif 1193 , BV_PATH 1194 , BV_PI 1195 #ifdef FEAT_TEXTOBJ 1196 , BV_QE 1197 #endif 1198 , BV_RO 1199 #ifdef FEAT_SMARTINDENT 1200 , BV_SI 1201 #endif 1202 , BV_SN 1203 #ifdef FEAT_SYN_HL 1204 , BV_SMC 1205 , BV_SYN 1206 #endif 1207 #ifdef FEAT_SPELL 1208 , BV_SPC 1209 , BV_SPF 1210 , BV_SPL 1211 , BV_SPO 1212 #endif 1213 , BV_STS 1214 #ifdef FEAT_SEARCHPATH 1215 , BV_SUA 1216 #endif 1217 , BV_SW 1218 , BV_SWF 1219 #ifdef FEAT_EVAL 1220 , BV_TFU 1221 #endif 1222 , BV_TAGS 1223 , BV_TC 1224 #ifdef FEAT_COMPL_FUNC 1225 , BV_TSRFU 1226 #endif 1227 , BV_TS 1228 , BV_TW 1229 , BV_TX 1230 , BV_UDF 1231 , BV_UL 1232 , BV_WM 1233 #ifdef FEAT_TERMINAL 1234 , BV_TWSL 1235 #endif 1236 #ifdef FEAT_VARTABS 1237 , BV_VSTS 1238 , BV_VTS 1239 #endif 1240 , BV_VE 1241 , BV_COUNT // must be the last one 1242 }; 1243 1244 /* 1245 * "indir" values for window-local options. 1246 * These need to be defined globally, so that the WV_COUNT can be used in the 1247 * window structure. 1248 */ 1249 enum 1250 { 1251 WV_LIST = 0 1252 , WV_LCS 1253 #ifdef FEAT_ARABIC 1254 , WV_ARAB 1255 #endif 1256 #ifdef FEAT_CONCEAL 1257 , WV_COCU 1258 , WV_COLE 1259 #endif 1260 #ifdef FEAT_TERMINAL 1261 , WV_TWK 1262 , WV_TWS 1263 #endif 1264 , WV_CRBIND 1265 #ifdef FEAT_LINEBREAK 1266 , WV_BRI 1267 , WV_BRIOPT 1268 #endif 1269 , WV_WCR 1270 #ifdef FEAT_DIFF 1271 , WV_DIFF 1272 #endif 1273 #ifdef FEAT_FOLDING 1274 , WV_FDC 1275 , WV_FEN 1276 , WV_FDI 1277 , WV_FDL 1278 , WV_FDM 1279 , WV_FML 1280 , WV_FDN 1281 # ifdef FEAT_EVAL 1282 , WV_FDE 1283 , WV_FDT 1284 # endif 1285 , WV_FMR 1286 #endif 1287 #ifdef FEAT_LINEBREAK 1288 , WV_LBR 1289 #endif 1290 , WV_NU 1291 , WV_RNU 1292 #ifdef FEAT_LINEBREAK 1293 , WV_NUW 1294 #endif 1295 #if defined(FEAT_QUICKFIX) 1296 , WV_PVW 1297 #endif 1298 #ifdef FEAT_RIGHTLEFT 1299 , WV_RL 1300 , WV_RLC 1301 #endif 1302 , WV_SCBIND 1303 , WV_SCROLL 1304 , WV_SISO 1305 , WV_SO 1306 #ifdef FEAT_SPELL 1307 , WV_SPELL 1308 #endif 1309 #ifdef FEAT_SYN_HL 1310 , WV_CUC 1311 , WV_CUL 1312 , WV_CULOPT 1313 , WV_CC 1314 #endif 1315 #ifdef FEAT_LINEBREAK 1316 , WV_SBR 1317 #endif 1318 #ifdef FEAT_STL_OPT 1319 , WV_STL 1320 #endif 1321 , WV_WFH 1322 , WV_WFW 1323 , WV_WRAP 1324 #ifdef FEAT_SIGNS 1325 , WV_SCL 1326 #endif 1327 , WV_COUNT // must be the last one 1328 }; 1329 1330 // Value for b_p_ul indicating the global value must be used. 1331 #define NO_LOCAL_UNDOLEVEL -123456 1332 1333 #endif // _OPTION_H_ 1334