annotate src/version.c @ 5294:359743c1f59a v7.4

release version 7.4
author Bram Moolenaar <bram@vim.org>
date Sat, 10 Aug 2013 15:00:24 +0200
parents d5d6b78cff09
children 3e9107b86b68
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 /* vi:set ts=8 sts=4 sw=4:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 * VIM - Vi IMproved by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 *
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 * Do ":help uganda" in Vim to read copying and usage conditions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 * Do ":help credits" in Vim to see a list of people who contributed.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 * See README.txt for an overview of the Vim source code.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 #include "vim.h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 #ifdef AMIGA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 # include <time.h> /* for time() */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 * Vim originated from Stevie version 3.6 (Fish disk 217) by GRWalter (Fred)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 * It has been changed beyond recognition since then.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 *
26
404aac550f35 updated for version 7.0017
vimboss
parents: 14
diff changeset
20 * Differences between version 6.x and 7.x can be found with ":help version7".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 * Differences between version 5.x and 6.x can be found with ":help version6".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 * Differences between version 4.x and 5.x can be found with ":help version5".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 * Differences between version 3.0 and 4.x can be found with ":help version4".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 * All the remarks about older versions have been removed, they are not very
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 * interesting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 #include "version.h"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
378
6b49757d378c updated for version 7.0098
vimboss
parents: 170
diff changeset
30 char *Version = VIM_VERSION_SHORT;
6b49757d378c updated for version 7.0098
vimboss
parents: 170
diff changeset
31 static char *mediumVersion = VIM_VERSION_MEDIUM;
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 #if defined(HAVE_DATE_TIME) || defined(PROTO)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 # if (defined(VMS) && defined(VAXC)) || defined(PROTO)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 char longVersion[sizeof(VIM_VERSION_LONG_DATE) + sizeof(__DATE__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 + sizeof(__TIME__) + 3];
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
37
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 make_version()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 * Construct the long version string. Necessary because
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 * VAX C can't catenate strings in the preprocessor.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 strcpy(longVersion, VIM_VERSION_LONG_DATE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 strcat(longVersion, __DATE__);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 strcat(longVersion, " ");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 strcat(longVersion, __TIME__);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 strcat(longVersion, ")");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 char *longVersion = VIM_VERSION_LONG_DATE __DATE__ " " __TIME__ ")";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 char *longVersion = VIM_VERSION_LONG;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
5166
467efeee8f9e updated for version 7.4a.009
Bram Moolenaar <bram@vim.org>
parents: 5164
diff changeset
58 static void list_features __ARGS((void));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 static void version_msg __ARGS((char *s));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 static char *(features[]) =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 #ifdef AMIGA /* only for Amiga systems */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 # ifdef FEAT_ARP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 "+ARP",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 "-ARP",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 #ifdef FEAT_ARABIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 "+arabic",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 "-arabic",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 #ifdef FEAT_AUTOCMD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 "+autocmd",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 "-autocmd",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 #ifdef FEAT_BEVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 "+balloon_eval",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 "-balloon_eval",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 #ifdef FEAT_BROWSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 "+browse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 "-browse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 #ifdef NO_BUILTIN_TCAPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 "-builtin_terms",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 #ifdef SOME_BUILTIN_TCAPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 "+builtin_terms",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 #ifdef ALL_BUILTIN_TCAPS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 "++builtin_terms",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 #ifdef FEAT_BYTEOFF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 "+byte_offset",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 "-byte_offset",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 #ifdef FEAT_CINDENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 "+cindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 "-cindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 #ifdef FEAT_CLIENTSERVER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 "+clientserver",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 "-clientserver",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 #ifdef FEAT_CLIPBOARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 "+clipboard",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 "-clipboard",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 #ifdef FEAT_CMDL_COMPL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 "+cmdline_compl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 "-cmdline_compl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 #ifdef FEAT_CMDHIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 "+cmdline_hist",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 "-cmdline_hist",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 #ifdef FEAT_CMDL_INFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130 "+cmdline_info",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 "-cmdline_info",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 #ifdef FEAT_COMMENTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 "+comments",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 "-comments",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 #endif
2250
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
139 #ifdef FEAT_CONCEAL
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
140 "+conceal",
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
141 #else
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
142 "-conceal",
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
143 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 #ifdef FEAT_CRYPT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 "+cryptv",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 "-cryptv",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 #ifdef FEAT_CSCOPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 "+cscope",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 "-cscope",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 #endif
2250
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
154 #ifdef FEAT_CURSORBIND
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
155 "+cursorbind",
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
156 #else
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
157 "-cursorbind",
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
158 #endif
647
19106f131c87 updated for version 7.0188
vimboss
parents: 615
diff changeset
159 #ifdef CURSOR_SHAPE
19106f131c87 updated for version 7.0188
vimboss
parents: 615
diff changeset
160 "+cursorshape",
19106f131c87 updated for version 7.0188
vimboss
parents: 615
diff changeset
161 #else
19106f131c87 updated for version 7.0188
vimboss
parents: 615
diff changeset
162 "-cursorshape",
19106f131c87 updated for version 7.0188
vimboss
parents: 615
diff changeset
163 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 #if defined(FEAT_CON_DIALOG) && defined(FEAT_GUI_DIALOG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 "+dialog_con_gui",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 # if defined(FEAT_CON_DIALOG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 "+dialog_con",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 # if defined(FEAT_GUI_DIALOG)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 "+dialog_gui",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 "-dialog",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 #ifdef FEAT_DIFF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 "+diff",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 "-diff",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 #ifdef FEAT_DIGRAPHS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 "+digraphs",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 "-digraphs",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 #ifdef FEAT_DND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 "+dnd",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 "-dnd",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 #ifdef EBCDIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 "+ebcdic",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 "-ebcdic",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 #ifdef FEAT_EMACS_TAGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 "+emacs_tags",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 "-emacs_tags",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 #ifdef FEAT_EVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 "+eval",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 "-eval",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 #ifdef FEAT_EX_EXTRA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 "+ex_extra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 "-ex_extra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 #ifdef FEAT_SEARCH_EXTRA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 "+extra_search",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 "-extra_search",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 #ifdef FEAT_FKMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 "+farsi",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 "-farsi",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 #ifdef FEAT_SEARCHPATH
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 "+file_in_path",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 "-file_in_path",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 #ifdef FEAT_FIND_ID
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 "+find_in_path",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230 "-find_in_path",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 #endif
1621
82b5078be2dd updated for version 7.2a
vimboss
parents: 1617
diff changeset
232 #ifdef FEAT_FLOAT
82b5078be2dd updated for version 7.2a
vimboss
parents: 1617
diff changeset
233 "+float",
82b5078be2dd updated for version 7.2a
vimboss
parents: 1617
diff changeset
234 #else
82b5078be2dd updated for version 7.2a
vimboss
parents: 1617
diff changeset
235 "-float",
82b5078be2dd updated for version 7.2a
vimboss
parents: 1617
diff changeset
236 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 #ifdef FEAT_FOLDING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 "+folding",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 "-folding",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 #ifdef FEAT_FOOTER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 "+footer",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 "-footer",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 /* only interesting on Unix systems */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 #if !defined(USE_SYSTEM) && defined(UNIX)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 "+fork()",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 #ifdef FEAT_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 # ifdef DYNAMIC_GETTEXT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 "+gettext/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 "+gettext",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 "-gettext",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 #ifdef FEAT_HANGULIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 "+hangul_input",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 "-hangul_input",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 #if (defined(HAVE_ICONV_H) && defined(USE_ICONV)) || defined(DYNAMIC_ICONV)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 # ifdef DYNAMIC_ICONV
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 "+iconv/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269 "+iconv",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
272 "-iconv",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
273 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
274 #ifdef FEAT_INS_EXPAND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 "+insert_expand",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 "-insert_expand",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 #ifdef FEAT_JUMPLIST
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 "+jumplist",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 "-jumplist",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 #ifdef FEAT_KEYMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 "+keymap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287 "-keymap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289 #ifdef FEAT_LANGMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 "+langmap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 "-langmap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 #ifdef FEAT_LIBCALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 "+libcall",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297 "-libcall",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 #ifdef FEAT_LINEBREAK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 "+linebreak",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 "-linebreak",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 #ifdef FEAT_LISP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 "+lispindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307 "-lispindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 #ifdef FEAT_LISTCMDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310 "+listcmds",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 "-listcmds",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 #ifdef FEAT_LOCALMAP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 "+localmap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 "-localmap",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 #endif
2320
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
319 #ifdef FEAT_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
320 # ifdef DYNAMIC_LUA
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
321 "+lua/dyn",
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
322 # else
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
323 "+lua",
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
324 # endif
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
325 #else
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
326 "-lua",
966a5609669e Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents: 2275
diff changeset
327 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 #ifdef FEAT_MENU
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 "+menu",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 "-menu",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 #ifdef FEAT_SESSION
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 "+mksession",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336 "-mksession",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338 #ifdef FEAT_MODIFY_FNAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 "+modify_fname",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341 "-modify_fname",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 #ifdef FEAT_MOUSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 "+mouse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 # ifdef FEAT_MOUSESHAPE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 "+mouseshape",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 "-mouseshape",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 "-mouse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352 #endif
3898
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
353
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354 #if defined(UNIX) || defined(VMS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355 # ifdef FEAT_MOUSE_DEC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 "+mouse_dec",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 "-mouse_dec",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 # ifdef FEAT_MOUSE_GPM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 "+mouse_gpm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 "-mouse_gpm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 # ifdef FEAT_MOUSE_JSB
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 "+mouse_jsbterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 "-mouse_jsbterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 # ifdef FEAT_MOUSE_NET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 "+mouse_netterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 "-mouse_netterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375 #endif
3898
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
376
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 #ifdef __QNX__
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378 # ifdef FEAT_MOUSE_PTERM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 "+mouse_pterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381 "-mouse_pterm",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 #endif
3898
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
384
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
385 #if defined(UNIX) || defined(VMS)
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
386 # ifdef FEAT_MOUSE_SGR
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
387 "+mouse_sgr",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
388 # else
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
389 "-mouse_sgr",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
390 # endif
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
391 # ifdef FEAT_SYSMOUSE
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
392 "+mouse_sysmouse",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
393 # else
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
394 "-mouse_sysmouse",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
395 # endif
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
396 # ifdef FEAT_MOUSE_URXVT
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
397 "+mouse_urxvt",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
398 # else
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
399 "-mouse_urxvt",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
400 # endif
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
401 # ifdef FEAT_MOUSE_XTERM
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
402 "+mouse_xterm",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
403 # else
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
404 "-mouse_xterm",
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
405 # endif
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
406 #endif
0aa74f2f50a8 updated for version 7.3.705
Bram Moolenaar <bram@vim.org>
parents: 3896
diff changeset
407
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 #ifdef FEAT_MBYTE_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 # ifdef DYNAMIC_IME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 "+multi_byte_ime/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412 "+multi_byte_ime",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 # ifdef FEAT_MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 "+multi_byte",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 "-multi_byte",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 #ifdef FEAT_MULTI_LANG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 "+multi_lang",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 "-multi_lang",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 #endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 11
diff changeset
426 #ifdef FEAT_MZSCHEME
132
d6009de12681 updated for version 7.0044
vimboss
parents: 68
diff changeset
427 # ifdef DYNAMIC_MZSCHEME
d6009de12681 updated for version 7.0044
vimboss
parents: 68
diff changeset
428 "+mzscheme/dyn",
d6009de12681 updated for version 7.0044
vimboss
parents: 68
diff changeset
429 # else
14
946da5994c01 updated for version 7.0006
vimboss
parents: 11
diff changeset
430 "+mzscheme",
132
d6009de12681 updated for version 7.0044
vimboss
parents: 68
diff changeset
431 # endif
14
946da5994c01 updated for version 7.0006
vimboss
parents: 11
diff changeset
432 #else
946da5994c01 updated for version 7.0006
vimboss
parents: 11
diff changeset
433 "-mzscheme",
946da5994c01 updated for version 7.0006
vimboss
parents: 11
diff changeset
434 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435 #ifdef FEAT_NETBEANS_INTG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 "+netbeans_intg",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438 "-netbeans_intg",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
439 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
440 #ifdef FEAT_GUI_W32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
441 # ifdef FEAT_OLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
442 "+ole",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
443 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
444 "-ole",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447 #ifdef FEAT_PATH_EXTRA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 "+path_extra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 "-path_extra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452 #ifdef FEAT_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 # ifdef DYNAMIC_PERL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 "+perl/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 "+perl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 "-perl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460 #endif
2214
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
461 #ifdef FEAT_PERSISTENT_UNDO
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
462 "+persistent_undo",
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
463 #else
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
464 "-persistent_undo",
f8222d1f9a73 Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents: 2154
diff changeset
465 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 #ifdef FEAT_PRINTER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467 # ifdef FEAT_POSTSCRIPT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 "+postscript",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 "-postscript",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 "+printer",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 "-printer",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 #endif
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 132
diff changeset
476 #ifdef FEAT_PROFILE
8c60f65311fa updated for version 7.0052
vimboss
parents: 132
diff changeset
477 "+profile",
8c60f65311fa updated for version 7.0052
vimboss
parents: 132
diff changeset
478 #else
8c60f65311fa updated for version 7.0052
vimboss
parents: 132
diff changeset
479 "-profile",
8c60f65311fa updated for version 7.0052
vimboss
parents: 132
diff changeset
480 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
481 #ifdef FEAT_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
482 # ifdef DYNAMIC_PYTHON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
483 "+python/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485 "+python",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 "-python",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 #endif
2329
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
490 #ifdef FEAT_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
491 # ifdef DYNAMIC_PYTHON3
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
492 "+python3/dyn",
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
493 # else
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
494 "+python3",
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
495 # endif
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
496 #else
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
497 "-python3",
ad2889f48843 Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents: 2320
diff changeset
498 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
499 #ifdef FEAT_QUICKFIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
500 "+quickfix",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
501 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 "-quickfix",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503 #endif
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 647
diff changeset
504 #ifdef FEAT_RELTIME
b933657f7c9d updated for version 7.0g01
vimboss
parents: 647
diff changeset
505 "+reltime",
b933657f7c9d updated for version 7.0g01
vimboss
parents: 647
diff changeset
506 #else
b933657f7c9d updated for version 7.0g01
vimboss
parents: 647
diff changeset
507 "-reltime",
b933657f7c9d updated for version 7.0g01
vimboss
parents: 647
diff changeset
508 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
509 #ifdef FEAT_RIGHTLEFT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510 "+rightleft",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 "-rightleft",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 #ifdef FEAT_RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 # ifdef DYNAMIC_RUBY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 "+ruby/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518 "+ruby",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 "-ruby",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 #ifdef FEAT_SCROLLBIND
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 "+scrollbind",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526 "-scrollbind",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
527 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
528 #ifdef FEAT_SIGNS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
529 "+signs",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
530 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
531 "-signs",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
532 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
533 #ifdef FEAT_SMARTINDENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
534 "+smartindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 "-smartindent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 #ifdef FEAT_SNIFF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 "+sniff",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541 "-sniff",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 #endif
1989
1fbbe04a950f updated for version 7.2-286
vimboss
parents: 1988
diff changeset
543 #ifdef STARTUPTIME
1fbbe04a950f updated for version 7.2-286
vimboss
parents: 1988
diff changeset
544 "+startuptime",
1fbbe04a950f updated for version 7.2-286
vimboss
parents: 1988
diff changeset
545 #else
1fbbe04a950f updated for version 7.2-286
vimboss
parents: 1988
diff changeset
546 "-startuptime",
1fbbe04a950f updated for version 7.2-286
vimboss
parents: 1988
diff changeset
547 #endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 #ifdef FEAT_STL_OPT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 "+statusline",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551 "-statusline",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
552 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
553 #ifdef FEAT_SUN_WORKSHOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
554 "+sun_workshop",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
555 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
556 "-sun_workshop",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 #ifdef FEAT_SYN_HL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 "+syntax",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 "-syntax",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563 /* only interesting on Unix systems */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 #if defined(USE_SYSTEM) && (defined(UNIX) || defined(__EMX__))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 "+system()",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 #ifdef FEAT_TAG_BINS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568 "+tag_binary",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 "-tag_binary",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 #ifdef FEAT_TAG_OLDSTATIC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 "+tag_old_static",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
575 "-tag_old_static",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
576 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
577 #ifdef FEAT_TAG_ANYWHITE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578 "+tag_any_white",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 "-tag_any_white",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
581 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582 #ifdef FEAT_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 # ifdef DYNAMIC_TCL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584 "+tcl/dyn",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 "+tcl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589 "-tcl",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 #if defined(UNIX) || defined(__EMX__)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 /* only Unix (or OS/2 with EMX!) can have terminfo instead of termcap */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 # ifdef TERMINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 "+terminfo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 "-terminfo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 #else /* unix always includes termcap support */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 # ifdef HAVE_TGETENT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600 "+tgetent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 "-tgetent",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605 #ifdef FEAT_TERMRESPONSE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 "+termresponse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
608 "-termresponse",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
609 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
610 #ifdef FEAT_TEXTOBJ
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
611 "+textobjects",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
612 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
613 "-textobjects",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
614 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
615 #ifdef FEAT_TITLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
616 "+title",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 "-title",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 #ifdef FEAT_TOOLBAR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 "+toolbar",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623 "-toolbar",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 #ifdef FEAT_USR_CMDS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 "+user_commands",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 "-user_commands",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 #ifdef FEAT_VERTSPLIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 "+vertsplit",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
633 "-vertsplit",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
634 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
635 #ifdef FEAT_VIRTUALEDIT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
636 "+virtualedit",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
637 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
638 "-virtualedit",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
639 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
640 #ifdef FEAT_VISUAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
641 "+visual",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 # ifdef FEAT_VISUALEXTRA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 "+visualextra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 "-visualextra",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
646 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
647 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
648 "-visual",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 #ifdef FEAT_VIMINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 "+viminfo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 "-viminfo",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 #ifdef FEAT_VREPLACE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 "+vreplace",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
657 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658 "-vreplace",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 #ifdef FEAT_WILDIGN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 "+wildignore",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 "-wildignore",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 #ifdef FEAT_WILDMENU
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666 "+wildmenu",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 "-wildmenu",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 #ifdef FEAT_WINDOWS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 "+windows",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 "-windows",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 #ifdef FEAT_WRITEBACKUP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 "+writebackup",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678 "-writebackup",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 #if defined(UNIX) || defined(VMS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 # ifdef FEAT_X11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 "+X11",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684 "-X11",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 #ifdef FEAT_XFONTSET
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 "+xfontset",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
690 "-xfontset",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 #ifdef FEAT_XIM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693 "+xim",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
694 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
695 "-xim",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
696 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
697 #if defined(UNIX) || defined(VMS)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
698 # ifdef USE_XSMP_INTERACT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 "+xsmp_interact",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 # ifdef USE_XSMP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702 "+xsmp",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 "-xsmp",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 # ifdef FEAT_XCLIPBOARD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 "+xterm_clipboard",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 "-xterm_clipboard",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 #ifdef FEAT_XTERM_SAVE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 "+xterm_save",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 "-xterm_save",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718 #ifdef WIN3264
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 # ifdef FEAT_XPM_W32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 "+xpm_w32",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722 "-xpm_w32",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 NULL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
728 static int included_patches[] =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
729 { /* Add new patch number below this line */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730 /**/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
731 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
732 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733
1760
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
734 /*
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
735 * Place to put a short description when adding a feature with a patch.
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
736 * Keep it short, e.g.,: "relative numbers", "persistent undo".
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
737 * Also add a comment marker to separate the lines.
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
738 * See the official Vim patches for the diff format: It must use a context of
1777
7209e03df100 updated for version 7.2-075
vimboss
parents: 1776
diff changeset
739 * one line only. Create it by hand or use "diff -C2" and edit the patch.
1760
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
740 */
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
741 static char *(extra_patches[]) =
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
742 { /* Add your patch description below this line */
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
743 /**/
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
744 NULL
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
745 };
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
746
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748 highest_patch()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
749 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
750 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
751 int h = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
752
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 for (i = 0; included_patches[i] != 0; ++i)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754 if (included_patches[i] > h)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
755 h = included_patches[i];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 return h;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 #if defined(FEAT_EVAL) || defined(PROTO)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761 * Return TRUE if patch "n" has been included.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
762 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
763 int
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
764 has_patch(n)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
765 int n;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
766 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
767 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
768
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
769 for (i = 0; included_patches[i] != 0; ++i)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
770 if (included_patches[i] == n)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
771 return TRUE;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
772 return FALSE;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
773 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
774 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
775
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
776 void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
777 ex_version(eap)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
778 exarg_T *eap;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
779 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
780 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
781 * Ignore a ":version 9.99" command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
782 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
783 if (*eap->arg == NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
784 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
785 msg_putchar('\n');
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
786 list_version();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
787 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
788 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
789
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
790 /*
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
791 * List all features aligned in columns, dictionary style.
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
792 */
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
793 static void
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
794 list_features()
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
795 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
796 int i;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
797 int ncol;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
798 int nrow;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
799 int nfeat = 0;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
800 int width = 0;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
801
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
802 /* Find the length of the longest feature name, use that + 1 as the column
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
803 * width */
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
804 for (i = 0; features[i] != NULL; ++i)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
805 {
4160
670e576a58d1 updated for version 7.3.832
Bram Moolenaar <bram@vim.org>
parents: 4157
diff changeset
806 int l = (int)STRLEN(features[i]);
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
807
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
808 if (l > width)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
809 width = l;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
810 ++nfeat;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
811 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
812 width += 1;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
813
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
814 if (Columns < width)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
815 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
816 /* Not enough screen columns - show one per line */
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
817 for (i = 0; features[i] != NULL; ++i)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
818 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
819 version_msg(features[i]);
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
820 if (msg_col > 0)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
821 msg_putchar('\n');
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
822 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
823 return;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
824 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
825
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
826 /* The rightmost column doesn't need a separator.
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
827 * Sacrifice it to fit in one more column if possible. */
4170
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
828 ncol = (int) (Columns + 1) / width;
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
829 nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0);
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
830
4170
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
831 /* i counts columns then rows. idx counts rows then columns. */
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
832 for (i = 0; !got_int && i < nrow * ncol; ++i)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
833 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
834 int idx = (i / ncol) + (i % ncol) * nrow;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
835
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
836 if (idx < nfeat)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
837 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
838 int last_col = (i + 1) % ncol == 0;
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
839
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
840 msg_puts((char_u *)features[idx]);
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
841 if (last_col)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
842 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
843 if (msg_col > 0)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
844 msg_putchar('\n');
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
845 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
846 else
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
847 {
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
848 while (msg_col % width)
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
849 msg_putchar(' ');
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
850 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
851 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
852 else
4170
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
853 {
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
854 if (msg_col > 0)
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
855 msg_putchar('\n');
14698f63de8d updated for version 7.3.837
Bram Moolenaar <bram@vim.org>
parents: 4168
diff changeset
856 }
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
857 }
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
858 }
4160
670e576a58d1 updated for version 7.3.832
Bram Moolenaar <bram@vim.org>
parents: 4157
diff changeset
859
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
860 void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
861 list_version()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
862 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
863 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
864 int first;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
865 char *s = "";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
866
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
867 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
868 * When adding features here, don't forget to update the list of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
869 * internal variables in eval.c!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
870 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
871 MSG(longVersion);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
872 #ifdef WIN3264
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
873 # ifdef FEAT_GUI_W32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
874 # if defined(_MSC_VER) && (_MSC_VER <= 1010)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
875 /* Only MS VC 4.1 and earlier can do Win32s */
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
876 MSG_PUTS(_("\nMS-Windows 16/32-bit GUI version"));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
877 # else
990
9adbd26f7fee updated for version 7.0-116
vimboss
parents: 989
diff changeset
878 # ifdef _WIN64
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
879 MSG_PUTS(_("\nMS-Windows 64-bit GUI version"));
990
9adbd26f7fee updated for version 7.0-116
vimboss
parents: 989
diff changeset
880 # else
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
881 MSG_PUTS(_("\nMS-Windows 32-bit GUI version"));
990
9adbd26f7fee updated for version 7.0-116
vimboss
parents: 989
diff changeset
882 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
883 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
884 if (gui_is_win32s())
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
885 MSG_PUTS(_(" in Win32s mode"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
886 # ifdef FEAT_OLE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
887 MSG_PUTS(_(" with OLE support"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
888 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
889 # else
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
890 # ifdef _WIN64
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
891 MSG_PUTS(_("\nMS-Windows 64-bit console version"));
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
892 # else
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
893 MSG_PUTS(_("\nMS-Windows 32-bit console version"));
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
894 # endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
895 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
896 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
897 #ifdef WIN16
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
898 MSG_PUTS(_("\nMS-Windows 16-bit version"));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
899 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
900 #ifdef MSDOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
901 # ifdef DJGPP
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
902 MSG_PUTS(_("\n32-bit MS-DOS version"));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
903 # else
1607
4f1130893a1c updated for version 7.1-320
vimboss
parents: 1606
diff changeset
904 MSG_PUTS(_("\n16-bit MS-DOS version"));
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
905 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
906 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
907 #ifdef MACOS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
908 # ifdef MACOS_X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
909 # ifdef MACOS_X_UNIX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
910 MSG_PUTS(_("\nMacOS X (unix) version"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
911 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
912 MSG_PUTS(_("\nMacOS X version"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
913 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
914 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
915 MSG_PUTS(_("\nMacOS version"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
916 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
917 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
918
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
919 #ifdef VMS
1705
5b43a3a9454a updated for version 7.2-003
vimboss
parents: 1704
diff changeset
920 MSG_PUTS(_("\nOpenVMS version"));
1045
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
921 # ifdef HAVE_PATHDEF
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
922 if (*compiled_arch != NUL)
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
923 {
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
924 MSG_PUTS(" - ");
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
925 MSG_PUTS(compiled_arch);
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
926 }
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
927 # endif
7f01e52cc97a updated for version 7.0-171
vimboss
parents: 1044
diff changeset
928
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
929 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
930
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
931 /* Print the list of patch numbers if there is at least one. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
932 /* Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
933 if (included_patches[0] != 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
934 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
935 MSG_PUTS(_("\nIncluded patches: "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
936 first = -1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
937 /* find last one */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
938 for (i = 0; included_patches[i] != 0; ++i)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
939 ;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
940 while (--i >= 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
941 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
942 if (first < 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
943 first = included_patches[i];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
944 if (i == 0 || included_patches[i - 1] != included_patches[i] + 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
945 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
946 MSG_PUTS(s);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
947 s = ", ";
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
948 msg_outnum((long)first);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
949 if (first != included_patches[i])
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
950 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
951 MSG_PUTS("-");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
952 msg_outnum((long)included_patches[i]);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
953 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
954 first = -1;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
955 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
956 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
957 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
958
1760
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
959 /* Print the list of extra patch descriptions if there is at least one. */
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
960 if (extra_patches[0] != NULL)
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
961 {
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
962 MSG_PUTS(_("\nExtra patches: "));
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
963 s = "";
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
964 for (i = 0; extra_patches[i] != NULL; ++i)
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
965 {
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
966 MSG_PUTS(s);
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
967 s = ", ";
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
968 MSG_PUTS(extra_patches[i]);
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
969 }
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
970 }
f3d3545d6bf6 updated for version 7.2-058
vimboss
parents: 1759
diff changeset
971
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
972 #ifdef MODIFIED_BY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
973 MSG_PUTS("\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
974 MSG_PUTS(_("Modified by "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
975 MSG_PUTS(MODIFIED_BY);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
976 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
977
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
978 #ifdef HAVE_PATHDEF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
979 if (*compiled_user != NUL || *compiled_sys != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
980 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
981 MSG_PUTS(_("\nCompiled "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
982 if (*compiled_user != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
983 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
984 MSG_PUTS(_("by "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
985 MSG_PUTS(compiled_user);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
986 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
987 if (*compiled_sys != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
988 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
989 MSG_PUTS("@");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
990 MSG_PUTS(compiled_sys);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
991 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
992 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
993 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
994
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
995 #ifdef FEAT_HUGE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
996 MSG_PUTS(_("\nHuge version "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
997 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
998 # ifdef FEAT_BIG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
999 MSG_PUTS(_("\nBig version "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1000 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1001 # ifdef FEAT_NORMAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1002 MSG_PUTS(_("\nNormal version "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1003 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1004 # ifdef FEAT_SMALL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1005 MSG_PUTS(_("\nSmall version "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1006 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1007 MSG_PUTS(_("\nTiny version "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1008 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1009 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1010 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1011 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1012 #ifndef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1013 MSG_PUTS(_("without GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1014 #else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1015 # ifdef FEAT_GUI_GTK
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1016 # ifdef FEAT_GUI_GNOME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1017 MSG_PUTS(_("with GTK2-GNOME GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1018 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1019 MSG_PUTS(_("with GTK2 GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1020 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1021 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1022 # ifdef FEAT_GUI_MOTIF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1023 MSG_PUTS(_("with X11-Motif GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1024 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1025 # ifdef FEAT_GUI_ATHENA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1026 # ifdef FEAT_GUI_NEXTAW
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1027 MSG_PUTS(_("with X11-neXtaw GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1028 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1029 MSG_PUTS(_("with X11-Athena GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1030 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1031 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1032 # ifdef FEAT_GUI_PHOTON
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1033 MSG_PUTS(_("with Photon GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1034 # else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1035 # if defined(MSWIN)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1036 MSG_PUTS(_("with GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1037 # else
2250
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
1038 # if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1039 MSG_PUTS(_("with Carbon GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1040 # else
2250
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
1041 # if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1042 MSG_PUTS(_("with Cocoa GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1043 # else
2250
1bac28a53fae Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents: 2214
diff changeset
1044 # if defined(MACOS)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1045 MSG_PUTS(_("with (classic) GUI."));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1046 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1047 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1048 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1049 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1050 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1051 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1052 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1053 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1054 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1055 version_msg(_(" Features included (+) or not (-):\n"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1056
4147
646cb6b6ff23 updated for version 7.3.826
Bram Moolenaar <bram@vim.org>
parents: 4145
diff changeset
1057 list_features();
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1058
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1059 #ifdef SYS_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1060 version_msg(_(" system vimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1061 version_msg(SYS_VIMRC_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1062 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1063 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1064 #ifdef USR_VIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1065 version_msg(_(" user vimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1066 version_msg(USR_VIMRC_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1067 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1068 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1069 #ifdef USR_VIMRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1070 version_msg(_(" 2nd user vimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1071 version_msg(USR_VIMRC_FILE2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1072 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1073 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1074 #ifdef USR_VIMRC_FILE3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1075 version_msg(_(" 3rd user vimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1076 version_msg(USR_VIMRC_FILE3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1077 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1078 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1079 #ifdef USR_EXRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1080 version_msg(_(" user exrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1081 version_msg(USR_EXRC_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1082 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1083 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1084 #ifdef USR_EXRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1085 version_msg(_(" 2nd user exrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1086 version_msg(USR_EXRC_FILE2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1087 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1088 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1089 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1090 # ifdef SYS_GVIMRC_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1091 version_msg(_(" system gvimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1092 version_msg(SYS_GVIMRC_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1093 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1094 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1095 version_msg(_(" user gvimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1096 version_msg(USR_GVIMRC_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1097 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1098 # ifdef USR_GVIMRC_FILE2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1099 version_msg(_("2nd user gvimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1100 version_msg(USR_GVIMRC_FILE2);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1101 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1102 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1103 # ifdef USR_GVIMRC_FILE3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1104 version_msg(_("3rd user gvimrc file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1105 version_msg(USR_GVIMRC_FILE3);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1106 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1107 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1108 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1109 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1110 # ifdef SYS_MENU_FILE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1111 version_msg(_(" system menu file: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1112 version_msg(SYS_MENU_FILE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1113 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1114 # endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1115 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1116 #ifdef HAVE_PATHDEF
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1117 if (*default_vim_dir != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1118 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1119 version_msg(_(" fall-back for $VIM: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1120 version_msg((char *)default_vim_dir);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1121 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1122 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1123 if (*default_vimruntime_dir != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1124 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1125 version_msg(_(" f-b for $VIMRUNTIME: \""));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1126 version_msg((char *)default_vimruntime_dir);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1127 version_msg("\"\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1128 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1129 version_msg(_("Compilation: "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1130 version_msg((char *)all_cflags);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1131 version_msg("\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1132 #ifdef VMS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1133 if (*compiler_version != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1134 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1135 version_msg(_("Compiler: "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1136 version_msg((char *)compiler_version);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1137 version_msg("\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1138 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1139 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1140 version_msg(_("Linking: "));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1141 version_msg((char *)all_lflags);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1142 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1143 #ifdef DEBUG
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1144 version_msg("\n");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1145 version_msg(_(" DEBUG BUILD"));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1146 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1147 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1149 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1150 * Output a string for the version message. If it's going to wrap, output a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1151 * newline, unless the message is too long to fit on the screen anyway.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1152 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1153 static void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1154 version_msg(s)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1155 char *s;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1156 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1157 int len = (int)STRLEN(s);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1159 if (!got_int && len < (int)Columns && msg_col + len >= (int)Columns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1160 && *s != '\n')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1161 msg_putchar('\n');
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1162 if (!got_int)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1163 MSG_PUTS(s);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1164 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1165
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1166 static void do_intro_line __ARGS((int row, char_u *mesg, int add_version, int attr));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1168 /*
5126
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1169 * Show the intro message when not editing a file.
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1170 */
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1171 void
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1172 maybe_intro_message()
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1173 {
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1174 if (bufempty()
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1175 && curbuf->b_fname == NULL
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1176 #ifdef FEAT_WINDOWS
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1177 && firstwin->w_next == NULL
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1178 #endif
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1179 && vim_strchr(p_shm, SHM_INTRO) == NULL)
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1180 intro_message(FALSE);
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1181 }
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1182
71859e71b1f9 updated for version 7.3.1306
Bram Moolenaar <bram@vim.org>
parents: 5124
diff changeset
1183 /*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1184 * Give an introductory message about Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1185 * Only used when starting Vim on an empty file, without a file name.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1186 * Or with the ":intro" command (for Sven :-).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1187 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1188 void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1189 intro_message(colon)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1190 int colon; /* TRUE for ":intro" */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1191 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1192 int i;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1193 int row;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1194 int blanklines;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1195 int sponsor;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1196 char *p;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1197 static char *(lines[]) =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1198 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1199 N_("VIM - Vi IMproved"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1200 "",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1201 N_("version "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1202 N_("by Bram Moolenaar et al."),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1203 #ifdef MODIFIED_BY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1204 " ",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1205 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1206 N_("Vim is open source and freely distributable"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1207 "",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1208 N_("Help poor children in Uganda!"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1209 N_("type :help iccf<Enter> for information "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1210 "",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1211 N_("type :q<Enter> to exit "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1212 N_("type :help<Enter> or <F1> for on-line help"),
26
404aac550f35 updated for version 7.0017
vimboss
parents: 14
diff changeset
1213 N_("type :help version7<Enter> for version info"),
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1214 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1215 "",
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1216 N_("Running in Vi compatible mode"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1217 N_("type :set nocp<Enter> for Vim defaults"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1218 N_("type :help cp-default<Enter> for info on this"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1219 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1220 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1221 static char *(gui_lines[]) =
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1222 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1223 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1224 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1225 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1226 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1227 #ifdef MODIFIED_BY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1228 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1229 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1230 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1231 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1232 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1233 N_("menu Help->Orphans for information "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1234 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1235 N_("Running modeless, typed text is inserted"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1236 N_("menu Edit->Global Settings->Toggle Insert Mode "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1237 N_(" for two modes "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1238 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1239 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1240 NULL,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1241 N_("menu Edit->Global Settings->Toggle Vi Compatible"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1242 N_(" for Vim defaults "),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1243 };
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1244 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1246 /* blanklines = screen height - # message lines */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1247 blanklines = (int)Rows - ((sizeof(lines) / sizeof(char *)) - 1);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1248 if (!p_cp)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1249 blanklines += 4; /* add 4 for not showing "Vi compatible" message */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1250 #if defined(WIN3264) && !defined(FEAT_GUI_W32)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1251 if (mch_windows95())
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1252 blanklines -= 3; /* subtract 3 for showing "Windows 95" message */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1253 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1254
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1255 #ifdef FEAT_WINDOWS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1256 /* Don't overwrite a statusline. Depends on 'cmdheight'. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1257 if (p_ls > 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1258 blanklines -= Rows - topframe->fr_height;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1259 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1260 if (blanklines < 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1261 blanklines = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1262
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1263 /* Show the sponsor and register message one out of four times, the Uganda
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1264 * message two out of four times. */
615
7fe13e0f5dce updated for version 7.0175
vimboss
parents: 574
diff changeset
1265 sponsor = (int)time(NULL);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1266 sponsor = ((sponsor & 2) == 0) - ((sponsor & 4) == 0);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1267
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1268 /* start displaying the message lines after half of the blank lines */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1269 row = blanklines / 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1270 if ((row >= 2 && Columns >= 50) || colon)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1271 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1272 for (i = 0; i < (int)(sizeof(lines) / sizeof(char *)); ++i)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1273 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1274 p = lines[i];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1275 #ifdef FEAT_GUI
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1276 if (p_im && gui.in_use && gui_lines[i] != NULL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1277 p = gui_lines[i];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1278 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1279 if (p == NULL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1280 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1281 if (!p_cp)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1282 break;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1283 continue;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1284 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1285 if (sponsor != 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1286 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1287 if (strstr(p, "children") != NULL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1288 p = sponsor < 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1289 ? N_("Sponsor Vim development!")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1290 : N_("Become a registered Vim user!");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1291 else if (strstr(p, "iccf") != NULL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1292 p = sponsor < 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1293 ? N_("type :help sponsor<Enter> for information ")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1294 : N_("type :help register<Enter> for information ");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1295 else if (strstr(p, "Orphans") != NULL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1296 p = N_("menu Help->Sponsor/Register for information ");
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1297 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1298 if (*p != NUL)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1299 do_intro_line(row, (char_u *)_(p), i == 2, 0);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1300 ++row;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1301 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1302 #if defined(WIN3264) && !defined(FEAT_GUI_W32)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1303 if (mch_windows95())
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1304 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1305 do_intro_line(++row,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1306 (char_u *)_("WARNING: Windows 95/98/ME detected"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1307 FALSE, hl_attr(HLF_E));
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1308 do_intro_line(++row,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1309 (char_u *)_("type :help windows95<Enter> for info on this"),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1310 FALSE, 0);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1311 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1312 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1313 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1314
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1315 /* Make the wait-return message appear just below the text. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1316 if (colon)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1317 msg_row = row;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1318 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1319
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1320 static void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1321 do_intro_line(row, mesg, add_version, attr)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1322 int row;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1323 char_u *mesg;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1324 int add_version;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1325 int attr;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1326 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1327 char_u vers[20];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1328 int col;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1329 char_u *p;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1330 int l;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1331 int clen;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1332 #ifdef MODIFIED_BY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1333 # define MODBY_LEN 150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1334 char_u modby[MODBY_LEN];
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1335
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1336 if (*mesg == ' ')
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1337 {
1491
a135270b7549 updated for version 7.1-206
vimboss
parents: 1490
diff changeset
1338 vim_strncpy(modby, (char_u *)_("Modified by "), MODBY_LEN - 1);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1339 l = STRLEN(modby);
1491
a135270b7549 updated for version 7.1-206
vimboss
parents: 1490
diff changeset
1340 vim_strncpy(modby + l, (char_u *)MODIFIED_BY, MODBY_LEN - l - 1);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1341 mesg = modby;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1342 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1343 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1344
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1345 /* Center the message horizontally. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1346 col = vim_strsize(mesg);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1347 if (add_version)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1348 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1349 STRCPY(vers, mediumVersion);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1350 if (highest_patch())
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1351 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1352 /* Check for 9.9x or 9.9xx, alpha/beta version */
2619
6a80537ac7aa updated for version 7.3.041
Bram Moolenaar <bram@vim.org>
parents: 2618
diff changeset
1353 if (isalpha((int)vers[3]))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1354 {
3396
43259e4542c7 updated for version 7.3.464
Bram Moolenaar <bram@vim.org>
parents: 3394
diff changeset
1355 int len = (isalpha((int)vers[4])) ? 5 : 4;
43259e4542c7 updated for version 7.3.464
Bram Moolenaar <bram@vim.org>
parents: 3394
diff changeset
1356 sprintf((char *)vers + len, ".%d%s", highest_patch(),
43259e4542c7 updated for version 7.3.464
Bram Moolenaar <bram@vim.org>
parents: 3394
diff changeset
1357 mediumVersion + len);
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1358 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1359 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1360 sprintf((char *)vers + 3, ".%d", highest_patch());
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1361 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1362 col += (int)STRLEN(vers);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1363 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1364 col = (Columns - col) / 2;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1365 if (col < 0)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1366 col = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1367
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1368 /* Split up in parts to highlight <> items differently. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1369 for (p = mesg; *p != NUL; p += l)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1370 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1371 clen = 0;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1372 for (l = 0; p[l] != NUL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1373 && (l == 0 || (p[l] != '<' && p[l - 1] != '>')); ++l)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1374 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1375 #ifdef FEAT_MBYTE
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1376 if (has_mbyte)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1377 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1378 clen += ptr2cells(p + l);
474
a5fcf36ef512 updated for version 7.0127
vimboss
parents: 419
diff changeset
1379 l += (*mb_ptr2len)(p + l) - 1;
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1380 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1381 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1382 #endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1383 clen += byte2cells(p[l]);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1384 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1385 screen_puts_len(p, l, row, col, *p == '<' ? hl_attr(HLF_8) : attr);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1386 col += clen;
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1387 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1388
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1389 /* Add the version number to the version line. */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1390 if (add_version)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1391 screen_puts(vers, row, col, 0);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1392 }
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1393
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1394 /*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1395 * ":intro": clear screen, display intro screen and wait for return.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1396 */
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1397 void
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1398 ex_intro(eap)
1876
932ff0c0f57b updated for version 7.2-173
vimboss
parents: 1875
diff changeset
1399 exarg_T *eap UNUSED;
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1400 {
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1401 screenclear();
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1402 intro_message(TRUE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1403 wait_return(TRUE);
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1404 }