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