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 EXTERN int p_icon; // 'icon' 661 EXTERN char_u *p_iconstring; // 'iconstring' 662 EXTERN int p_ic; // 'ignorecase' 663 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) 664 EXTERN char_u *p_imak; // 'imactivatekey' 665 #define IM_ON_THE_SPOT 0L 666 #define IM_OVER_THE_SPOT 1L 667 EXTERN long p_imst; // 'imstyle' 668 #endif 669 #if defined(FEAT_EVAL) 670 EXTERN char_u *p_imaf; // 'imactivatefunc' 671 EXTERN char_u *p_imsf; // 'imstatusfunc' 672 #endif 673 EXTERN int p_imcmdline; // 'imcmdline' 674 EXTERN int p_imdisable; // 'imdisable' 675 EXTERN long p_iminsert; // 'iminsert' 676 EXTERN long p_imsearch; // 'imsearch' 677 EXTERN int p_inf; // 'infercase' 678 #if defined(FEAT_FIND_ID) && defined(FEAT_EVAL) 679 EXTERN char_u *p_inex; // 'includeexpr' 680 #endif 681 EXTERN int p_is; // 'incsearch' 682 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) 683 EXTERN char_u *p_inde; // 'indentexpr' 684 EXTERN char_u *p_indk; // 'indentkeys' 685 #endif 686 EXTERN int p_im; // 'insertmode' 687 EXTERN char_u *p_isf; // 'isfname' 688 EXTERN char_u *p_isi; // 'isident' 689 EXTERN char_u *p_isk; // 'iskeyword' 690 EXTERN char_u *p_isp; // 'isprint' 691 EXTERN int p_js; // 'joinspaces' 692 #ifdef FEAT_CRYPT 693 EXTERN char_u *p_key; // 'key' 694 #endif 695 #ifdef FEAT_KEYMAP 696 EXTERN char_u *p_keymap; // 'keymap' 697 #endif 698 EXTERN char_u *p_kp; // 'keywordprg' 699 EXTERN char_u *p_km; // 'keymodel' 700 #ifdef FEAT_LANGMAP 701 EXTERN char_u *p_langmap; // 'langmap' 702 EXTERN int p_lnr; // 'langnoremap' 703 EXTERN int p_lrm; // 'langremap' 704 #endif 705 #if defined(FEAT_MENU) && defined(FEAT_MULTI_LANG) 706 EXTERN char_u *p_lm; // 'langmenu' 707 #endif 708 #ifdef FEAT_GUI 709 EXTERN long p_linespace; // 'linespace' 710 #endif 711 #ifdef FEAT_LISP 712 EXTERN int p_lisp; // 'lisp' 713 EXTERN char_u *p_lispwords; // 'lispwords' 714 #endif 715 EXTERN long p_ls; // 'laststatus' 716 EXTERN long p_stal; // 'showtabline' 717 EXTERN char_u *p_lcs; // 'listchars' 718 719 EXTERN int p_lz; // 'lazyredraw' 720 EXTERN int p_lpl; // 'loadplugins' 721 #if defined(DYNAMIC_LUA) 722 EXTERN char_u *p_luadll; // 'luadll' 723 #endif 724 EXTERN int p_magic; // 'magic' 725 EXTERN char_u *p_menc; // 'makeencoding' 726 #ifdef FEAT_QUICKFIX 727 EXTERN char_u *p_mef; // 'makeef' 728 EXTERN char_u *p_mp; // 'makeprg' 729 #endif 730 EXTERN char_u *p_mps; // 'matchpairs' 731 #ifdef FEAT_SIGNS 732 EXTERN char_u *p_scl; // signcolumn 733 #endif 734 #ifdef FEAT_SYN_HL 735 EXTERN char_u *p_cc; // 'colorcolumn' 736 EXTERN int p_cc_cols[256]; // array for 'colorcolumn' columns 737 #endif 738 EXTERN long p_mat; // 'matchtime' 739 EXTERN long p_mco; // 'maxcombine' 740 #ifdef FEAT_EVAL 741 EXTERN long p_mfd; // 'maxfuncdepth' 742 #endif 743 EXTERN long p_mmd; // 'maxmapdepth' 744 EXTERN long p_mm; // 'maxmem' 745 EXTERN long p_mmp; // 'maxmempattern' 746 EXTERN long p_mmt; // 'maxmemtot' 747 #ifdef FEAT_MENU 748 EXTERN long p_mis; // 'menuitems' 749 #endif 750 #ifdef FEAT_SPELL 751 EXTERN char_u *p_msm; // 'mkspellmem' 752 #endif 753 EXTERN int p_ml; // 'modeline' 754 EXTERN long p_mle; // 'modelineexpr' 755 EXTERN long p_mls; // 'modelines' 756 EXTERN int p_ma; // 'modifiable' 757 EXTERN int p_mod; // 'modified' 758 EXTERN char_u *p_mouse; // 'mouse' 759 #ifdef FEAT_GUI 760 EXTERN int p_mousef; // 'mousefocus' 761 EXTERN int p_mh; // 'mousehide' 762 #endif 763 EXTERN char_u *p_mousem; // 'mousemodel' 764 EXTERN long p_mouset; // 'mousetime' 765 EXTERN int p_more; // 'more' 766 #ifdef FEAT_MZSCHEME 767 EXTERN long p_mzq; // 'mzquantum 768 # if defined(DYNAMIC_MZSCHEME) 769 EXTERN char_u *p_mzschemedll; // 'mzschemedll' 770 EXTERN char_u *p_mzschemegcdll; // 'mzschemegcdll' 771 # endif 772 #endif 773 EXTERN char_u *p_nf; // 'nrformats' 774 #if defined(MSWIN) 775 EXTERN int p_odev; // 'opendevice' 776 #endif 777 EXTERN char_u *p_opfunc; // 'operatorfunc' 778 EXTERN char_u *p_para; // 'paragraphs' 779 EXTERN int p_paste; // 'paste' 780 EXTERN char_u *p_pt; // 'pastetoggle' 781 #if defined(FEAT_EVAL) && defined(FEAT_DIFF) 782 EXTERN char_u *p_pex; // 'patchexpr' 783 #endif 784 EXTERN char_u *p_pm; // 'patchmode' 785 EXTERN char_u *p_path; // 'path' 786 #ifdef FEAT_SEARCHPATH 787 EXTERN char_u *p_cdpath; // 'cdpath' 788 #endif 789 #if defined(DYNAMIC_PERL) 790 EXTERN char_u *p_perldll; // 'perldll' 791 #endif 792 EXTERN int p_pi; // 'preserveindent' 793 #if defined(DYNAMIC_PYTHON3) 794 EXTERN char_u *p_py3dll; // 'pythonthreedll' 795 #endif 796 #ifdef FEAT_PYTHON3 797 EXTERN char_u *p_py3home; // 'pythonthreehome' 798 #endif 799 #if defined(DYNAMIC_PYTHON) 800 EXTERN char_u *p_pydll; // 'pythondll' 801 #endif 802 #ifdef FEAT_PYTHON 803 EXTERN char_u *p_pyhome; // 'pythonhome' 804 #endif 805 #if defined(FEAT_PYTHON) || defined(FEAT_PYTHON3) 806 EXTERN long p_pyx; // 'pyxversion' 807 #endif 808 #ifdef FEAT_TEXTOBJ 809 EXTERN char_u *p_qe; // 'quoteescape' 810 #endif 811 EXTERN int p_ro; // 'readonly' 812 #ifdef FEAT_RELTIME 813 EXTERN long p_rdt; // 'redrawtime' 814 #endif 815 EXTERN int p_remap; // 'remap' 816 EXTERN long p_re; // 'regexpengine' 817 #ifdef FEAT_RENDER_OPTIONS 818 EXTERN char_u *p_rop; // 'renderoptions' 819 #endif 820 EXTERN long p_report; // 'report' 821 #if defined(FEAT_QUICKFIX) 822 EXTERN long p_pvh; // 'previewheight' 823 #endif 824 #ifdef MSWIN 825 EXTERN int p_rs; // 'restorescreen' 826 #endif 827 #ifdef FEAT_RIGHTLEFT 828 EXTERN int p_ari; // 'allowrevins' 829 EXTERN int p_ri; // 'revins' 830 #endif 831 #if defined(DYNAMIC_RUBY) 832 EXTERN char_u *p_rubydll; // 'rubydll' 833 #endif 834 #ifdef FEAT_CMDL_INFO 835 EXTERN int p_ru; // 'ruler' 836 #endif 837 #ifdef FEAT_STL_OPT 838 EXTERN char_u *p_ruf; // 'rulerformat' 839 #endif 840 EXTERN char_u *p_pp; // 'packpath' 841 EXTERN char_u *p_qftf; // 'quickfixtextfunc' 842 EXTERN char_u *p_rtp; // 'runtimepath' 843 EXTERN long p_sj; // 'scrolljump' 844 #if defined(MSWIN) && defined(FEAT_GUI) 845 EXTERN int p_scf; // 'scrollfocus' 846 #endif 847 EXTERN long p_so; // 'scrolloff' 848 EXTERN char_u *p_sbo; // 'scrollopt' 849 EXTERN char_u *p_sections; // 'sections' 850 EXTERN int p_secure; // 'secure' 851 EXTERN char_u *p_sel; // 'selection' 852 EXTERN char_u *p_slm; // 'selectmode' 853 #ifdef FEAT_SESSION 854 EXTERN char_u *p_ssop; // 'sessionoptions' 855 EXTERN unsigned ssop_flags; 856 # define SSOP_BUFFERS 0x001 857 # define SSOP_WINPOS 0x002 858 # define SSOP_RESIZE 0x004 859 # define SSOP_WINSIZE 0x008 860 # define SSOP_LOCALOPTIONS 0x010 861 # define SSOP_OPTIONS 0x020 862 # define SSOP_HELP 0x040 863 # define SSOP_BLANK 0x080 864 # define SSOP_GLOBALS 0x100 865 # define SSOP_SLASH 0x200 866 # define SSOP_UNIX 0x400 867 # define SSOP_SESDIR 0x800 868 # define SSOP_CURDIR 0x1000 869 # define SSOP_FOLDS 0x2000 870 # define SSOP_CURSOR 0x4000 871 # define SSOP_TABPAGES 0x8000 872 # define SSOP_TERMINAL 0x10000 873 # define SSOP_SKIP_RTP 0x20000 874 #endif 875 EXTERN char_u *p_sh; // 'shell' 876 EXTERN char_u *p_shcf; // 'shellcmdflag' 877 #ifdef FEAT_QUICKFIX 878 EXTERN char_u *p_sp; // 'shellpipe' 879 #endif 880 EXTERN char_u *p_shq; // 'shellquote' 881 EXTERN char_u *p_sxq; // 'shellxquote' 882 EXTERN char_u *p_sxe; // 'shellxescape' 883 EXTERN char_u *p_srr; // 'shellredir' 884 #ifdef AMIGA 885 EXTERN long p_st; // 'shelltype' 886 #endif 887 EXTERN int p_stmp; // 'shelltemp' 888 #ifdef BACKSLASH_IN_FILENAME 889 EXTERN int p_ssl; // 'shellslash' 890 #endif 891 #ifdef FEAT_STL_OPT 892 EXTERN char_u *p_stl; // 'statusline' 893 #endif 894 EXTERN int p_sr; // 'shiftround' 895 EXTERN long p_sw; // 'shiftwidth' 896 EXTERN char_u *p_shm; // 'shortmess' 897 EXTERN int p_sn; // 'shortname' 898 #ifdef FEAT_LINEBREAK 899 EXTERN char_u *p_sbr; // 'showbreak' 900 #endif 901 #ifdef FEAT_CMDL_INFO 902 EXTERN int p_sc; // 'showcmd' 903 #endif 904 EXTERN int p_sft; // 'showfulltag' 905 EXTERN int p_sm; // 'showmatch' 906 EXTERN int p_smd; // 'showmode' 907 EXTERN long p_ss; // 'sidescroll' 908 EXTERN long p_siso; // 'sidescrolloff' 909 EXTERN int p_scs; // 'smartcase' 910 #ifdef FEAT_SMARTINDENT 911 EXTERN int p_si; // 'smartindent' 912 #endif 913 EXTERN int p_sta; // 'smarttab' 914 EXTERN long p_sts; // 'softtabstop' 915 EXTERN int p_sb; // 'splitbelow' 916 #if defined(FEAT_SEARCHPATH) 917 EXTERN char_u *p_sua; // 'suffixesadd' 918 #endif 919 EXTERN int p_swf; // 'swapfile' 920 #ifdef FEAT_SYN_HL 921 EXTERN long p_smc; // 'synmaxcol' 922 #endif 923 EXTERN long p_tpm; // 'tabpagemax' 924 #ifdef FEAT_STL_OPT 925 EXTERN char_u *p_tal; // 'tabline' 926 #endif 927 #ifdef FEAT_EVAL 928 EXTERN char_u *p_tfu; // 'tagfunc' 929 #endif 930 #ifdef FEAT_SPELL 931 EXTERN char_u *p_spc; // 'spellcapcheck' 932 EXTERN char_u *p_spf; // 'spellfile' 933 EXTERN char_u *p_spl; // 'spelllang' 934 EXTERN char_u *p_spo; // 'spelloptions' 935 EXTERN char_u *p_sps; // 'spellsuggest' 936 #endif 937 EXTERN int p_spr; // 'splitright' 938 EXTERN int p_sol; // 'startofline' 939 EXTERN char_u *p_su; // 'suffixes' 940 EXTERN char_u *p_sws; // 'swapsync' 941 EXTERN char_u *p_swb; // 'switchbuf' 942 EXTERN unsigned swb_flags; 943 // Keep in sync with p_swb_values in optionstr.c 944 #define SWB_USEOPEN 0x001 945 #define SWB_USETAB 0x002 946 #define SWB_SPLIT 0x004 947 #define SWB_NEWTAB 0x008 948 #define SWB_VSPLIT 0x010 949 #define SWB_USELAST 0x020 950 EXTERN char_u *p_syn; // 'syntax' 951 EXTERN long p_ts; // 'tabstop' 952 EXTERN int p_tbs; // 'tagbsearch' 953 EXTERN char_u *p_tc; // 'tagcase' 954 EXTERN unsigned tc_flags; // flags from 'tagcase' 955 #define TC_FOLLOWIC 0x01 956 #define TC_IGNORE 0x02 957 #define TC_MATCH 0x04 958 #define TC_FOLLOWSCS 0x08 959 #define TC_SMART 0x10 960 EXTERN long p_tl; // 'taglength' 961 EXTERN int p_tr; // 'tagrelative' 962 EXTERN char_u *p_tags; // 'tags' 963 EXTERN int p_tgst; // 'tagstack' 964 #if defined(DYNAMIC_TCL) 965 EXTERN char_u *p_tcldll; // 'tcldll' 966 #endif 967 #ifdef FEAT_ARABIC 968 EXTERN int p_tbidi; // 'termbidi' 969 #endif 970 EXTERN char_u *p_tenc; // 'termencoding' 971 #ifdef FEAT_TERMGUICOLORS 972 EXTERN int p_tgc; // 'termguicolors' 973 #endif 974 #ifdef FEAT_TERMINAL 975 EXTERN long p_twsl; // 'termwinscroll' 976 #endif 977 #if defined(MSWIN) && defined(FEAT_TERMINAL) 978 EXTERN char_u *p_twt; // 'termwintype' 979 #endif 980 EXTERN int p_terse; // 'terse' 981 EXTERN int p_ta; // 'textauto' 982 EXTERN int p_tx; // 'textmode' 983 EXTERN long p_tw; // 'textwidth' 984 EXTERN int p_to; // 'tildeop' 985 EXTERN int p_timeout; // 'timeout' 986 EXTERN long p_tm; // 'timeoutlen' 987 EXTERN int p_title; // 'title' 988 EXTERN long p_titlelen; // 'titlelen' 989 EXTERN char_u *p_titleold; // 'titleold' 990 EXTERN char_u *p_titlestring; // 'titlestring' 991 EXTERN char_u *p_tsr; // 'thesaurus' 992 EXTERN int p_ttimeout; // 'ttimeout' 993 EXTERN long p_ttm; // 'ttimeoutlen' 994 EXTERN int p_tbi; // 'ttybuiltin' 995 EXTERN int p_tf; // 'ttyfast' 996 #if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_MSWIN) 997 EXTERN char_u *p_toolbar; // 'toolbar' 998 EXTERN unsigned toolbar_flags; 999 # define TOOLBAR_TEXT 0x01 1000 # define TOOLBAR_ICONS 0x02 1001 # define TOOLBAR_TOOLTIPS 0x04 1002 # define TOOLBAR_HORIZ 0x08 1003 #endif 1004 #if defined(FEAT_TOOLBAR) && defined(FEAT_GUI_GTK) 1005 EXTERN char_u *p_tbis; // 'toolbariconsize' 1006 EXTERN unsigned tbis_flags; 1007 # define TBIS_TINY 0x01 1008 # define TBIS_SMALL 0x02 1009 # define TBIS_MEDIUM 0x04 1010 # define TBIS_LARGE 0x08 1011 # define TBIS_HUGE 0x10 1012 # define TBIS_GIANT 0x20 1013 #endif 1014 EXTERN long p_ttyscroll; // 'ttyscroll' 1015 #if defined(UNIX) || defined(VMS) 1016 EXTERN char_u *p_ttym; // 'ttymouse' 1017 EXTERN unsigned ttym_flags; 1018 # define TTYM_XTERM 0x01 1019 # define TTYM_XTERM2 0x02 1020 # define TTYM_DEC 0x04 1021 # define TTYM_NETTERM 0x08 1022 # define TTYM_JSBTERM 0x10 1023 # define TTYM_PTERM 0x20 1024 # define TTYM_URXVT 0x40 1025 # define TTYM_SGR 0x80 1026 #endif 1027 EXTERN char_u *p_udir; // 'undodir' 1028 #ifdef FEAT_PERSISTENT_UNDO 1029 EXTERN int p_udf; // 'undofile' 1030 #endif 1031 EXTERN long p_ul; // 'undolevels' 1032 EXTERN long p_ur; // 'undoreload' 1033 EXTERN long p_uc; // 'updatecount' 1034 EXTERN long p_ut; // 'updatetime' 1035 #ifdef FEAT_VARTABS 1036 EXTERN char_u *p_vsts; // 'varsofttabstop' 1037 EXTERN char_u *p_vts; // 'vartabstop' 1038 #endif 1039 #ifdef FEAT_VIMINFO 1040 EXTERN char_u *p_viminfo; // 'viminfo' 1041 EXTERN char_u *p_viminfofile; // 'viminfofile' 1042 #endif 1043 #ifdef FEAT_SESSION 1044 EXTERN char_u *p_vdir; // 'viewdir' 1045 EXTERN char_u *p_vop; // 'viewoptions' 1046 EXTERN unsigned vop_flags; // uses SSOP_ flags 1047 #endif 1048 EXTERN int p_vb; // 'visualbell' 1049 EXTERN char_u *p_ve; // 'virtualedit' 1050 EXTERN unsigned ve_flags; 1051 #define VE_BLOCK 5 // includes "all" 1052 #define VE_INSERT 6 // includes "all" 1053 #define VE_ALL 4 1054 #define VE_ONEMORE 8 1055 #define VE_NONE 16 // "none" 1056 #define VE_NONEU 32 // "NONE" 1057 EXTERN long p_verbose; // 'verbose' 1058 #ifdef IN_OPTION_C 1059 char_u *p_vfile = (char_u *)""; // used before options are initialized 1060 #else 1061 extern char_u *p_vfile; // 'verbosefile' 1062 #endif 1063 EXTERN int p_warn; // 'warn' 1064 EXTERN char_u *p_wop; // 'wildoptions' 1065 EXTERN long p_window; // 'window' 1066 #if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) || defined(LINT) \ 1067 || defined (FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON) 1068 #define FEAT_WAK 1069 EXTERN char_u *p_wak; // 'winaltkeys' 1070 #endif 1071 #ifdef FEAT_WILDIGN 1072 EXTERN char_u *p_wig; // 'wildignore' 1073 #endif 1074 EXTERN int p_wiv; // 'weirdinvert' 1075 EXTERN char_u *p_ww; // 'whichwrap' 1076 EXTERN long p_wc; // 'wildchar' 1077 EXTERN long p_wcm; // 'wildcharm' 1078 EXTERN long p_wic; // 'wildignorecase' 1079 EXTERN char_u *p_wim; // 'wildmode' 1080 #ifdef FEAT_WILDMENU 1081 EXTERN int p_wmnu; // 'wildmenu' 1082 #endif 1083 EXTERN long p_wh; // 'winheight' 1084 EXTERN long p_wmh; // 'winminheight' 1085 EXTERN long p_wmw; // 'winminwidth' 1086 EXTERN long p_wiw; // 'winwidth' 1087 #if defined(MSWIN) && defined(FEAT_TERMINAL) 1088 EXTERN char_u *p_winptydll; // 'winptydll' 1089 #endif 1090 EXTERN long p_wm; // 'wrapmargin' 1091 EXTERN int p_ws; // 'wrapscan' 1092 EXTERN int p_write; // 'write' 1093 EXTERN int p_wa; // 'writeany' 1094 EXTERN int p_wb; // 'writebackup' 1095 EXTERN long p_wd; // 'writedelay' 1096 1097 /* 1098 * "indir" values for buffer-local options. 1099 * These need to be defined globally, so that the BV_COUNT can be used with 1100 * b_p_scriptID[]. 1101 */ 1102 enum 1103 { 1104 BV_AI = 0 1105 , BV_AR 1106 , BV_BH 1107 , BV_BKC 1108 , BV_BT 1109 #ifdef FEAT_QUICKFIX 1110 , BV_EFM 1111 , BV_GP 1112 , BV_MP 1113 #endif 1114 , BV_BIN 1115 , BV_BL 1116 , BV_BOMB 1117 , BV_CI 1118 #ifdef FEAT_CINDENT 1119 , BV_CIN 1120 , BV_CINK 1121 , BV_CINO 1122 #endif 1123 #if defined(FEAT_SMARTINDENT) || defined(FEAT_CINDENT) 1124 , BV_CINW 1125 #endif 1126 , BV_CM 1127 #ifdef FEAT_FOLDING 1128 , BV_CMS 1129 #endif 1130 , BV_COM 1131 , BV_CPT 1132 , BV_DICT 1133 , BV_TSR 1134 #ifdef BACKSLASH_IN_FILENAME 1135 , BV_CSL 1136 #endif 1137 #ifdef FEAT_COMPL_FUNC 1138 , BV_CFU 1139 #endif 1140 #ifdef FEAT_FIND_ID 1141 , BV_DEF 1142 , BV_INC 1143 #endif 1144 , BV_EOL 1145 , BV_FIXEOL 1146 , BV_EP 1147 , BV_ET 1148 , BV_FENC 1149 , BV_FP 1150 #ifdef FEAT_EVAL 1151 , BV_BEXPR 1152 , BV_FEX 1153 #endif 1154 , BV_FF 1155 , BV_FLP 1156 , BV_FO 1157 , BV_FT 1158 , BV_IMI 1159 , BV_IMS 1160 #if defined(FEAT_CINDENT) && defined(FEAT_EVAL) 1161 , BV_INDE 1162 , BV_INDK 1163 #endif 1164 #if defined(FEAT_FIND_ID) && defined(FEAT_EVAL) 1165 , BV_INEX 1166 #endif 1167 , BV_INF 1168 , BV_ISK 1169 #ifdef FEAT_CRYPT 1170 , BV_KEY 1171 #endif 1172 #ifdef FEAT_KEYMAP 1173 , BV_KMAP 1174 #endif 1175 , BV_KP 1176 #ifdef FEAT_LISP 1177 , BV_LISP 1178 , BV_LW 1179 #endif 1180 , BV_MENC 1181 , BV_MA 1182 , BV_ML 1183 , BV_MOD 1184 , BV_MPS 1185 , BV_NF 1186 #ifdef FEAT_COMPL_FUNC 1187 , BV_OFU 1188 #endif 1189 , BV_PATH 1190 , BV_PI 1191 #ifdef FEAT_TEXTOBJ 1192 , BV_QE 1193 #endif 1194 , BV_RO 1195 #ifdef FEAT_SMARTINDENT 1196 , BV_SI 1197 #endif 1198 , BV_SN 1199 #ifdef FEAT_SYN_HL 1200 , BV_SMC 1201 , BV_SYN 1202 #endif 1203 #ifdef FEAT_SPELL 1204 , BV_SPC 1205 , BV_SPF 1206 , BV_SPL 1207 , BV_SPO 1208 #endif 1209 , BV_STS 1210 #ifdef FEAT_SEARCHPATH 1211 , BV_SUA 1212 #endif 1213 , BV_SW 1214 , BV_SWF 1215 #ifdef FEAT_EVAL 1216 , BV_TFU 1217 #endif 1218 , BV_TAGS 1219 , BV_TC 1220 #ifdef FEAT_COMPL_FUNC 1221 , BV_TSRFU 1222 #endif 1223 , BV_TS 1224 , BV_TW 1225 , BV_TX 1226 , BV_UDF 1227 , BV_UL 1228 , BV_WM 1229 #ifdef FEAT_TERMINAL 1230 , BV_TWSL 1231 #endif 1232 #ifdef FEAT_VARTABS 1233 , BV_VSTS 1234 , BV_VTS 1235 #endif 1236 , BV_VE 1237 , BV_COUNT // must be the last one 1238 }; 1239 1240 /* 1241 * "indir" values for window-local options. 1242 * These need to be defined globally, so that the WV_COUNT can be used in the 1243 * window structure. 1244 */ 1245 enum 1246 { 1247 WV_LIST = 0 1248 , WV_LCS 1249 #ifdef FEAT_ARABIC 1250 , WV_ARAB 1251 #endif 1252 #ifdef FEAT_CONCEAL 1253 , WV_COCU 1254 , WV_COLE 1255 #endif 1256 #ifdef FEAT_TERMINAL 1257 , WV_TWK 1258 , WV_TWS 1259 #endif 1260 , WV_CRBIND 1261 #ifdef FEAT_LINEBREAK 1262 , WV_BRI 1263 , WV_BRIOPT 1264 #endif 1265 , WV_WCR 1266 #ifdef FEAT_DIFF 1267 , WV_DIFF 1268 #endif 1269 #ifdef FEAT_FOLDING 1270 , WV_FDC 1271 , WV_FEN 1272 , WV_FDI 1273 , WV_FDL 1274 , WV_FDM 1275 , WV_FML 1276 , WV_FDN 1277 # ifdef FEAT_EVAL 1278 , WV_FDE 1279 , WV_FDT 1280 # endif 1281 , WV_FMR 1282 #endif 1283 #ifdef FEAT_LINEBREAK 1284 , WV_LBR 1285 #endif 1286 , WV_NU 1287 , WV_RNU 1288 #ifdef FEAT_LINEBREAK 1289 , WV_NUW 1290 #endif 1291 #if defined(FEAT_QUICKFIX) 1292 , WV_PVW 1293 #endif 1294 #ifdef FEAT_RIGHTLEFT 1295 , WV_RL 1296 , WV_RLC 1297 #endif 1298 , WV_SCBIND 1299 , WV_SCROLL 1300 , WV_SISO 1301 , WV_SO 1302 #ifdef FEAT_SPELL 1303 , WV_SPELL 1304 #endif 1305 #ifdef FEAT_SYN_HL 1306 , WV_CUC 1307 , WV_CUL 1308 , WV_CULOPT 1309 , WV_CC 1310 #endif 1311 #ifdef FEAT_LINEBREAK 1312 , WV_SBR 1313 #endif 1314 #ifdef FEAT_STL_OPT 1315 , WV_STL 1316 #endif 1317 , WV_WFH 1318 , WV_WFW 1319 , WV_WRAP 1320 #ifdef FEAT_SIGNS 1321 , WV_SCL 1322 #endif 1323 , WV_COUNT // must be the last one 1324 }; 1325 1326 // Value for b_p_ul indicating the global value must be used. 1327 #define NO_LOCAL_UNDOLEVEL -123456 1328 1329 #endif // _OPTION_H_ 1330