Mercurial > vim
annotate src/feature.h @ 29240:181099d99271
Added tag v8.2.5138 for changeset da56650de132f8050f000b30a02f46a899817366
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Jun 2022 12:45:03 +0200 |
parents | 6cdf55afaae9 |
children | bc6cf208b1b4 |
rev | line source |
---|---|
10042
4aead6a9b7a9
commit https://github.com/vim/vim/commit/edf3f97ae2af024708ebb4ac614227327033ca47
Christian Brabandt <cb@256bit.org>
parents:
9669
diff
changeset
|
1 /* vi:set ts=8 sts=4 sw=4 noet: |
7 | 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 * feature.h: Defines for optional code and preferences | |
10 * | |
11 * Edit this file to include/exclude parts of Vim, before compiling. | |
12 * The only other file that may be edited is Makefile, it contains machine | |
13 * specific options. | |
14 * | |
15 * To include specific options, change the "#if*" and "#endif" into comments, | |
16 * or uncomment the "#define". | |
17 * To exclude specific options, change the "#define" into a comment. | |
18 */ | |
19 | |
20 /* | |
21 * When adding a new feature: | |
22 * - Add a #define below. | |
23 * - Add a message in the table above ex_version(). | |
24 * - Add a string to f_has(). | |
25 * - Add a feature to ":help feature-list" in doc/eval.txt. | |
26 * - Add feature to ":help +feature-list" in doc/various.txt. | |
27 * - Add comment for the documentation of commands that use the feature. | |
28 */ | |
29 | |
30 /* | |
31 * Basic choices: | |
32 * ============== | |
33 * | |
34 * +tiny almost no features enabled, not even multiple windows | |
26536
08241cd6091b
patch 8.2.3797: no good reason to limit the message history in tiny version
Bram Moolenaar <Bram@vim.org>
parents:
26532
diff
changeset
|
35 * +small as tiny plus cmdline window |
7 | 36 * +normal A default selection of features enabled |
37 * +big many features enabled, as rich as possible. | |
1620 | 38 * +huge all possible features enabled. |
7 | 39 * |
40 * When +small is used, +tiny is also included. +normal implies +small, etc. | |
41 */ | |
42 | |
43 /* | |
44 * Uncomment one of these to override the default. For unix use a configure | |
45 * argument, see Makefile. | |
46 */ | |
47 #if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \ | |
48 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
49 // #define FEAT_TINY |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
50 // #define FEAT_SMALL |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
51 // #define FEAT_NORMAL |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
52 // #define FEAT_BIG |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
53 // #define FEAT_HUGE |
7 | 54 #endif |
55 | |
56 /* | |
7693
6157052a0e58
commit https://github.com/vim/vim/commit/23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea
Christian Brabandt <cb@256bit.org>
parents:
7408
diff
changeset
|
57 * For Unix, Mac and Win32 use +huge by default. These days CPUs are fast and |
6157052a0e58
commit https://github.com/vim/vim/commit/23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea
Christian Brabandt <cb@256bit.org>
parents:
7408
diff
changeset
|
58 * Memory is cheap. |
27686
63e7adbe7223
patch 8.2.4369: redundant #ifdef argument
Bram Moolenaar <Bram@vim.org>
parents:
27490
diff
changeset
|
59 * Use +big for older systems: VMS and Amiga. |
7693
6157052a0e58
commit https://github.com/vim/vim/commit/23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea
Christian Brabandt <cb@256bit.org>
parents:
7408
diff
changeset
|
60 * Otherwise use +normal |
7 | 61 */ |
62 #if !defined(FEAT_TINY) && !defined(FEAT_SMALL) && !defined(FEAT_NORMAL) \ | |
63 && !defined(FEAT_BIG) && !defined(FEAT_HUGE) | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
64 # if defined(UNIX) || defined(MSWIN) || defined(MACOS_X) |
7693
6157052a0e58
commit https://github.com/vim/vim/commit/23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea
Christian Brabandt <cb@256bit.org>
parents:
7408
diff
changeset
|
65 # define FEAT_HUGE |
7 | 66 # else |
27686
63e7adbe7223
patch 8.2.4369: redundant #ifdef argument
Bram Moolenaar <Bram@vim.org>
parents:
27490
diff
changeset
|
67 # if defined(VMS) || defined(AMIGA) |
7693
6157052a0e58
commit https://github.com/vim/vim/commit/23c4f7183cca0ff8d2c5c2ef9a5c62f6307e07ea
Christian Brabandt <cb@256bit.org>
parents:
7408
diff
changeset
|
68 # define FEAT_BIG |
7 | 69 # else |
8212
05b88224cea1
commit https://github.com/vim/vim/commit/48e330aff911be1c798c88a973af6437a8141fce
Christian Brabandt <cb@256bit.org>
parents:
8163
diff
changeset
|
70 # define FEAT_NORMAL |
7 | 71 # endif |
72 # endif | |
73 #endif | |
74 | |
75 /* | |
76 * Each feature implies including the "smaller" ones. | |
77 */ | |
78 #ifdef FEAT_HUGE | |
79 # define FEAT_BIG | |
80 #endif | |
81 #ifdef FEAT_BIG | |
82 # define FEAT_NORMAL | |
83 #endif | |
84 #ifdef FEAT_NORMAL | |
85 # define FEAT_SMALL | |
86 #endif | |
87 #ifdef FEAT_SMALL | |
88 # define FEAT_TINY | |
89 #endif | |
90 | |
91 /* | |
92 * Optional code (see ":help +feature-list") | |
93 * ============= | |
94 */ | |
95 | |
96 /* | |
17761
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
97 * These features used to be optional but are now always enabled: |
7 | 98 * +windows Multiple windows. Without this there is no help |
99 * window and no status lines. | |
8643
24b43dd167eb
commit https://github.com/vim/vim/commit/44a2f923c00f1384c9ecde12fb5b4711bc20702e
Christian Brabandt <cb@256bit.org>
parents:
8577
diff
changeset
|
100 * +vertsplit Vertically split windows. |
7 | 101 * +cmdhist Command line history. |
17761
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
102 * +localmap Mappings and abbreviations local to a buffer. |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
103 * +visual Visual mode |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
104 * +visualextra Extra features for Visual mode (mostly block operators). |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
105 * +virtualedit 'virtualedit' option and its implementation |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
106 * +user_commands Allow the user to define his own commands. |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
107 * +multi_byte Generic multi-byte character handling. |
17781
04245f071792
patch 8.1.1887: the +cmdline_compl feature is not in the tiny version
Bram Moolenaar <Bram@vim.org>
parents:
17761
diff
changeset
|
108 * +cmdline_compl completion of mappings/abbreviations in cmdline mode. |
17809
59f8948b7590
patch 8.1.1901: the +insert_expand feature is not always available
Bram Moolenaar <Bram@vim.org>
parents:
17781
diff
changeset
|
109 * +insert_expand CTRL-N/CTRL-P/CTRL-X in insert mode. |
17966
46f95606b9ec
patch 8.1.1979: code for handling file names is spread out
Bram Moolenaar <Bram@vim.org>
parents:
17809
diff
changeset
|
110 * +modify_fname modifiers for file name. E.g., "%:p:h". |
18203
e0ec4cd7a865
patch 8.1.2096: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
18078
diff
changeset
|
111 * +comments 'comments' option. |
26336
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
112 * +title 'title' and 'icon' options |
26532
255bc9a08e58
patch 8.2.3795: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
26336
diff
changeset
|
113 * +jumplist Jumplist, CTRL-O and CTRL-I commands. |
28942
6cdf55afaae9
patch 8.2.4993: smart/C/lisp indenting is optional
Bram Moolenaar <Bram@vim.org>
parents:
28303
diff
changeset
|
114 * +lispindent lisp indenting (From Eric Fischer). |
6cdf55afaae9
patch 8.2.4993: smart/C/lisp indenting is optional
Bram Moolenaar <Bram@vim.org>
parents:
28303
diff
changeset
|
115 * +cindent C code indenting (From Eric Fischer). |
6cdf55afaae9
patch 8.2.4993: smart/C/lisp indenting is optional
Bram Moolenaar <Bram@vim.org>
parents:
28303
diff
changeset
|
116 * +smartindent smart C code indenting when the 'si' option is set. |
17761
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
117 * |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
118 * Obsolete: |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
119 * +tag_old_static Old style static tags: "file:tag file ..". |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
120 * Support was removed in 8.1.1093. |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
121 * +farsi Farsi (Persian language) Keymap support. |
109a0889b900
patch 8.1.1877: graduated features scattered
Bram Moolenaar <Bram@vim.org>
parents:
17708
diff
changeset
|
122 * Removed in patch 8.1.0932 |
7 | 123 */ |
124 | |
125 /* | |
26536
08241cd6091b
patch 8.2.3797: no good reason to limit the message history in tiny version
Bram Moolenaar <Bram@vim.org>
parents:
26532
diff
changeset
|
126 * Message history is fixed at 200 messages. |
625 | 127 */ |
26536
08241cd6091b
patch 8.2.3797: no good reason to limit the message history in tiny version
Bram Moolenaar <Bram@vim.org>
parents:
26532
diff
changeset
|
128 #define MAX_MSG_HIST_LEN 200 |
625 | 129 |
17652
9efb4dda9720
patch 8.1.1823: command line history code is spread out
Bram Moolenaar <Bram@vim.org>
parents:
17576
diff
changeset
|
130 #if defined(FEAT_SMALL) |
7 | 131 # define FEAT_CMDWIN |
132 #endif | |
133 | |
134 /* | |
135 * +folding Fold lines. | |
136 */ | |
137 #ifdef FEAT_NORMAL | |
138 # define FEAT_FOLDING | |
139 #endif | |
140 | |
141 /* | |
142 * +digraphs Digraphs. | |
143 * In insert mode and on the command line you will be | |
144 * able to use digraphs. The CTRL-K command will work. | |
145 * Define OLD_DIGRAPHS to get digraphs compatible with | |
146 * Vim 5.x. The new ones are from RFC 1345. | |
147 */ | |
148 #ifdef FEAT_NORMAL | |
149 # define FEAT_DIGRAPHS | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
150 // #define OLD_DIGRAPHS |
7 | 151 #endif |
152 | |
153 /* | |
154 * +langmap 'langmap' option. Only useful when you put your | |
155 * keyboard in a special language mode, e.g. for typing | |
156 * greek. | |
157 */ | |
158 #ifdef FEAT_BIG | |
159 # define FEAT_LANGMAP | |
160 #endif | |
161 | |
162 /* | |
163 * +keymap 'keymap' option. Allows you to map typed keys in | |
164 * Insert mode for a special language. | |
165 */ | |
166 #ifdef FEAT_BIG | |
167 # define FEAT_KEYMAP | |
168 #endif | |
169 | |
170 #ifdef FEAT_NORMAL | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
171 # define VIM_BACKTICK // internal backtick expansion |
7 | 172 #endif |
173 | |
174 /* | |
175 * +cmdline_info 'showcmd' and 'ruler' options. | |
176 */ | |
177 #ifdef FEAT_NORMAL | |
178 # define FEAT_CMDL_INFO | |
179 #endif | |
180 | |
181 /* | |
182 * +linebreak 'showbreak', 'breakat' and 'linebreak' options. | |
13 | 183 * Also 'numberwidth'. |
7 | 184 */ |
185 #ifdef FEAT_NORMAL | |
186 # define FEAT_LINEBREAK | |
187 #endif | |
188 | |
189 /* | |
190 * +extra_search 'hlsearch' and 'incsearch' options. | |
191 */ | |
192 #ifdef FEAT_NORMAL | |
193 # define FEAT_SEARCH_EXTRA | |
194 #endif | |
195 | |
196 /* | |
197 * +quickfix Quickfix commands. | |
198 */ | |
199 #ifdef FEAT_NORMAL | |
200 # define FEAT_QUICKFIX | |
201 #endif | |
202 | |
203 /* | |
204 * +file_in_path "gf" and "<cfile>" commands. | |
205 */ | |
206 #ifdef FEAT_NORMAL | |
207 # define FEAT_SEARCHPATH | |
208 #endif | |
209 | |
210 /* | |
211 * +find_in_path "[I" ":isearch" "^W^I", ":checkpath", etc. | |
212 */ | |
213 #ifdef FEAT_NORMAL | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
214 # ifdef FEAT_SEARCHPATH // FEAT_SEARCHPATH is required |
7 | 215 # define FEAT_FIND_ID |
216 # endif | |
217 #endif | |
218 | |
219 /* | |
220 * +path_extra up/downwards searching in 'path' and 'tags'. | |
221 */ | |
222 #ifdef FEAT_NORMAL | |
223 # define FEAT_PATH_EXTRA | |
224 #endif | |
225 | |
226 /* | |
227 * +rightleft Right-to-left editing/typing support. | |
228 */ | |
27490
fb4c30606b4a
patch 8.2.4273: the EBCDIC support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27342
diff
changeset
|
229 #if defined(FEAT_BIG) && !defined(DISABLE_RIGHTLEFT) |
7 | 230 # define FEAT_RIGHTLEFT |
231 #endif | |
232 | |
233 /* | |
234 * +arabic Arabic keymap and shaping support. | |
15450
bb421f682528
patch 8.1.0733: too many #ifdefs for the multi-byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15422
diff
changeset
|
235 * Requires FEAT_RIGHTLEFT |
7 | 236 */ |
27490
fb4c30606b4a
patch 8.2.4273: the EBCDIC support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27342
diff
changeset
|
237 #if defined(FEAT_BIG) && !defined(DISABLE_ARABIC) |
7 | 238 # define FEAT_ARABIC |
239 #endif | |
240 #ifdef FEAT_ARABIC | |
241 # ifndef FEAT_RIGHTLEFT | |
242 # define FEAT_RIGHTLEFT | |
243 # endif | |
244 #endif | |
245 | |
246 /* | |
247 * +emacs_tags When FEAT_EMACS_TAGS defined: Include support for | |
248 * emacs style TAGS file. | |
249 */ | |
250 #ifdef FEAT_BIG | |
251 # define FEAT_EMACS_TAGS | |
252 #endif | |
253 | |
254 /* | |
255 * +cscope Unix only: Cscope support. | |
256 */ | |
257 #if defined(UNIX) && defined(FEAT_BIG) && !defined(FEAT_CSCOPE) && !defined(MACOS_X) | |
258 # define FEAT_CSCOPE | |
259 #endif | |
260 | |
261 /* | |
262 * +eval Built-in script language and expression evaluation, | |
263 * ":let", ":if", etc. | |
1620 | 264 * +float Floating point variables. |
7 | 265 */ |
266 #ifdef FEAT_NORMAL | |
267 # define FEAT_EVAL | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
268 # if defined(HAVE_FLOAT_FUNCS) || defined(MSWIN) || defined(MACOS_X) |
1620 | 269 # define FEAT_FLOAT |
270 # endif | |
7 | 271 #endif |
272 | |
14536
4caa51067cb8
patch 8.1.0281: parsing command modifiers is not separated
Christian Brabandt <cb@256bit.org>
parents:
14424
diff
changeset
|
273 #ifdef FEAT_EVAL |
4caa51067cb8
patch 8.1.0281: parsing command modifiers is not separated
Christian Brabandt <cb@256bit.org>
parents:
14424
diff
changeset
|
274 # define HAVE_SANDBOX |
4caa51067cb8
patch 8.1.0281: parsing command modifiers is not separated
Christian Brabandt <cb@256bit.org>
parents:
14424
diff
changeset
|
275 #endif |
4caa51067cb8
patch 8.1.0281: parsing command modifiers is not separated
Christian Brabandt <cb@256bit.org>
parents:
14424
diff
changeset
|
276 |
7 | 277 /* |
170 | 278 * +profile Profiling for functions and scripts. |
279 */ | |
177 | 280 #if defined(FEAT_HUGE) \ |
532 | 281 && defined(FEAT_EVAL) \ |
177 | 282 && ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
283 || defined(MSWIN)) |
170 | 284 # define FEAT_PROFILE |
285 #endif | |
286 | |
287 /* | |
793 | 288 * +reltime reltime() function |
289 */ | |
290 #if defined(FEAT_NORMAL) \ | |
291 && defined(FEAT_EVAL) \ | |
292 && ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)) \ | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
293 || defined(MSWIN)) |
793 | 294 # define FEAT_RELTIME |
295 #endif | |
296 | |
297 /* | |
8577
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
298 * +timers timer_start() |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
299 */ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
300 #if defined(FEAT_RELTIME) && (defined(UNIX) || defined(MSWIN) || defined(VMS) ) |
8577
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
301 # define FEAT_TIMERS |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
302 #endif |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
303 |
63dc856bd13d
commit https://github.com/vim/vim/commit/975b5271eed4fa0500c24a8f37be0b1797cb9db7
Christian Brabandt <cb@256bit.org>
parents:
8493
diff
changeset
|
304 /* |
532 | 305 * +textobjects Text objects: "vaw", "das", etc. |
306 */ | |
307 #if defined(FEAT_NORMAL) && defined(FEAT_EVAL) | |
308 # define FEAT_TEXTOBJ | |
309 #endif | |
310 | |
311 /* | |
12 | 312 * Insert mode completion with 'completefunc'. |
313 */ | |
17809
59f8948b7590
patch 8.1.1901: the +insert_expand feature is not always available
Bram Moolenaar <Bram@vim.org>
parents:
17781
diff
changeset
|
314 #if defined(FEAT_EVAL) |
12 | 315 # define FEAT_COMPL_FUNC |
316 #endif | |
317 | |
318 /* | |
7 | 319 * +printer ":hardcopy" command |
320 * +postscript Printing uses PostScript file output. | |
321 */ | |
322 #if defined(FEAT_NORMAL) && (defined(MSWIN) || defined(FEAT_EVAL)) \ | |
323 && !defined(AMIGA) | |
324 # define FEAT_PRINTER | |
325 #endif | |
326 #if defined(FEAT_PRINTER) && ((defined(MSWIN) && defined(MSWINPS)) \ | |
327 || (!defined(MSWIN) && defined(FEAT_EVAL))) | |
328 # define FEAT_POSTSCRIPT | |
329 #endif | |
330 | |
331 /* | |
332 * +diff Displaying diffs in a nice way. | |
333 * Requires +windows and +autocmd. | |
27020
0f2dd0d07071
patch 8.2.4039: the xdiff library is linked in even when not used
Bram Moolenaar <Bram@vim.org>
parents:
26877
diff
changeset
|
334 * Can be enabled in autoconf already. |
7 | 335 */ |
27020
0f2dd0d07071
patch 8.2.4039: the xdiff library is linked in even when not used
Bram Moolenaar <Bram@vim.org>
parents:
26877
diff
changeset
|
336 #if defined(FEAT_NORMAL) && !defined(FEAT_DIFF) |
7 | 337 # define FEAT_DIFF |
338 #endif | |
339 | |
340 /* | |
341 * +statusline 'statusline', 'rulerformat' and special format of | |
342 * 'titlestring' and 'iconstring' options. | |
343 */ | |
344 #ifdef FEAT_NORMAL | |
345 # define FEAT_STL_OPT | |
346 # ifndef FEAT_CMDL_INFO | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
347 # define FEAT_CMDL_INFO // 'ruler' is required for 'statusline' |
7 | 348 # endif |
349 #endif | |
350 | |
26336
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
351 /* |
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
352 * +byte_offset '%o' in 'statusline' and builtin functions line2byte() |
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
353 * and byte2line(). |
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
354 * Note: Required for Macintosh. |
a2e6da79274d
patch 8.2.3699: the +title feature adds a lot of #ifdef but little code
Bram Moolenaar <Bram@vim.org>
parents:
24970
diff
changeset
|
355 */ |
7 | 356 #ifdef FEAT_NORMAL |
357 # define FEAT_BYTEOFF | |
358 #endif | |
359 | |
360 /* | |
361 * +wildignore 'wildignore' and 'backupskip' options | |
362 * Needed for Unix to make "crontab -e" work. | |
363 */ | |
364 #if defined(FEAT_NORMAL) || defined(UNIX) | |
365 # define FEAT_WILDIGN | |
366 #endif | |
367 | |
368 /* | |
369 * +wildmenu 'wildmenu' option | |
370 */ | |
12477
68d7bc045dbe
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Christian Brabandt <cb@256bit.org>
parents:
12212
diff
changeset
|
371 #if defined(FEAT_NORMAL) |
7 | 372 # define FEAT_WILDMENU |
373 #endif | |
374 | |
375 /* | |
376 * +viminfo reading/writing the viminfo file. Takes about 8Kbyte | |
377 * of code. | |
378 * VIMINFO_FILE Location of user .viminfo file (should start with $). | |
379 * VIMINFO_FILE2 Location of alternate user .viminfo file. | |
380 */ | |
381 #ifdef FEAT_NORMAL | |
382 # define FEAT_VIMINFO | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
383 // #define VIMINFO_FILE "$HOME/foo/.viminfo" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
384 // #define VIMINFO_FILE2 "~/bar/.viminfo" |
7 | 385 #endif |
386 | |
387 /* | |
388 * +syntax syntax highlighting. When using this, it's a good | |
389 * idea to have +autocmd and +eval too. | |
390 */ | |
391 #if defined(FEAT_NORMAL) || defined(PROTO) | |
392 # define FEAT_SYN_HL | |
393 #endif | |
394 | |
395 /* | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
396 * +conceal 'conceal' option. Needs syntax highlighting |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
397 * as this is how the concealed text is defined. |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
398 */ |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
399 #if defined(FEAT_BIG) && defined(FEAT_SYN_HL) |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
400 # define FEAT_CONCEAL |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
401 #endif |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
402 |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2247
diff
changeset
|
403 /* |
740 | 404 * +spell spell checking |
405 */ | |
27490
fb4c30606b4a
patch 8.2.4273: the EBCDIC support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27342
diff
changeset
|
406 #if (defined(FEAT_NORMAL) || defined(PROTO)) |
740 | 407 # define FEAT_SPELL |
408 #endif | |
409 | |
410 /* | |
7 | 411 * +builtin_terms Choose one out of the following four: |
412 * | |
413 * NO_BUILTIN_TCAPS Do not include any builtin termcap entries (used only | |
414 * with HAVE_TGETENT defined). | |
415 * | |
416 * (nothing) Machine specific termcap entries will be included. | |
417 * | |
418 * SOME_BUILTIN_TCAPS Include most useful builtin termcap entries (used only | |
419 * with NO_BUILTIN_TCAPS not defined). | |
420 * This is the default. | |
421 * | |
422 * ALL_BUILTIN_TCAPS Include all builtin termcap entries | |
423 * (used only with NO_BUILTIN_TCAPS not defined). | |
424 */ | |
425 #ifdef HAVE_TGETENT | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
426 // #define NO_BUILTIN_TCAPS |
7 | 427 #endif |
428 | |
8163
d8a8e86f39ad
commit https://github.com/vim/vim/commit/e89ff0472bc33779583d48e8d38a5e794d05613a
Christian Brabandt <cb@256bit.org>
parents:
8140
diff
changeset
|
429 #if !defined(NO_BUILTIN_TCAPS) |
7 | 430 # ifdef FEAT_BIG |
431 # define ALL_BUILTIN_TCAPS | |
432 # else | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
433 # define SOME_BUILTIN_TCAPS // default |
7 | 434 # endif |
435 #endif | |
436 | |
437 /* | |
438 * +cryptv Encryption (by Mohsin Ahmed <mosh@sasi.com>). | |
439 */ | |
2180
f60a0c9cbe6c
Add the blowfish encryption patch from Mohsin Ahmed. Needs more work.
Bram Moolenaar <bram@vim.org>
parents:
1972
diff
changeset
|
440 #if defined(FEAT_NORMAL) && !defined(FEAT_CRYPT) || defined(PROTO) |
7 | 441 # define FEAT_CRYPT |
442 #endif | |
443 | |
444 /* | |
445 * +mksession ":mksession" command. | |
17539
554240b9574b
patch 8.1.1767: FEAT_SESSION defined separately
Bram Moolenaar <Bram@vim.org>
parents:
17452
diff
changeset
|
446 * fully depends on +eval |
7 | 447 */ |
17539
554240b9574b
patch 8.1.1767: FEAT_SESSION defined separately
Bram Moolenaar <Bram@vim.org>
parents:
17452
diff
changeset
|
448 #if defined(FEAT_EVAL) |
7 | 449 # define FEAT_SESSION |
450 #endif | |
451 | |
452 /* | |
453 * +multi_lang Multi language support. ":menutrans", ":language", etc. | |
454 * +gettext Message translations (requires +multi_lang) | |
455 * (only when "lang" archive unpacked) | |
456 */ | |
457 #ifdef FEAT_NORMAL | |
458 # define FEAT_MULTI_LANG | |
459 #endif | |
460 #if defined(HAVE_GETTEXT) && defined(FEAT_MULTI_LANG) \ | |
461 && (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) | |
462 # define FEAT_GETTEXT | |
463 #endif | |
464 | |
465 /* | |
15607
2dcaa860e3fc
patch 8.1.0811: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
15517
diff
changeset
|
466 * +multi_byte_ime Win32 IME input method. Only for far-east Windows, so |
2dcaa860e3fc
patch 8.1.0811: too many #ifdefs
Bram Moolenaar <Bram@vim.org>
parents:
15517
diff
changeset
|
467 * IME can be used to input chars. Not tested much! |
7 | 468 */ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
469 #if defined(FEAT_GUI_MSWIN) && !defined(FEAT_MBYTE_IME) |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
470 // #define FEAT_MBYTE_IME |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
471 #endif |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
472 |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
473 #if defined(FEAT_BIG) && defined(FEAT_GUI_HAIKU) && !defined(FEAT_MBYTE_IME) |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
474 # define FEAT_MBYTE_IME |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
475 #endif |
7 | 476 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
477 // Use iconv() when it's available. |
15450
bb421f682528
patch 8.1.0733: too many #ifdefs for the multi-byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15422
diff
changeset
|
478 #if (defined(HAVE_ICONV_H) && defined(HAVE_ICONV)) || defined(DYNAMIC_ICONV) |
7 | 479 # define USE_ICONV |
480 #endif | |
481 | |
482 /* | |
483 * +xim X Input Method. For entering special languages like | |
484 * chinese and Japanese. | |
18671
df141c730008
patch 8.1.2327: cannot build with Hangul input
Bram Moolenaar <Bram@vim.org>
parents:
18374
diff
changeset
|
485 * this is for Unix and VMS only. |
7 | 486 */ |
487 #ifndef FEAT_XIM | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
488 // #define FEAT_XIM |
7 | 489 #endif |
490 | |
491 #if defined(FEAT_XIM) && defined(FEAT_GUI_GTK) | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
492 # define USE_XIM 1 // needed for GTK include files |
7 | 493 #endif |
494 | |
18671
df141c730008
patch 8.1.2327: cannot build with Hangul input
Bram Moolenaar <Bram@vim.org>
parents:
18374
diff
changeset
|
495 #if defined(FEAT_XIM) |
df141c730008
patch 8.1.2327: cannot build with Hangul input
Bram Moolenaar <Bram@vim.org>
parents:
18374
diff
changeset
|
496 // # define X_LOCALE // for OS with incomplete locale |
df141c730008
patch 8.1.2327: cannot build with Hangul input
Bram Moolenaar <Bram@vim.org>
parents:
18374
diff
changeset
|
497 // support, like old linux versions. |
7 | 498 #endif |
499 | |
500 /* | |
501 * +xfontset X fontset support. For outputting wide characters. | |
502 */ | |
503 #ifndef FEAT_XFONTSET | |
15450
bb421f682528
patch 8.1.0733: too many #ifdefs for the multi-byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15422
diff
changeset
|
504 # if defined(HAVE_X11) && !defined(FEAT_GUI_GTK) |
7 | 505 # define FEAT_XFONTSET |
506 # else | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
507 // # define FEAT_XFONTSET |
7 | 508 # endif |
509 #endif | |
510 | |
511 /* | |
512 * +libcall libcall() function | |
513 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
514 // Using dlopen() also requires dlsym() to be available. |
7 | 515 #if defined(HAVE_DLOPEN) && defined(HAVE_DLSYM) |
516 # define USE_DLOPEN | |
517 #endif | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
518 #if defined(FEAT_EVAL) && (defined(MSWIN) || ((defined(UNIX) || defined(VMS)) \ |
7 | 519 && (defined(USE_DLOPEN) || defined(HAVE_SHL_LOAD)))) |
520 # define FEAT_LIBCALL | |
521 #endif | |
522 | |
523 /* | |
524 * +menu ":menu" command | |
525 */ | |
526 #ifdef FEAT_NORMAL | |
527 # define FEAT_MENU | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
528 # ifdef FEAT_GUI_MSWIN |
7 | 529 # define FEAT_TEAROFF |
530 # endif | |
531 #endif | |
532 | |
13369
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
533 /* |
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
534 * popup menu in a terminal |
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
535 */ |
17809
59f8948b7590
patch 8.1.1901: the +insert_expand feature is not always available
Bram Moolenaar <Bram@vim.org>
parents:
17781
diff
changeset
|
536 #if defined(FEAT_MENU) && !defined(ALWAYS_USE_GUI) |
13369
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
537 # define FEAT_TERM_POPUP_MENU |
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
538 #endif |
244ff1b6d2ad
patch 8.0.1558: no right-click menu in a terminal
Christian Brabandt <cb@256bit.org>
parents:
13314
diff
changeset
|
539 |
17004
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
540 /* |
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
541 * sound - currently only with libcanberra |
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
542 */ |
17059
70f424551938
patch 8.1.1529: libcanberra is linked with even when not used
Bram Moolenaar <Bram@vim.org>
parents:
17004
diff
changeset
|
543 #if !defined(FEAT_SOUND) && defined(HAVE_CANBERRA) |
17004
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
544 # define FEAT_SOUND |
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
545 #endif |
17708
10696f279e20
patch 8.1.1851: crash when sound_playfile() callback plays sound
Bram Moolenaar <Bram@vim.org>
parents:
17652
diff
changeset
|
546 #if defined(FEAT_SOUND) && defined(HAVE_CANBERRA) |
10696f279e20
patch 8.1.1851: crash when sound_playfile() callback plays sound
Bram Moolenaar <Bram@vim.org>
parents:
17652
diff
changeset
|
547 # define FEAT_SOUND_CANBERRA |
10696f279e20
patch 8.1.1851: crash when sound_playfile() callback plays sound
Bram Moolenaar <Bram@vim.org>
parents:
17652
diff
changeset
|
548 #endif |
17004
353ed7ef78df
patch 8.1.1502: cannot play any sound
Bram Moolenaar <Bram@vim.org>
parents:
16778
diff
changeset
|
549 |
24970
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
550 /* |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
551 * libsodium - add cryptography support |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
552 */ |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
553 #if defined(HAVE_SODIUM) && defined(FEAT_BIG) |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
554 # define FEAT_SODIUM |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
555 #endif |
7e9e53a0368f
patch 8.2.3022: available encryption methods are not strong enough
Bram Moolenaar <Bram@vim.org>
parents:
24268
diff
changeset
|
556 |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
557 // There are two ways to use XPM. |
7 | 558 #if (defined(HAVE_XM_XPMP_H) && defined(FEAT_GUI_MOTIF)) \ |
559 || defined(HAVE_X11_XPM_H) | |
560 # define HAVE_XPM 1 | |
561 #endif | |
562 | |
563 /* | |
564 * +toolbar Include code for a toolbar (for the Win32 GUI, GTK | |
565 * always has it). But only if menus are enabled. | |
566 */ | |
567 #if defined(FEAT_NORMAL) && defined(FEAT_MENU) \ | |
574 | 568 && (defined(FEAT_GUI_GTK) \ |
7 | 569 || defined(FEAT_GUI_MSWIN) \ |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
570 || (defined(FEAT_GUI_MOTIF) && defined(HAVE_XPM)) \ |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
571 || defined(FEAT_GUI_PHOTON) \ |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
572 || defined(FEAT_GUI_HAIKU)) |
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
573 |
7 | 574 # define FEAT_TOOLBAR |
575 #endif | |
11 | 576 |
577 | |
7 | 578 #if defined(FEAT_TOOLBAR) && !defined(FEAT_MENU) |
579 # define FEAT_MENU | |
580 #endif | |
581 | |
582 /* | |
18078
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
583 * GUI dark theme variant |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
584 */ |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
585 #if defined(FEAT_GUI_GTK) && defined(USE_GTK3) |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
586 # define FEAT_GUI_DARKTHEME |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
587 #endif |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
588 |
5ae41d0ea397
patch 8.1.2034: dark them of GTK 3 not supported
Bram Moolenaar <Bram@vim.org>
parents:
17966
diff
changeset
|
589 /* |
685 | 590 * GUI tabline |
591 */ | |
12477
68d7bc045dbe
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
Christian Brabandt <cb@256bit.org>
parents:
12212
diff
changeset
|
592 #if defined(FEAT_NORMAL) \ |
844 | 593 && (defined(FEAT_GUI_GTK) \ |
838 | 594 || (defined(FEAT_GUI_MOTIF) && defined(HAVE_XM_NOTEBOOK_H)) \ |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
595 || defined(FEAT_GUI_HAIKU) \ |
27342
41a940219183
patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not useful
Bram Moolenaar <Bram@vim.org>
parents:
27020
diff
changeset
|
596 || defined(FEAT_GUI_MSWIN)) |
685 | 597 # define FEAT_GUI_TABLINE |
598 #endif | |
599 | |
600 /* | |
7 | 601 * +browse ":browse" command. |
1733 | 602 * or just the ":browse" command modifier |
7 | 603 */ |
1733 | 604 #if defined(FEAT_NORMAL) |
605 # define FEAT_BROWSE_CMD | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
606 # if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) \ |
21745
35921b7fc07a
patch 8.2.1422: the Mac GUI implementation is outdated
Bram Moolenaar <Bram@vim.org>
parents:
19526
diff
changeset
|
607 || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_HAIKU) || defined(FEAT_GUI_PHOTON) |
1733 | 608 # define FEAT_BROWSE |
609 # endif | |
7 | 610 #endif |
611 | |
612 /* | |
4039 | 613 * On some systems, when we compile with the GUI, we always use it. On Mac |
614 * there is no terminal version, and on Windows we can't figure out how to | |
615 * fork one off with :gui. | |
616 */ | |
21745
35921b7fc07a
patch 8.2.1422: the Mac GUI implementation is outdated
Bram Moolenaar <Bram@vim.org>
parents:
19526
diff
changeset
|
617 #if defined(FEAT_GUI_MSWIN) && !defined(VIMDLL) |
4039 | 618 # define ALWAYS_USE_GUI |
619 #endif | |
620 | |
621 /* | |
7 | 622 * +dialog_gui Use GUI dialog. |
623 * +dialog_con May use Console dialog. | |
624 * When none of these defined there is no dialog support. | |
625 */ | |
626 #ifdef FEAT_NORMAL | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
627 # if (defined(FEAT_GUI_MOTIF) && defined(HAVE_X11_XPM_H)) \ |
7 | 628 || defined(FEAT_GUI_GTK) \ |
629 || defined(FEAT_GUI_PHOTON) \ | |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
630 || defined(FEAT_GUI_HAIKU) \ |
21745
35921b7fc07a
patch 8.2.1422: the Mac GUI implementation is outdated
Bram Moolenaar <Bram@vim.org>
parents:
19526
diff
changeset
|
631 || defined(FEAT_GUI_MSWIN) |
7 | 632 # define FEAT_CON_DIALOG |
633 # define FEAT_GUI_DIALOG | |
634 # else | |
635 # define FEAT_CON_DIALOG | |
636 # endif | |
637 #endif | |
638 #if !defined(FEAT_GUI_DIALOG) && (defined(FEAT_GUI_MOTIF) \ | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
639 || defined(FEAT_GUI_GTK) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
640 || defined(FEAT_GUI_MSWIN)) |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
641 // need a dialog to show error messages when starting from the desktop |
7 | 642 # define FEAT_GUI_DIALOG |
643 #endif | |
644 #if defined(FEAT_GUI_DIALOG) && \ | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
645 (defined(FEAT_GUI_MOTIF) \ |
574 | 646 || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MSWIN) \ |
21745
35921b7fc07a
patch 8.2.1422: the Mac GUI implementation is outdated
Bram Moolenaar <Bram@vim.org>
parents:
19526
diff
changeset
|
647 || defined(FEAT_GUI_PHOTON) \ |
19526
22f0dda71638
patch 8.2.0320: no Haiku support
Bram Moolenaar <Bram@vim.org>
parents:
19427
diff
changeset
|
648 || defined(FEAT_GUI_HAIKU)) |
7 | 649 # define FEAT_GUI_TEXTDIALOG |
4039 | 650 # ifndef ALWAYS_USE_GUI |
651 # define FEAT_CON_DIALOG | |
652 # endif | |
7 | 653 #endif |
654 | |
8997
90fd01ade690
commit https://github.com/vim/vim/commit/8e9eb3a6a1e589949f1c878c839528d917fdfc4a
Christian Brabandt <cb@256bit.org>
parents:
8643
diff
changeset
|
655 /* |
9027
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
8997
diff
changeset
|
656 * +termguicolors 'termguicolors' option. |
8997
90fd01ade690
commit https://github.com/vim/vim/commit/8e9eb3a6a1e589949f1c878c839528d917fdfc4a
Christian Brabandt <cb@256bit.org>
parents:
8643
diff
changeset
|
657 */ |
90fd01ade690
commit https://github.com/vim/vim/commit/8e9eb3a6a1e589949f1c878c839528d917fdfc4a
Christian Brabandt <cb@256bit.org>
parents:
8643
diff
changeset
|
658 #if (defined(FEAT_BIG) && defined(FEAT_SYN_HL)) && !defined(ALWAYS_USE_GUI) |
9027
773d627cac0b
commit https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162
Christian Brabandt <cb@256bit.org>
parents:
8997
diff
changeset
|
659 # define FEAT_TERMGUICOLORS |
8997
90fd01ade690
commit https://github.com/vim/vim/commit/8e9eb3a6a1e589949f1c878c839528d917fdfc4a
Christian Brabandt <cb@256bit.org>
parents:
8643
diff
changeset
|
660 #endif |
90fd01ade690
commit https://github.com/vim/vim/commit/8e9eb3a6a1e589949f1c878c839528d917fdfc4a
Christian Brabandt <cb@256bit.org>
parents:
8643
diff
changeset
|
661 |
7 | 662 /* |
14175
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
663 * +vartabs 'vartabstop' and 'varsofttabstop' options. |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
664 */ |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
665 #ifdef FEAT_BIG |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
666 # define FEAT_VARTABS |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
667 #endif |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
668 |
2ad722003b36
patch 8.1.0105: all tab stops are the same
Christian Brabandt <cb@256bit.org>
parents:
13553
diff
changeset
|
669 /* |
7 | 670 * Preferences: |
671 * ============ | |
672 */ | |
673 | |
674 /* | |
675 * +writebackup 'writebackup' is default on: | |
676 * Use a backup file while overwriting a file. But it's | |
677 * deleted again when 'backup' is not set. Changing this | |
1698 | 678 * is strongly discouraged: You can lose all your |
7 | 679 * changes when the computer crashes while writing the |
680 * file. | |
681 * VMS note: It does work on VMS as well, but because of | |
682 * version handling it does not have any purpose. | |
683 * Overwrite will write to the new version. | |
684 */ | |
685 #ifndef VMS | |
686 # define FEAT_WRITEBACKUP | |
687 #endif | |
688 | |
689 /* | |
690 * +xterm_save The t_ti and t_te entries for the builtin xterm will | |
691 * be set to save the screen when starting Vim and | |
692 * restoring it when exiting. | |
693 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
694 // #define FEAT_XTERM_SAVE |
7 | 695 |
696 /* | |
697 * DEBUG Output a lot of debugging garbage. | |
698 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
699 // #define DEBUG |
7 | 700 |
701 /* | |
1972 | 702 * STARTUPTIME Time the startup process. Writes a file with |
703 * timestamps. | |
7 | 704 */ |
1972 | 705 #if defined(FEAT_NORMAL) \ |
706 && ((defined(HAVE_GETTIMEOFDAY) && defined(HAVE_SYS_TIME_H)) \ | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
707 || defined(MSWIN)) |
1972 | 708 # define STARTUPTIME 1 |
709 #endif | |
7 | 710 |
711 /* | |
712 * MEM_PROFILE Debugging of memory allocation and freeing. | |
713 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
714 // #define MEM_PROFILE |
7 | 715 |
716 /* | |
717 * VIMRC_FILE Name of the .vimrc file in current dir. | |
718 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
719 // #define VIMRC_FILE ".vimrc" |
7 | 720 |
721 /* | |
722 * EXRC_FILE Name of the .exrc file in current dir. | |
723 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
724 // #define EXRC_FILE ".exrc" |
7 | 725 |
726 /* | |
727 * GVIMRC_FILE Name of the .gvimrc file in current dir. | |
728 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
729 // #define GVIMRC_FILE ".gvimrc" |
7 | 730 |
731 /* | |
732 * SESSION_FILE Name of the default ":mksession" file. | |
733 */ | |
734 #define SESSION_FILE "Session.vim" | |
735 | |
736 /* | |
737 * USR_VIMRC_FILE Name of the user .vimrc file. | |
738 * USR_VIMRC_FILE2 Name of alternate user .vimrc file. | |
739 * USR_VIMRC_FILE3 Name of alternate user .vimrc file. | |
740 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
741 // #define USR_VIMRC_FILE "~/foo/.vimrc" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
742 // #define USR_VIMRC_FILE2 "~/bar/.vimrc" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
743 // #define USR_VIMRC_FILE3 "$VIM/.vimrc" |
7 | 744 |
745 /* | |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
746 * VIM_DEFAULTS_FILE Name of the defaults.vim script file |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
747 */ |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
748 // #define VIM_DEFAULTS_FILE "$VIMRUNTIME/defaults.vim" |
9669
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
749 |
284b4eb307fc
commit https://github.com/vim/vim/commit/8c08b5b569e2a9e9f63dea514591ecfa2d3bb392
Christian Brabandt <cb@256bit.org>
parents:
9536
diff
changeset
|
750 /* |
7 | 751 * EVIM_FILE Name of the evim.vim script file |
752 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
753 // #define EVIM_FILE "$VIMRUNTIME/evim.vim" |
7 | 754 |
755 /* | |
756 * USR_EXRC_FILE Name of the user .exrc file. | |
757 * USR_EXRC_FILE2 Name of the alternate user .exrc file. | |
758 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
759 // #define USR_EXRC_FILE "~/foo/.exrc" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
760 // #define USR_EXRC_FILE2 "~/bar/.exrc" |
7 | 761 |
762 /* | |
763 * USR_GVIMRC_FILE Name of the user .gvimrc file. | |
764 * USR_GVIMRC_FILE2 Name of the alternate user .gvimrc file. | |
765 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
766 // #define USR_GVIMRC_FILE "~/foo/.gvimrc" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
767 // #define USR_GVIMRC_FILE2 "~/bar/.gvimrc" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
768 // #define USR_GVIMRC_FILE3 "$VIM/.gvimrc" |
7 | 769 |
770 /* | |
771 * SYS_VIMRC_FILE Name of the system-wide .vimrc file. | |
772 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
773 // #define SYS_VIMRC_FILE "/etc/vimrc" |
7 | 774 |
775 /* | |
776 * SYS_GVIMRC_FILE Name of the system-wide .gvimrc file. | |
777 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
778 // #define SYS_GVIMRC_FILE "/etc/gvimrc" |
7 | 779 |
780 /* | |
781 * DFLT_HELPFILE Name of the help file. | |
782 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
783 // # define DFLT_HELPFILE "$VIMRUNTIME/doc/help.txt.gz" |
7 | 784 |
785 /* | |
786 * File names for: | |
787 * FILETYPE_FILE switch on file type detection | |
788 * FTPLUGIN_FILE switch on loading filetype plugin files | |
789 * INDENT_FILE switch on loading indent files | |
790 * FTOFF_FILE switch off file type detection | |
791 * FTPLUGOF_FILE switch off loading settings files | |
792 * INDOFF_FILE switch off loading indent files | |
793 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
794 // # define FILETYPE_FILE "filetype.vim" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
795 // # define FTPLUGIN_FILE "ftplugin.vim" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
796 // # define INDENT_FILE "indent.vim" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
797 // # define FTOFF_FILE "ftoff.vim" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
798 // # define FTPLUGOF_FILE "ftplugof.vim" |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
799 // # define INDOFF_FILE "indoff.vim" |
7 | 800 |
801 /* | |
802 * SYS_MENU_FILE Name of the default menu.vim file. | |
803 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
804 // # define SYS_MENU_FILE "$VIMRUNTIME/menu.vim" |
7 | 805 |
806 /* | |
807 * SYS_OPTWIN_FILE Name of the default optwin.vim file. | |
808 */ | |
809 #ifndef SYS_OPTWIN_FILE | |
810 # define SYS_OPTWIN_FILE "$VIMRUNTIME/optwin.vim" | |
811 #endif | |
812 | |
813 /* | |
814 * SYNTAX_FNAME Name of a syntax file, where %s is the syntax name. | |
815 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
816 // #define SYNTAX_FNAME "/foo/%s.vim" |
7 | 817 |
818 /* | |
819 * RUNTIME_DIRNAME Generic name for the directory of the runtime files. | |
820 */ | |
821 #ifndef RUNTIME_DIRNAME | |
822 # define RUNTIME_DIRNAME "runtime" | |
823 #endif | |
824 | |
825 /* | |
15205
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
826 * RUNTIME_GLOBAL Comma-separated list of directory names for global Vim |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
827 * runtime directories. |
7 | 828 * Don't define this if the preprocessor can't handle |
829 * string concatenation. | |
830 * Also set by "--with-global-runtime" configure argument. | |
831 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
832 // #define RUNTIME_GLOBAL "/etc/vim" |
7 | 833 |
834 /* | |
15205
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
835 * RUNTIME_GLOBAL_AFTER Comma-separated list of directory names for global Vim |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
836 * runtime after directories. |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
837 * Don't define this if the preprocessor can't handle |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
838 * string concatenation. |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
839 * Also set by "--with-global-runtime" configure argument. |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
840 */ |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
841 // #define RUNTIME_GLOBAL_AFTER "/etc/vim/after" |
15205
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
842 |
54d2905bd5ab
patch 8.1.0612: cannot use two global runtime dirs with configure
Bram Moolenaar <Bram@vim.org>
parents:
15144
diff
changeset
|
843 /* |
7 | 844 * MODIFIED_BY Name of who modified Vim. Required when distributing |
4352 | 845 * a modified version of Vim. |
7 | 846 * Also from the "--with-modified-by" configure argument. |
847 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
848 // #define MODIFIED_BY "John Doe" |
7 | 849 |
850 /* | |
851 * Machine dependent: | |
852 * ================== | |
853 */ | |
854 | |
855 /* | |
856 * +fork Unix only: fork() support (detected by configure) | |
857 * +system Use system() instead of fork/exec for starting a | |
858 * shell. Doesn't work for the GUI! | |
859 */ | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
860 // #define USE_SYSTEM |
7 | 861 |
862 /* | |
863 * +X11 Unix only. Include code for xterm title saving and X | |
864 * clipboard. Only works if HAVE_X11 is also defined. | |
865 */ | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
866 #if defined(FEAT_NORMAL) || defined(FEAT_GUI_MOTIF) |
7 | 867 # define WANT_X11 |
868 #endif | |
869 | |
870 /* | |
871 * XSMP - X11 Session Management Protocol | |
872 * It may be preferred to disable this if the GUI supports it (e.g., | |
873 * GNOME/KDE) and implement save-yourself etc. through that, but it may also | |
874 * be cleaner to have all SM-aware vims do the same thing (libSM does not | |
875 * depend upon X11). | |
876 * If your GUI wants to support SM itself, change this ifdef. | |
877 * I'm assuming that any X11 implementation will cope with this for now. | |
878 */ | |
879 #if defined(HAVE_X11) && defined(WANT_X11) && defined(HAVE_X11_SM_SMLIB_H) | |
880 # define USE_XSMP | |
881 #endif | |
882 #if defined(USE_XSMP_INTERACT) && !defined(USE_XSMP) | |
883 # undef USE_XSMP_INTERACT | |
884 #endif | |
885 | |
886 /* | |
887 * +mouse_xterm Unix only: Include code for xterm mouse handling. | |
888 * +mouse_dec idem, for Dec mouse handling. | |
889 * +mouse_jsbterm idem, for Jsbterm mouse handling. | |
890 * +mouse_netterm idem, for Netterm mouse handling. | |
891 * (none) MS-DOS mouse support. | |
892 * +mouse_gpm Unix only: Include code for Linux console mouse | |
893 * handling. | |
894 * +mouse_pterm PTerm mouse support for QNX | |
3887 | 895 * +mouse_sgr Unix only: Include code for for SGR-styled mouse. |
1620 | 896 * +mouse_sysmouse Unix only: Include code for FreeBSD and DragonFly |
897 * console mouse handling. | |
23229
b545334ae654
patch 8.2.2160: various typos
Bram Moolenaar <Bram@vim.org>
parents:
23015
diff
changeset
|
898 * +mouse_urxvt Unix only: Include code for for urxvt mouse handling. |
7 | 899 * +mouse Any mouse support (any of the above enabled). |
18354
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
900 * Always included, since either FEAT_MOUSE_XTERM or |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
901 * DOS_MOUSE is defined. |
7 | 902 */ |
18912
ccd16426a1f9
patch 8.2.0017: OS/2 and MS-DOS are still mentioned
Bram Moolenaar <Bram@vim.org>
parents:
18763
diff
changeset
|
903 // Amiga console has no mouse support |
18354
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
904 #if defined(UNIX) || defined(VMS) |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
905 # define FEAT_MOUSE_XTERM |
7 | 906 # ifdef FEAT_BIG |
907 # define FEAT_MOUSE_NET | |
908 # endif | |
909 # ifdef FEAT_BIG | |
910 # define FEAT_MOUSE_DEC | |
911 # endif | |
3145 | 912 # ifdef FEAT_BIG |
913 # define FEAT_MOUSE_URXVT | |
914 # endif | |
18354
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
915 #endif |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
916 #if defined(MSWIN) |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
917 # define DOS_MOUSE |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
918 #endif |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
919 #if defined(__QNX__) |
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
920 # define FEAT_MOUSE_PTERM |
7 | 921 #endif |
922 | |
4301 | 923 /* |
924 * Note: Only one of the following may be defined: | |
925 * FEAT_MOUSE_GPM | |
926 * FEAT_SYSMOUSE | |
927 * FEAT_MOUSE_JSB | |
928 * FEAT_MOUSE_PTERM | |
929 */ | |
7 | 930 #if defined(FEAT_NORMAL) && defined(HAVE_GPM) |
931 # define FEAT_MOUSE_GPM | |
27863
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
932 /* |
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
933 * +mouse_gpm/dyn Load libgpm dynamically. |
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
934 */ |
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
935 # ifndef DYNAMIC_GPM |
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
936 // # define DYNAMIC_GPM |
f1799ba16729
patch 8.2.4457: the GPM library can only be linked statically
Bram Moolenaar <Bram@vim.org>
parents:
27686
diff
changeset
|
937 # endif |
7 | 938 #endif |
1620 | 939 |
940 #if defined(FEAT_NORMAL) && defined(HAVE_SYSMOUSE) | |
941 # define FEAT_SYSMOUSE | |
942 #endif | |
3145 | 943 |
18354
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
944 // urxvt is a small variation of mouse_xterm, and shares its code |
3145 | 945 #if defined(FEAT_MOUSE_URXVT) && !defined(FEAT_MOUSE_XTERM) |
946 # define FEAT_MOUSE_XTERM | |
947 #endif | |
948 | |
7 | 949 /* |
950 * +clipboard Clipboard support. Always used for the GUI. | |
951 * +xterm_clipboard Unix only: Include code for handling the clipboard | |
952 * in an xterm like in the GUI. | |
953 */ | |
4168 | 954 |
955 #ifdef FEAT_CYGWIN_WIN32_CLIPBOARD | |
956 # define FEAT_CLIPBOARD | |
957 #endif | |
958 | |
7 | 959 #ifdef FEAT_GUI |
960 # ifndef FEAT_CLIPBOARD | |
961 # define FEAT_CLIPBOARD | |
962 # endif | |
963 #endif | |
964 | |
5735 | 965 #if defined(FEAT_NORMAL) \ |
7 | 966 && (defined(UNIX) || defined(VMS)) \ |
967 && defined(WANT_X11) && defined(HAVE_X11) | |
968 # define FEAT_XCLIPBOARD | |
969 # ifndef FEAT_CLIPBOARD | |
970 # define FEAT_CLIPBOARD | |
971 # endif | |
972 #endif | |
973 | |
974 /* | |
975 * +dnd Drag'n'drop support. Always used for the GTK+ GUI. | |
976 */ | |
977 #if defined(FEAT_CLIPBOARD) && defined(FEAT_GUI_GTK) | |
978 # define FEAT_DND | |
979 #endif | |
980 | |
981 #if defined(FEAT_GUI_MSWIN) && defined(FEAT_SMALL) | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
982 # define MSWIN_FIND_REPLACE // include code for find/replace dialog |
7 | 983 # define MSWIN_FR_BUFSIZE 256 |
984 #endif | |
985 | |
29 | 986 #if defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MOTIF) \ |
574 | 987 || defined(MSWIN_FIND_REPLACE) |
29 | 988 # define FIND_REPLACE_DIALOG 1 |
989 #endif | |
990 | |
7 | 991 /* |
992 * +clientserver Remote control via the remote_send() function | |
993 * and the --remote argument | |
994 */ | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
995 #if (defined(MSWIN) || defined(FEAT_XCLIPBOARD)) && defined(FEAT_EVAL) |
7 | 996 # define FEAT_CLIENTSERVER |
997 #endif | |
998 | |
999 /* | |
12837
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1000 * +autoservername Automatically generate a servername for clientserver |
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1001 * when --servername is not passed on the command line. |
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1002 */ |
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1003 #if defined(FEAT_CLIENTSERVER) && !defined(FEAT_AUTOSERVERNAME) |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1004 # ifdef MSWIN |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1005 // Always enabled on MS-Windows. |
12841
174e0c952b46
patch 8.0.1297: +autoservername does not show enabled on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12837
diff
changeset
|
1006 # define FEAT_AUTOSERVERNAME |
174e0c952b46
patch 8.0.1297: +autoservername does not show enabled on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12837
diff
changeset
|
1007 # else |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1008 // Enable here if you don't use configure. |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1009 // # define FEAT_AUTOSERVERNAME |
12841
174e0c952b46
patch 8.0.1297: +autoservername does not show enabled on MS-Windows
Christian Brabandt <cb@256bit.org>
parents:
12837
diff
changeset
|
1010 # endif |
12837
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1011 #endif |
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1012 |
963cdeb42c41
patch 8.0.1295: cannot automatically get a server name in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12716
diff
changeset
|
1013 /* |
7 | 1014 * +termresponse send t_RV to obtain terminal response. Used for xterm |
1015 * to check if mouse dragging can be used and if term | |
1204 | 1016 * codes can be obtained. |
7 | 1017 */ |
18354
9f51d0cef8da
patch 8.1.2171: mouse support not always available
Bram Moolenaar <Bram@vim.org>
parents:
18203
diff
changeset
|
1018 #if defined(HAVE_TGETENT) |
7 | 1019 # define FEAT_TERMRESPONSE |
1020 #endif | |
1021 | |
1022 /* | |
1023 * cursor shape Adjust the shape of the cursor to the mode. | |
1024 * mouse shape Adjust the shape of the mouse pointer to the mode. | |
1025 */ | |
1026 #ifdef FEAT_NORMAL | |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
1027 // Win32 console can change cursor shape |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
1028 # if defined(MSWIN) && (!defined(FEAT_GUI_MSWIN) || defined(VIMDLL)) |
7 | 1029 # define MCH_CURSOR_SHAPE |
1030 # endif | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1031 # if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) \ |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1032 || defined(FEAT_GUI_GTK) \ |
7 | 1033 || defined(FEAT_GUI_PHOTON) |
1034 # define FEAT_MOUSESHAPE | |
1035 # endif | |
1036 #endif | |
1037 | |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1038 // GUI and some consoles can change the shape of the cursor. The code is also |
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1039 // needed for the 'mouseshape' and 'concealcursor' options. |
2378
85b7dc8da5eb
Add the 'concealcursor' option to decide when the cursor line is to be
Bram Moolenaar <bram@vim.org>
parents:
2330
diff
changeset
|
1040 #if defined(FEAT_GUI) \ |
85b7dc8da5eb
Add the 'concealcursor' option to decide when the cursor line is to be
Bram Moolenaar <bram@vim.org>
parents:
2330
diff
changeset
|
1041 || defined(MCH_CURSOR_SHAPE) \ |
85b7dc8da5eb
Add the 'concealcursor' option to decide when the cursor line is to be
Bram Moolenaar <bram@vim.org>
parents:
2330
diff
changeset
|
1042 || defined(FEAT_MOUSESHAPE) \ |
85b7dc8da5eb
Add the 'concealcursor' option to decide when the cursor line is to be
Bram Moolenaar <bram@vim.org>
parents:
2330
diff
changeset
|
1043 || defined(FEAT_CONCEAL) \ |
500 | 1044 || (defined(UNIX) && defined(FEAT_NORMAL)) |
7 | 1045 # define CURSOR_SHAPE |
1046 #endif | |
1047 | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1048 #if defined(FEAT_MZSCHEME) && (defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_GTK) \ |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1049 || defined(FEAT_GUI_MOTIF)) |
16 | 1050 # define MZSCHEME_GUI_THREADS |
1051 #endif | |
1052 | |
7 | 1053 /* |
1054 * +ARP Amiga only. Use arp.library, DOS 2.0 is not required. | |
1055 */ | |
23001
e5de71dd168b
patch 8.2.2047: Amiga: FEAT_ARP defined when it should not
Bram Moolenaar <Bram@vim.org>
parents:
21745
diff
changeset
|
1056 #if defined(AMIGA) && !defined(NO_ARP) && !defined(__amigaos4__) \ |
23015
0338b74add2f
patch 8.2.2054: Amiga: FEAT_ARP defined when it should not
Bram Moolenaar <Bram@vim.org>
parents:
23001
diff
changeset
|
1057 && !defined(__MORPHOS__) && !defined(__AROS__) |
7 | 1058 # define FEAT_ARP |
1059 #endif | |
1060 | |
1061 /* | |
1062 * +ole Win32 OLE automation: Use Makefile.ovc. | |
1063 */ | |
1064 | |
1065 /* | |
1066 * These features can only be included by using a configure argument. See the | |
1067 * Makefile for a line to uncomment. | |
2330 | 1068 * +lua Lua interface: "--enable-luainterp" |
14 | 1069 * +mzscheme MzScheme interface: "--enable-mzscheme" |
7 | 1070 * +perl Perl interface: "--enable-perlinterp" |
1071 * +python Python interface: "--enable-pythoninterp" | |
1072 * +tcl TCL interface: "--enable-tclinterp" | |
1073 * +netbeans_intg Netbeans integration | |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7693
diff
changeset
|
1074 * +channel Inter process communication |
18374
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1075 * +GUI_Motif Motif GUI |
7 | 1076 */ |
1077 | |
1078 /* | |
1079 * These features are automatically detected: | |
1080 * +terminfo | |
1081 * +tgetent | |
1082 */ | |
1083 | |
1084 /* | |
13553
04019fc3de93
patch 8.0.1650: too many #ifdefs
Christian Brabandt <cb@256bit.org>
parents:
13422
diff
changeset
|
1085 * The Netbeans feature requires +eval. |
7 | 1086 */ |
13553
04019fc3de93
patch 8.0.1650: too many #ifdefs
Christian Brabandt <cb@256bit.org>
parents:
13422
diff
changeset
|
1087 #if !defined(FEAT_EVAL) && defined(FEAT_NETBEANS_INTG) |
7 | 1088 # undef FEAT_NETBEANS_INTG |
1089 #endif | |
1090 | |
1091 /* | |
7957
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7850
diff
changeset
|
1092 * The +channel feature requires +eval. |
7743
6069f43cea4e
commit https://github.com/vim/vim/commit/e0874f8cbcddfcf9965a85ba35199964efb1d01a
Christian Brabandt <cb@256bit.org>
parents:
7693
diff
changeset
|
1093 */ |
8493
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8281
diff
changeset
|
1094 #if !defined(FEAT_EVAL) && defined(FEAT_JOB_CHANNEL) |
caed4b2d305f
commit https://github.com/vim/vim/commit/509ce2a558e7e0c03242e32e844255af52f1c821
Christian Brabandt <cb@256bit.org>
parents:
8281
diff
changeset
|
1095 # undef FEAT_JOB_CHANNEL |
7957
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7850
diff
changeset
|
1096 #endif |
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7850
diff
changeset
|
1097 |
b74549818500
commit https://github.com/vim/vim/commit/835dc636a5350f610b62f110227d2363b5b2880a
Christian Brabandt <cb@256bit.org>
parents:
7850
diff
changeset
|
1098 /* |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1099 * +terminal ":terminal" command. Runs a terminal in a window. |
15450
bb421f682528
patch 8.1.0733: too many #ifdefs for the multi-byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15422
diff
changeset
|
1100 * requires +channel |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1101 */ |
15450
bb421f682528
patch 8.1.0733: too many #ifdefs for the multi-byte feature
Bram Moolenaar <Bram@vim.org>
parents:
15422
diff
changeset
|
1102 #if defined(FEAT_TERMINAL) && !defined(FEAT_JOB_CHANNEL) |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1103 # undef FEAT_TERMINAL |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1104 #endif |
12076
ca4931a20f8c
patch 8.0.0918: cannot get terminal window cursor shape or attributes
Christian Brabandt <cb@256bit.org>
parents:
11621
diff
changeset
|
1105 #if defined(FEAT_TERMINAL) && !defined(CURSOR_SHAPE) |
ca4931a20f8c
patch 8.0.0918: cannot get terminal window cursor shape or attributes
Christian Brabandt <cb@256bit.org>
parents:
11621
diff
changeset
|
1106 # define CURSOR_SHAPE |
ca4931a20f8c
patch 8.0.0918: cannot get terminal window cursor shape or attributes
Christian Brabandt <cb@256bit.org>
parents:
11621
diff
changeset
|
1107 #endif |
18374
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1108 #if defined(FEAT_TERMINAL) && !defined(FEAT_SYN_HL) |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1109 // simplify the code a bit by enabling +syntax when +terminal is enabled |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1110 # define FEAT_SYN_HL |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1111 #endif |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1112 |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1113 /* |
24268
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1114 * +autoshelldir 'autoshelldir' option. |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1115 */ |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1116 #if defined(FEAT_TERMINAL) |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1117 # define FEAT_AUTOSHELLDIR |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1118 #endif |
9257f3980f4a
patch 8.2.2675: directory change in a terminal window shell is not followed
Bram Moolenaar <Bram@vim.org>
parents:
23229
diff
changeset
|
1119 /* |
18763
49b78d6465e5
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Bram Moolenaar <Bram@vim.org>
parents:
18753
diff
changeset
|
1120 * +textprop and +popupwin Text PROPerties and POPUP windows |
18374
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1121 */ |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1122 #if defined(FEAT_EVAL) && defined(FEAT_SYN_HL) |
18763
49b78d6465e5
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Bram Moolenaar <Bram@vim.org>
parents:
18753
diff
changeset
|
1123 # define FEAT_PROP_POPUP |
18374
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1124 #endif |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1125 |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1126 #if defined(FEAT_SYN_HL) && defined(FEAT_RELTIME) |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1127 // Can limit syntax highlight time to 'redrawtime'. |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1128 # define SYN_TIME_LIMIT 1 |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1129 #endif |
86c00b8fefea
patch 8.1.2181: highlighting wrong when item follows tab
Bram Moolenaar <Bram@vim.org>
parents:
18354
diff
changeset
|
1130 |
11621
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1131 |
b8299e742f41
patch 8.0.0693: no terminal emulator support
Christian Brabandt <cb@256bit.org>
parents:
10134
diff
changeset
|
1132 /* |
7 | 1133 * +signs Allow signs to be displayed to the left of text lines. |
1134 * Adds the ":sign" command. | |
1135 */ | |
18763
49b78d6465e5
patch 8.1.2371: FEAT_TEXT_PROP is a confusing name
Bram Moolenaar <Bram@vim.org>
parents:
18753
diff
changeset
|
1136 #if defined(FEAT_BIG) || defined(FEAT_NETBEANS_INTG) || defined(FEAT_PROP_POPUP) |
7 | 1137 # define FEAT_SIGNS |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1138 # if (defined(FEAT_GUI_MOTIF) && defined(HAVE_X11_XPM_H)) \ |
7 | 1139 || defined(FEAT_GUI_GTK) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1140 || (defined(MSWIN) && defined(FEAT_GUI)) |
7 | 1141 # define FEAT_SIGN_ICONS |
1142 # endif | |
1143 #endif | |
1144 | |
1145 /* | |
1146 * +balloon_eval Allow balloon expression evaluation. Used with a | |
1147 * debugger and for tooltips. | |
1148 * Only for GUIs where it was implemented. | |
1149 */ | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1150 #if (defined(FEAT_GUI_MOTIF) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1151 || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_MSWIN)) \ |
844 | 1152 && ( ((defined(FEAT_TOOLBAR) || defined(FEAT_GUI_TABLINE)) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1153 && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_MSWIN)) \ |
188 | 1154 || defined(FEAT_NETBEANS_INTG) || defined(FEAT_EVAL)) |
12871
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1155 # define FEAT_BEVAL_GUI |
7 | 1156 # if !defined(FEAT_XFONTSET) && !defined(FEAT_GUI_GTK) \ |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1157 && !defined(FEAT_GUI_MSWIN) |
7 | 1158 # define FEAT_XFONTSET |
1159 # endif | |
1160 #endif | |
1161 | |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1162 #if defined(FEAT_BEVAL_GUI) && defined(FEAT_GUI_MOTIF) |
18753
6e3dc2d630c2
patch 8.1.2366: using old C style comments
Bram Moolenaar <Bram@vim.org>
parents:
18671
diff
changeset
|
1163 # define FEAT_BEVAL_TIP // balloon eval used for toolbar tooltip |
7 | 1164 #endif |
1165 | |
12865
ebb4f6c93598
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12841
diff
changeset
|
1166 /* |
ebb4f6c93598
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12841
diff
changeset
|
1167 * +balloon_eval_term Allow balloon expression evaluation in the terminal. |
ebb4f6c93598
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12841
diff
changeset
|
1168 */ |
13422
6dbf1e9ebd1f
patch 8.0.1585: enabling beval_term feature in Win32 GUI
Christian Brabandt <cb@256bit.org>
parents:
13416
diff
changeset
|
1169 #if defined(FEAT_HUGE) && defined(FEAT_TIMERS) && \ |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
1170 (defined(UNIX) || defined(VMS) || \ |
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
1171 (defined(MSWIN) && (!defined(FEAT_GUI_MSWIN) || defined(VIMDLL)))) |
12871
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1172 # define FEAT_BEVAL_TERM |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1173 #endif |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1174 |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1175 #if defined(FEAT_BEVAL_GUI) || defined(FEAT_BEVAL_TERM) |
1a450ce6980c
patch 8.0.1312: balloon_show() only works in terminal when compiled with GUI
Christian Brabandt <cb@256bit.org>
parents:
12865
diff
changeset
|
1176 # define FEAT_BEVAL |
12865
ebb4f6c93598
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12841
diff
changeset
|
1177 #endif |
ebb4f6c93598
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
Christian Brabandt <cb@256bit.org>
parents:
12841
diff
changeset
|
1178 |
28303
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1179 // Motif is X11 |
9849df834f1d
patch 8.2.4677: the Athena GUI support is outdated
Bram Moolenaar <Bram@vim.org>
parents:
27986
diff
changeset
|
1180 #if defined(FEAT_GUI_MOTIF) |
692 | 1181 # define FEAT_GUI_X11 |
1182 #endif | |
1183 | |
15510
41fbbcea0f1b
patch 8.1.0763: nobody is using the Sun Workshop support
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
1184 #if defined(FEAT_NETBEANS_INTG) |
41fbbcea0f1b
patch 8.1.0763: nobody is using the Sun Workshop support
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
1185 // NetBeans uses menus. |
7 | 1186 # if !defined(FEAT_MENU) |
1187 # define FEAT_MENU | |
1188 # endif | |
1189 #endif | |
1190 | |
15510
41fbbcea0f1b
patch 8.1.0763: nobody is using the Sun Workshop support
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
1191 #if 0 |
7 | 1192 /* |
1193 * +footer Motif only: Add a message area at the bottom of the | |
1194 * main window area. | |
1195 */ | |
1196 # define FEAT_FOOTER | |
1197 #endif | |
820 | 1198 |
1199 /* | |
1200 * +autochdir 'autochdir' option. | |
1201 */ | |
15510
41fbbcea0f1b
patch 8.1.0763: nobody is using the Sun Workshop support
Bram Moolenaar <Bram@vim.org>
parents:
15450
diff
changeset
|
1202 #if defined(FEAT_NETBEANS_INTG) || defined(FEAT_BIG) |
820 | 1203 # define FEAT_AUTOCHDIR |
1204 #endif | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1205 |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1206 /* |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1207 * +persistent_undo 'undofile', 'undodir' options, :wundo and :rundo, and |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1208 * implementation. |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1209 */ |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1210 #ifdef FEAT_NORMAL |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1211 # define FEAT_PERSISTENT_UNDO |
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2209
diff
changeset
|
1212 #endif |
3482 | 1213 |
1214 /* | |
1215 * +filterpipe | |
1216 */ | |
1217 #if (defined(UNIX) && !defined(USE_SYSTEM)) \ | |
15868
7fad90423bd2
patch 8.1.0941: macros for MS-Windows are inconsistent
Bram Moolenaar <Bram@vim.org>
parents:
15636
diff
changeset
|
1218 || (defined(MSWIN) && defined(FEAT_GUI_MSWIN)) |
3482 | 1219 # define FEAT_FILTERPIPE |
1220 #endif | |
13314
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1221 |
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1222 /* |
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1223 * +vtp: Win32 virtual console. |
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1224 */ |
16451
7ae2396cef62
patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exe
Bram Moolenaar <Bram@vim.org>
parents:
16411
diff
changeset
|
1225 #if (!defined(FEAT_GUI) || defined(VIMDLL)) && defined(MSWIN) |
13314
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1226 # define FEAT_VTP |
65c3e8259124
patch 8.0.1531: cannot use 24 bit colors in MS-Windows console
Christian Brabandt <cb@256bit.org>
parents:
12948
diff
changeset
|
1227 #endif |
26877
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1228 |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1229 #if defined(DYNAMIC_PERL) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1230 || defined(DYNAMIC_PYTHON) || defined(DYNAMIC_PYTHON3) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1231 || defined(DYNAMIC_RUBY) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1232 || defined(DYNAMIC_TCL) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1233 || defined(DYNAMIC_ICONV) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1234 || defined(DYNAMIC_GETTEXT) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1235 || defined(DYNAMIC_MZSCHEME) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1236 || defined(DYNAMIC_LUA) \ |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1237 || defined(FEAT_TERMINAL) |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1238 # define USING_LOAD_LIBRARY |
06a137af96f8
patch 8.2.3967: error messages are spread out
Bram Moolenaar <Bram@vim.org>
parents:
26536
diff
changeset
|
1239 #endif |