/* vi:ts=4:sw=4 * * VIM - Vi IMproved * * Code Contributions By: Bram Moolenaar mool@oce.nl * Tim Thompson twitch!tjt * Tony Andrews onecom!wldrdg!tony * G. R. (Fred) Walter watmath!watcgl!grwalter */ /* * param.h: definition of global variables for settable parameters * * EXTERN is only defined in main.c (and vim.h) */ #ifndef EXTERN # define EXTERN extern # define INIT(x) #else # ifndef INIT # define INIT(x) x # endif #endif /* * The following are actual variabables for the parameters */ EXTERN int p_ai INIT(= FALSE); /* auto-indent */ EXTERN int p_aw INIT(= FALSE); /* auto-write */ EXTERN long p_bs INIT(= 0); /* backspace over newlines in insert mode */ #if defined(COMPATIBLE) || defined(NOBACKUP) EXTERN int p_bk INIT(= FALSE); /* make backups when writing out files */ #else EXTERN int p_bk INIT(= TRUE); /* make backups when writing out files */ #endif EXTERN int p_bin INIT(= FALSE); /* editing binary file */ #if defined(MSDOS) && !defined(DOSGEN) EXTERN int p_biosk INIT(= TRUE); /* Use bioskey() instead of kbhit() */ #endif #ifdef UNIX EXTERN char *p_bdir INIT(= BACKUPDIR); /* directory for backups */ #endif EXTERN int p_cp INIT(= FALSE); /* vi-compatible */ #ifdef DIGRAPHS EXTERN int p_dg INIT(= FALSE); /* enable digraphs */ #endif /* DIGRAPHS */ EXTERN char *p_dir INIT(= ""); /* directory for autoscript file */ EXTERN char *p_ep INIT(= "indent"); /* program name for '=' command */ EXTERN int p_ed INIT(= FALSE); /* :s is ed compatible */ EXTERN int p_eb INIT(= FALSE); /* ring bell for errors */ #ifdef AMIGA EXTERN char *p_ef INIT(= "AztecC.Err"); /* name of errorfile */ #else EXTERN char *p_ef INIT(= "errors"); /* name of errorfile */ #endif #ifdef AMIGA EXTERN char *p_efm INIT(= "%f>%l:%c:%t:%n:%m");/* error format */ #else EXTERN char *p_efm INIT(= "\"%f\",%*[^0123456789]%l: %m"); /* error format */ #endif #ifdef COMPATIBLE EXTERN int p_ek INIT(= FALSE); /* function keys with ESC in insert mode */ #else EXTERN int p_ek INIT(= TRUE); /* function keys with ESC in insert mode */ #endif EXTERN int p_et INIT(= FALSE); /* expand tabs into spaces */ EXTERN int p_exrc INIT(= FALSE); /* read .exrc in current dir */ #ifdef FEPCTRL EXTERN int p_fc INIT(= TRUE); /* fep control */ # ifndef WIN32 EXTERN long p_fsr INIT(= 0); /* skip return key if fep is on */ # else EXTERN long p_fs INIT(= TRUE); /* fep display sync control */ # endif #endif EXTERN char *p_fp INIT(= ""); /* name of format program */ #if defined(MSDOS) && !defined(DOSGEN) EXTERN int p_gr INIT(= TRUE); /* display graphic characters */ #else EXTERN int p_gr INIT(= FALSE); /* display graphic characters */ #endif EXTERN long p_hi INIT(= 20); /* command line history size */ EXTERN char *p_hf INIT(= VIM_HLP); /* name of help file */ EXTERN int p_ic INIT(= FALSE); /* ignore case in searches */ EXTERN int p_im INIT(= FALSE); /* start editing in input mode */ EXTERN char *p_kp INIT(= "ref"); /* keyword program */ EXTERN int p_js INIT(= TRUE); /* use two spaces after period with Join */ EXTERN int p_list INIT(= FALSE); /* show tabs and newlines graphically */ EXTERN int p_magic INIT(= TRUE); /* use some characters for reg exp */ EXTERN char *p_mp INIT(= "make"); /* program for :make command */ EXTERN int p_ml INIT(= TRUE); /* mode lines on/off */ EXTERN long p_mls INIT(= 5); /* number of mode lines */ EXTERN int p_nu INIT(= FALSE); /* number lines on the screen */ EXTERN int p_paste INIT(= FALSE); /* paste mode */ EXTERN char *p_para INIT(= "IPLPPPQPP LIpplpipbp"); /* paragraphs */ EXTERN int p_ro INIT(= FALSE); /* readonly */ EXTERN int p_remap INIT(= TRUE); /* remap */ EXTERN long p_report INIT(= 2); /* minimum number of lines for report */ EXTERN int p_ru INIT(= FALSE); /* show column/line number */ EXTERN int p_ri INIT(= FALSE); /* reverse direction of insert */ EXTERN int p_secure INIT(= FALSE); /* do .exrc and .vimrc in secure mode */ EXTERN long p_scroll INIT(= 12); /* scroll size */ EXTERN long p_sj INIT(= 1); /* scroll jump size */ EXTERN char *p_sections INIT(= "SHNHH HUnhsh"); /* sections */ #ifdef MSDOS EXTERN char *p_sh INIT(= "command"); /* name of shell to use */ #else EXTERN char *p_sh INIT(= "sh"); /* name of shell to use */ #endif EXTERN long p_ss INIT(= 0); /* sideways scrolling offset */ EXTERN long p_st INIT(= 0); /* type of shell */ EXTERN int p_sr INIT(= FALSE); /* shift round off (for < and >) */ EXTERN long p_sw INIT(= 8); /* shiftwidth (for < and >) */ #if defined(COMPATIBLE) || defined(UNIX) EXTERN int p_sc INIT(= FALSE); /* show command in status line */ #else EXTERN int p_sc INIT(= TRUE); /* show command in status line */ #endif #if !defined(MSDOS) || defined(WIN32) EXTERN int p_sn INIT(= FALSE); /* short names in file system */ #endif EXTERN int p_sm INIT(= FALSE); /* showmatch */ #if defined(COMPATIBLE) EXTERN int p_smd INIT(= FALSE); /* show mode */ #else EXTERN int p_smd INIT(= TRUE); /* show mode */ #endif EXTERN int p_si INIT(= FALSE); /* smart-indent for c programs */ EXTERN char *p_su INIT(= ".bak.o.h.info.vim"); /* suffixes for wildcard expansion */ EXTERN long p_ts INIT(= 8); /* tab size in the file */ EXTERN long p_tl INIT(= 0); /* used tag length */ EXTERN char *p_tags INIT(= "tags"); /* tags search path */ #if defined(COMPATIBLE) EXTERN int p_ta INIT(= FALSE); /* auto textmode detection */ #else EXTERN int p_ta INIT(= TRUE); /* auto textmode detection */ #endif #ifdef MSDOS EXTERN int p_tx INIT(= TRUE); /* textmode for file I/O */ #else EXTERN int p_tx INIT(= FALSE); /* textmode for file I/O */ #endif EXTERN long p_tw INIT(= 0); /* textwidth */ EXTERN int p_to INIT(= FALSE); /* tilde is an operator */ EXTERN int p_timeout INIT(= TRUE); /* mappings entered within one second */ EXTERN long p_tm INIT(= 1000); /* timeoutlen (msec) */ EXTERN int p_ttimeout INIT(= FALSE); /* key codes entered within one second */ #ifdef COMPATIBLE EXTERN long p_ul INIT(= 0); /* number of Undo Levels */ EXTERN long p_uc INIT(= 0); /* update count for auto script file */ #else EXTERN long p_ul INIT(= 100); /* number of Undo Levels */ EXTERN long p_uc INIT(= 100); /* update count for auto script file */ #endif EXTERN long p_ut INIT(= 2000); /* update time for auto script file */ EXTERN int p_vb INIT(= FALSE); /* visual bell only (no beep) */ EXTERN int p_wrap INIT(= TRUE); /* wrap long lines */ EXTERN int p_warn INIT(= TRUE); /* warn for changes at shell command */ EXTERN int p_ws INIT(= TRUE); /* wrap scan */ #ifdef COMPATIBLE EXTERN long p_wc INIT(= Ctrl('E')); /* character for wildcard exapansion */ #else EXTERN long p_wc INIT(= TAB); /* character for wildcard exapansion */ #endif EXTERN long p_wm INIT(= 0); /* wrapmargin */ EXTERN int p_wa INIT(= FALSE); /* write any */ #if defined(COMPATIBLE) || defined(NOBACKUP) EXTERN int p_wb INIT(= FALSE); /* write backup files */ #else EXTERN int p_wb INIT(= TRUE); /* write backup files */ #endif EXTERN int p_ye INIT(= FALSE); /* Y yanks to end of line */ EXTERN char *p_trs INIT(= "as"); /* track character set */ EXTERN int p_tt INIT(= TRUE); /* transparent track mode */ #ifdef JP INIT(static char p_jp_init[] = JP;) INIT(static char p_jc_init[] = ".";) EXTERN char *p_jp INIT(= p_jp_init); /* code for Japanese letters */ EXTERN char *p_jc INIT(= p_jc_init); /* kanji code for the current file */ EXTERN int p_jt INIT(= FALSE); /* works tilde to set/clear MSB */ EXTERN int p_jse INIT(= FALSE); /* co-exists EUC and SJIS char. */ #endif /* JP */ #ifdef JPFEP EXTERN char *p_ji INIT(= "a"); /* keep ASC/JP insert mode */ EXTERN long p_ja INIT(= 0); /* number of characters to reset p_ji */ #endif /* JPFEP */ #ifdef FEPCTRL EXTERN char *p_ji INIT(= "a"); /* keep ASC/JP insert mode */ EXTERN long p_ja INIT(= 0); /* number of characters to reset p_ji */ #endif #ifdef ONEW EXTERN int p_oh INIT(= FALSE); /* use onew for hankaku input */ EXTERN int onew_rvmsg INIT(= TRUE); /* reverse onew messages */ EXTERN int p_okc INIT(= FALSE); /* kakutei by captitals */ #endif /* ONEW */ #ifdef FEPCTRL EXTERN int p_fm INIT(= FALSE); /* floating messages */ #else EXTERN int p_fm INIT(= TRUE); /* floating messages */ #endif #ifdef MDOMAIN EXTERN char *p_curl INIT(= NULL); /* current URL */ EXTERN int p_ntr INIT(= TRUE); /* trace network */ EXTERN char *p_proxy INIT(= ""); /* proxy server */ EXTERN int p_nto INIT(= 30); /* network timeout */ #endif