summaryrefslogtreecommitdiff
path: root/usr.bin/vim/feature.h
blob: 4ac9007cc572c676a64b74abb9935d411852c28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
/*	$OpenBSD: feature.h,v 1.1 1996/09/07 21:40:28 downsj Exp $	*/
/* vi:set ts=8 sw=8:
 *
 * VIM - Vi IMproved		by Bram Moolenaar
 *
 * Do ":help uganda"  in Vim to read copying and usage conditions.
 * Do ":help credits" in Vim to see a list of people who contributed.
 */
/*
 * feature.h: Defines for optional code and preferences
 *
 * Edit this file to include/exclude parts of Vim, before compiling.
 * The only other file that may be edited is Makefile, it contains machine
 * specific options.
 *
 * When you want to include a define, change the "#if 0" into "#if 1".
 */

/*
 * Optional code:
 * ==============
 */

/*
 * DIGRAPHS		When defined: Include digraph support.
 * 			In insert mode and on the command line you will be
 * 			able to use digraphs. The CTRL-K command will work.
 */
#define DIGRAPHS

/*
 * HAVE_LANGMAP		When defined: Include support for 'langmap' option.
 * 			Only useful when you put your keyboard in a special
 * 			language mode, e.g. for typing greek.
 */
#undef HAVE_LANGMAP

/*
 * INSERT_EXPAND	When defined: Support for CTRL-N/CTRL-P/CTRL-X in
 *			insert mode. Takes about 4Kbyte of code.
 */
#define INSERT_EXPAND

/*
 * RIGHTLEFT		When defined: Right-to-left typing and Hebrew support
 * 			Takes some code.
 */
#define RIGHTLEFT

/*
 * EMACS_TAGS		When defined: Include support for emacs style
 *			TAGS file. Takes some code.
 */
#define EMACS_TAGS

/*
 * AUTOCMD		When defined: Include support for ":autocmd"
 */
#define AUTOCMD

/*
 * VIMINFO		When defined: Include support for reading/writing
 *			the viminfo file. Takes about 8Kbyte of code.
 */
#define VIMINFO

/*
 * Choose one out of the following four:
 *
 * NO_BUILTIN_TCAPS	When defined: Do not include any builtin termcap
 *			entries (used only with HAVE_TGETENT defined).
 *
 * (nothing)		Machine specific termcap entries will be included.
 *
 * SOME_BUILTIN_TCAPS	When defined: Include most useful builtin termcap
 *			entries (used only with NO_BUILTIN_TCAPS not defined).
 *			This is the default.
 *
 * ALL_BUILTIN_TCAPS	When defined: Include all builtin termcap entries
 * 			(used only with NO_BUILTIN_TCAPS not defined).
 */
#define NO_BUILTIN_TCAPS

#ifndef NO_BUILTIN_TCAPS
# if 0
#  define ALL_BUILTIN_TCAPS
# else
#  if 1
#   define SOME_BUILTIN_TCAPS		/* default */
#  endif
# endif
#endif

/*
 * LISPINDENT		When defined: Include lisp indenting (From Eric
 *			Fischer). Doesn't completely work like vi (yet).
 * CINDENT		When defined: Include C code indenting (From Eric
 *			Fischer).
 * SMARTINDENT		When defined: Do smart C code indenting when the 'si'
 *			option is set. It's not as good as CINDENT, only
 *			included to keep the old code.
 *
 * These two need to be defined when making prototypes.
 */
#define LISPINDENT

#define CINDENT

#define SMARTINDENT

/*
 * Preferences:
 * ============
 */

/*
 * COMPATIBLE		When defined: Start in vi-compatible mode.
 *			Sets all option defaults to their vi-compatible value.
 */
#undef COMPATIBLE

/*
 * WRITEBACKUP		When defined: 'writebackup' is default on: Use
 *			a backup file while overwriting a file.
 */
#undef WRITEBACKUP

/*
 * SAVE_XTERM_SCREEN	When defined: The t_ti and t_te entries for the
 *			builtin xterm will be set to save the screen when
 *			starting Vim and restoring it when exiting.
 */
#define SAVE_XTERM_SCREEN

/*
 * DEBUG		When defined: Output a lot of debugging garbage.
 */
#undef DEBUG

/*
 * VIMRC_FILE		Name of the .vimrc file in current dir.
 */
#define VIMRC_FILE  	".vimrc"

/*
 * EXRC_FILE		Name of the .exrc file in current dir.
 */
#define EXRC_FILE	".exrc"

/*
 * GVIMRC_FILE		Name of the .gvimrc file in current dir.
 */
#define GVIMRC_FILE	".gvimrc"

/*
 * USR_VIMRC_FILE	Name of the user .vimrc file.
 */
#define USR_VIMRC_FILE		"$HOME/.vimrc"

/*
 * USR_EXRC_FILE	Name of the user .exrc file.
 */
#define USR_EXRC_FILE		"$HOME/.exrc"

/*
 * USR_GVIMRC_FILE	Name of the user .gvimrc file.
 */
#define USR_GVIMRC_FILE		"$HOME/.gvimrc"

/*
 * SYS_VIMRC_FILE	Name of the system-wide .vimrc file.
 */
#define SYS_VIMRC_FILE		"/etc/vimrc"

/*
 * SYS_COMPATRC_FILE	Name of the system-wide .vimrc file for compat mode.
 */
#define SYS_COMPATRC_FILE	"/etc/virc"

/*
 * SYS_GVIMRC_FILE	Name of the system-wide .gvimrc file.
 */
#define SYS_GVIMRC_FILE		"/etc/gvimrc"
  
/*
 * VIM_HLP		Name of the help file.
 */
#define VIM_HLP		"/usr/share/vim/vim_help.txt"


/*
 * Machine dependent:
 * ==================
 */

/*
 * USE_SYSTEM		Unix only. When defined: Use system() instead of
 *			fork/exec for starting a shell.
 */
#undef USE_SYSTEM

/*
 * WANT_X11		Unix only. When defined: Include code for xterm title
 *			saving. Only works if HAVE_X11 is also defined.
 */
#undef WANT_X11

/*
 * WANT_GUI		Would be nice, but that doesn't work. To compile Vim
 *			with the GUI (gvim) you have to edit Makefile.
 */

/*
 * NO_ARP		Amiga only. When defined: Do not use arp.library, DOS
 *			2.0 required. 
 */
#undef NO_ARP