7
|
1 /* vi:set ts=8 sts=4 sw=4:
|
|
2 *
|
|
3 * VIM - Vi IMproved by Bram Moolenaar
|
|
4 *
|
|
5 * Do ":help uganda" in Vim to read copying and usage conditions.
|
|
6 * Do ":help credits" in Vim to see a list of people who contributed.
|
|
7 */
|
|
8
|
|
9 /*
|
|
10 * This file defines the Ex commands.
|
|
11 * When DO_DECLARE_EXCMD is defined, the table with ex command names and
|
|
12 * options results.
|
|
13 * When DO_DECLARE_EXCMD is NOT defined, the enum with all the Ex commands
|
|
14 * results.
|
|
15 * This clever trick was invented by Ron Aaron.
|
|
16 */
|
|
17
|
|
18 /*
|
|
19 * When adding an Ex command:
|
|
20 * 1. Add an entry in the table below. Keep it sorted on the shortest
|
|
21 * version of the command name that works. If it doesn't start with a
|
|
22 * lower case letter, add it at the end.
|
|
23 * 2. Add a "case: CMD_xxx" in the big switch in ex_docmd.c.
|
|
24 * 3. Add an entry in the index for Ex commands at ":help ex-cmd-index".
|
|
25 * 4. Add documentation in ../doc/xxx.txt. Add a tag for both the short and
|
|
26 * long name of the command.
|
|
27 */
|
|
28
|
|
29 #ifdef RANGE
|
|
30 # undef RANGE /* SASC on Amiga defines it */
|
|
31 #endif
|
|
32
|
|
33 #define RANGE 0x001 /* allow a linespecs */
|
|
34 #define BANG 0x002 /* allow a ! after the command name */
|
|
35 #define EXTRA 0x004 /* allow extra args after command name */
|
|
36 #define XFILE 0x008 /* expand wildcards in extra part */
|
|
37 #define NOSPC 0x010 /* no spaces allowed in the extra part */
|
|
38 #define DFLALL 0x020 /* default file range is 1,$ */
|
|
39 #define WHOLEFOLD 0x040 /* extend range to include whole fold also
|
|
40 when less than two numbers given */
|
|
41 #define NEEDARG 0x080 /* argument required */
|
|
42 #define TRLBAR 0x100 /* check for trailing vertical bar */
|
|
43 #define REGSTR 0x200 /* allow "x for register designation */
|
|
44 #define COUNT 0x400 /* allow count in argument, after command */
|
|
45 #define NOTRLCOM 0x800 /* no trailing comment allowed */
|
|
46 #define ZEROR 0x1000 /* zero line number allowed */
|
|
47 #define USECTRLV 0x2000 /* do not remove CTRL-V from argument */
|
|
48 #define NOTADR 0x4000 /* number before command is not an address */
|
|
49 #define EDITCMD 0x8000 /* allow "+command" argument */
|
|
50 #define BUFNAME 0x10000L /* accepts buffer name */
|
|
51 #define BUFUNL 0x20000L /* accepts unlisted buffer too */
|
|
52 #define ARGOPT 0x40000L /* allow "++opt=val" argument */
|
|
53 #define SBOXOK 0x80000L /* allowed in the sandbox */
|
|
54 #define CMDWIN 0x100000L /* allowed in cmdline window */
|
|
55 #define MODIFY 0x200000L /* forbidden in non-'modifiable' buffer */
|
169
|
56 #define EXFLAGS 0x400000L /* allow flags after count in argument */
|
7
|
57 #define FILES (XFILE | EXTRA) /* multiple extra files allowed */
|
|
58 #define WORD1 (EXTRA | NOSPC) /* one extra word allowed */
|
|
59 #define FILE1 (FILES | NOSPC) /* 1 file allowed, defaults to current file */
|
|
60
|
|
61 #ifndef DO_DECLARE_EXCMD
|
|
62 typedef struct exarg exarg_T;
|
|
63 #endif
|
|
64
|
|
65 /*
|
|
66 * This array maps ex command names to command codes.
|
|
67 * The order in which command names are listed below is significant --
|
|
68 * ambiguous abbreviations are always resolved to be the first possible match
|
|
69 * (e.g. "r" is taken to mean "read", not "rewind", because "read" comes
|
|
70 * before "rewind").
|
|
71 * Not supported commands are included to avoid ambiguities.
|
|
72 */
|
|
73 #ifdef EX
|
|
74 # undef EX /* just in case */
|
|
75 #endif
|
|
76 #ifdef DO_DECLARE_EXCMD
|
|
77 # define EX(a, b, c, d) {(char_u *)b, c, d}
|
|
78
|
|
79 typedef void (*ex_func_T) __ARGS((exarg_T *eap));
|
|
80
|
|
81 static struct cmdname
|
|
82 {
|
|
83 char_u *cmd_name; /* name of the command */
|
|
84 ex_func_T cmd_func; /* function for this command */
|
|
85 long_u cmd_argt; /* flags declared above */
|
|
86 }
|
|
87 # if defined(FEAT_GUI_W16)
|
|
88 _far
|
|
89 # endif
|
|
90 cmdnames[] =
|
|
91 #else
|
|
92 # define EX(a, b, c, d) a
|
|
93 enum CMD_index
|
|
94 #endif
|
|
95 {
|
|
96 EX(CMD_append, "append", ex_append,
|
|
97 BANG|RANGE|ZEROR|TRLBAR|CMDWIN|MODIFY),
|
|
98 EX(CMD_abbreviate, "abbreviate", ex_abbreviate,
|
|
99 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
100 EX(CMD_abclear, "abclear", ex_abclear,
|
|
101 EXTRA|TRLBAR|CMDWIN),
|
|
102 EX(CMD_aboveleft, "aboveleft", ex_wrongmodifier,
|
|
103 NEEDARG|EXTRA|NOTRLCOM),
|
|
104 EX(CMD_all, "all", ex_all,
|
|
105 RANGE|NOTADR|COUNT|TRLBAR),
|
|
106 EX(CMD_amenu, "amenu", ex_menu,
|
|
107 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
108 EX(CMD_anoremenu, "anoremenu", ex_menu,
|
|
109 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
110 EX(CMD_args, "args", ex_args,
|
|
111 BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
|
112 EX(CMD_argadd, "argadd", ex_argadd,
|
208
|
113 BANG|NEEDARG|RANGE|NOTADR|ZEROR|FILES|TRLBAR),
|
7
|
114 EX(CMD_argdelete, "argdelete", ex_argdelete,
|
218
|
115 BANG|RANGE|NOTADR|FILES|TRLBAR),
|
7
|
116 EX(CMD_argdo, "argdo", ex_listdo,
|
|
117 BANG|NEEDARG|EXTRA|NOTRLCOM),
|
|
118 EX(CMD_argedit, "argedit", ex_argedit,
|
218
|
119 BANG|NEEDARG|RANGE|NOTADR|FILE1|EDITCMD|TRLBAR),
|
7
|
120 EX(CMD_argglobal, "argglobal", ex_args,
|
|
121 BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
|
122 EX(CMD_arglocal, "arglocal", ex_args,
|
|
123 BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
|
124 EX(CMD_argument, "argument", ex_argument,
|
|
125 BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR),
|
|
126 EX(CMD_ascii, "ascii", do_ascii,
|
|
127 TRLBAR|SBOXOK|CMDWIN),
|
|
128 EX(CMD_autocmd, "autocmd", ex_autocmd,
|
|
129 BANG|EXTRA|NOTRLCOM|USECTRLV|CMDWIN),
|
|
130 EX(CMD_augroup, "augroup", ex_autocmd,
|
|
131 BANG|WORD1|TRLBAR|CMDWIN),
|
|
132 EX(CMD_aunmenu, "aunmenu", ex_menu,
|
|
133 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
134 EX(CMD_buffer, "buffer", ex_buffer,
|
|
135 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR),
|
|
136 EX(CMD_bNext, "bNext", ex_bprevious,
|
|
137 BANG|RANGE|NOTADR|COUNT|TRLBAR),
|
|
138 EX(CMD_ball, "ball", ex_buffer_all,
|
|
139 RANGE|NOTADR|COUNT|TRLBAR),
|
|
140 EX(CMD_badd, "badd", ex_edit,
|
|
141 NEEDARG|FILE1|EDITCMD|TRLBAR|CMDWIN),
|
|
142 EX(CMD_bdelete, "bdelete", ex_bunload,
|
|
143 BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR),
|
|
144 EX(CMD_behave, "behave", ex_behave,
|
|
145 NEEDARG|WORD1|TRLBAR|CMDWIN),
|
|
146 EX(CMD_belowright, "belowright", ex_wrongmodifier,
|
|
147 NEEDARG|EXTRA|NOTRLCOM),
|
|
148 EX(CMD_bfirst, "bfirst", ex_brewind,
|
|
149 BANG|RANGE|NOTADR|TRLBAR),
|
|
150 EX(CMD_blast, "blast", ex_blast,
|
|
151 BANG|RANGE|NOTADR|TRLBAR),
|
|
152 EX(CMD_bmodified, "bmodified", ex_bmodified,
|
|
153 BANG|RANGE|NOTADR|COUNT|TRLBAR),
|
|
154 EX(CMD_bnext, "bnext", ex_bnext,
|
|
155 BANG|RANGE|NOTADR|COUNT|TRLBAR),
|
|
156 EX(CMD_botright, "botright", ex_wrongmodifier,
|
|
157 NEEDARG|EXTRA|NOTRLCOM),
|
|
158 EX(CMD_bprevious, "bprevious", ex_bprevious,
|
|
159 BANG|RANGE|NOTADR|COUNT|TRLBAR),
|
|
160 EX(CMD_brewind, "brewind", ex_brewind,
|
|
161 BANG|RANGE|NOTADR|TRLBAR),
|
|
162 EX(CMD_break, "break", ex_break,
|
|
163 TRLBAR|SBOXOK|CMDWIN),
|
|
164 EX(CMD_breakadd, "breakadd", ex_breakadd,
|
|
165 EXTRA|TRLBAR|CMDWIN),
|
|
166 EX(CMD_breakdel, "breakdel", ex_breakdel,
|
|
167 EXTRA|TRLBAR|CMDWIN),
|
|
168 EX(CMD_breaklist, "breaklist", ex_breaklist,
|
|
169 EXTRA|TRLBAR|CMDWIN),
|
|
170 EX(CMD_browse, "browse", ex_wrongmodifier,
|
|
171 NEEDARG|EXTRA|NOTRLCOM|CMDWIN),
|
|
172 EX(CMD_buffers, "buffers", buflist_list,
|
|
173 BANG|TRLBAR|CMDWIN),
|
|
174 EX(CMD_bufdo, "bufdo", ex_listdo,
|
|
175 BANG|NEEDARG|EXTRA|NOTRLCOM),
|
|
176 EX(CMD_bunload, "bunload", ex_bunload,
|
|
177 BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR),
|
|
178 EX(CMD_bwipeout, "bwipeout", ex_bunload,
|
|
179 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR),
|
|
180 EX(CMD_change, "change", ex_change,
|
|
181 BANG|WHOLEFOLD|RANGE|COUNT|TRLBAR|CMDWIN|MODIFY),
|
|
182 EX(CMD_cNext, "cNext", ex_cnext,
|
|
183 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
184 EX(CMD_cNfile, "cNfile", ex_cnext,
|
|
185 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
186 EX(CMD_cabbrev, "cabbrev", ex_abbreviate,
|
|
187 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
188 EX(CMD_cabclear, "cabclear", ex_abclear,
|
|
189 EXTRA|TRLBAR|CMDWIN),
|
658
|
190 EX(CMD_caddbuffer, "caddbuffer", ex_cbuffer,
|
|
191 RANGE|NOTADR|WORD1|TRLBAR),
|
625
|
192 EX(CMD_caddexpr, "caddexpr", ex_cexpr,
|
1624
|
193 NEEDARG|WORD1|NOTRLCOM|TRLBAR),
|
446
|
194 EX(CMD_caddfile, "caddfile", ex_cfile,
|
|
195 TRLBAR|FILE1),
|
7
|
196 EX(CMD_call, "call", ex_call,
|
|
197 RANGE|NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
198 EX(CMD_catch, "catch", ex_catch,
|
|
199 EXTRA|SBOXOK|CMDWIN),
|
41
|
200 EX(CMD_cbuffer, "cbuffer", ex_cbuffer,
|
1084
|
201 BANG|RANGE|NOTADR|WORD1|TRLBAR),
|
7
|
202 EX(CMD_cc, "cc", ex_cc,
|
|
203 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
204 EX(CMD_cclose, "cclose", ex_cclose,
|
|
205 RANGE|NOTADR|COUNT|TRLBAR),
|
|
206 EX(CMD_cd, "cd", ex_cd,
|
169
|
207 BANG|FILE1|TRLBAR|CMDWIN),
|
7
|
208 EX(CMD_center, "center", ex_align,
|
|
209 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY),
|
446
|
210 EX(CMD_cexpr, "cexpr", ex_cexpr,
|
|
211 NEEDARG|WORD1|NOTRLCOM|TRLBAR|BANG),
|
7
|
212 EX(CMD_cfile, "cfile", ex_cfile,
|
|
213 TRLBAR|FILE1|BANG),
|
|
214 EX(CMD_cfirst, "cfirst", ex_cc,
|
|
215 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
800
|
216 EX(CMD_cgetfile, "cgetfile", ex_cfile,
|
1624
|
217 TRLBAR|FILE1),
|
798
|
218 EX(CMD_cgetbuffer, "cgetbuffer", ex_cbuffer,
|
|
219 RANGE|NOTADR|WORD1|TRLBAR),
|
|
220 EX(CMD_cgetexpr, "cgetexpr", ex_cexpr,
|
1624
|
221 NEEDARG|WORD1|NOTRLCOM|TRLBAR),
|
7
|
222 EX(CMD_chdir, "chdir", ex_cd,
|
169
|
223 BANG|FILE1|TRLBAR|CMDWIN),
|
7
|
224 EX(CMD_changes, "changes", ex_changes,
|
|
225 TRLBAR|CMDWIN),
|
|
226 EX(CMD_checkpath, "checkpath", ex_checkpath,
|
|
227 TRLBAR|BANG|CMDWIN),
|
|
228 EX(CMD_checktime, "checktime", ex_checktime,
|
|
229 RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR),
|
|
230 EX(CMD_clist, "clist", qf_list,
|
|
231 BANG|EXTRA|TRLBAR|CMDWIN),
|
|
232 EX(CMD_clast, "clast", ex_cc,
|
|
233 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
234 EX(CMD_close, "close", ex_close,
|
|
235 BANG|TRLBAR|CMDWIN),
|
|
236 EX(CMD_cmap, "cmap", ex_map,
|
|
237 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
238 EX(CMD_cmapclear, "cmapclear", ex_mapclear,
|
|
239 EXTRA|TRLBAR|CMDWIN),
|
|
240 EX(CMD_cmenu, "cmenu", ex_menu,
|
|
241 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
242 EX(CMD_cnext, "cnext", ex_cnext,
|
|
243 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
244 EX(CMD_cnewer, "cnewer", qf_age,
|
|
245 RANGE|NOTADR|COUNT|TRLBAR),
|
|
246 EX(CMD_cnfile, "cnfile", ex_cnext,
|
|
247 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
248 EX(CMD_cnoremap, "cnoremap", ex_map,
|
|
249 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
250 EX(CMD_cnoreabbrev, "cnoreabbrev", ex_abbreviate,
|
|
251 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
252 EX(CMD_cnoremenu, "cnoremenu", ex_menu,
|
|
253 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
254 EX(CMD_copy, "copy", ex_copymove,
|
|
255 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY),
|
|
256 EX(CMD_colder, "colder", qf_age,
|
|
257 RANGE|NOTADR|COUNT|TRLBAR),
|
|
258 EX(CMD_colorscheme, "colorscheme", ex_colorscheme,
|
|
259 NEEDARG|WORD1|TRLBAR|CMDWIN),
|
|
260 EX(CMD_command, "command", ex_command,
|
|
261 EXTRA|BANG|NOTRLCOM|USECTRLV|CMDWIN),
|
|
262 EX(CMD_comclear, "comclear", ex_comclear,
|
|
263 TRLBAR|CMDWIN),
|
|
264 EX(CMD_compiler, "compiler", ex_compiler,
|
904
|
265 BANG|TRLBAR|WORD1|CMDWIN),
|
7
|
266 EX(CMD_continue, "continue", ex_continue,
|
|
267 TRLBAR|SBOXOK|CMDWIN),
|
|
268 EX(CMD_confirm, "confirm", ex_wrongmodifier,
|
|
269 NEEDARG|EXTRA|NOTRLCOM|CMDWIN),
|
|
270 EX(CMD_copen, "copen", ex_copen,
|
|
271 RANGE|NOTADR|COUNT|TRLBAR),
|
|
272 EX(CMD_cprevious, "cprevious", ex_cnext,
|
|
273 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
274 EX(CMD_cpfile, "cpfile", ex_cnext,
|
|
275 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
276 EX(CMD_cquit, "cquit", ex_cquit,
|
|
277 TRLBAR|BANG),
|
|
278 EX(CMD_crewind, "crewind", ex_cc,
|
|
279 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
280 EX(CMD_cscope, "cscope", do_cscope,
|
|
281 EXTRA|NOTRLCOM|SBOXOK|XFILE),
|
|
282 EX(CMD_cstag, "cstag", do_cstag,
|
|
283 BANG|TRLBAR|WORD1),
|
|
284 EX(CMD_cunmap, "cunmap", ex_unmap,
|
|
285 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
286 EX(CMD_cunabbrev, "cunabbrev", ex_abbreviate,
|
|
287 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
288 EX(CMD_cunmenu, "cunmenu", ex_menu,
|
|
289 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
290 EX(CMD_cwindow, "cwindow", ex_cwindow,
|
|
291 RANGE|NOTADR|COUNT|TRLBAR),
|
|
292 EX(CMD_delete, "delete", ex_operators,
|
|
293 RANGE|WHOLEFOLD|REGSTR|COUNT|TRLBAR|CMDWIN|MODIFY),
|
24
|
294 EX(CMD_delmarks, "delmarks", ex_delmarks,
|
|
295 BANG|EXTRA|TRLBAR|CMDWIN),
|
7
|
296 EX(CMD_debug, "debug", ex_debug,
|
|
297 NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
298 EX(CMD_debuggreedy, "debuggreedy", ex_debuggreedy,
|
|
299 RANGE|NOTADR|ZEROR|TRLBAR|CMDWIN),
|
|
300 EX(CMD_delcommand, "delcommand", ex_delcommand,
|
|
301 NEEDARG|WORD1|TRLBAR|CMDWIN),
|
|
302 EX(CMD_delfunction, "delfunction", ex_delfunction,
|
|
303 NEEDARG|WORD1|CMDWIN),
|
|
304 EX(CMD_display, "display", ex_display,
|
|
305 EXTRA|NOTRLCOM|TRLBAR|SBOXOK|CMDWIN),
|
|
306 EX(CMD_diffupdate, "diffupdate", ex_diffupdate,
|
|
307 TRLBAR),
|
|
308 EX(CMD_diffget, "diffget", ex_diffgetput,
|
|
309 RANGE|EXTRA|TRLBAR|MODIFY),
|
16
|
310 EX(CMD_diffoff, "diffoff", ex_diffoff,
|
|
311 BANG|TRLBAR),
|
7
|
312 EX(CMD_diffpatch, "diffpatch", ex_diffpatch,
|
|
313 EXTRA|FILE1|TRLBAR|MODIFY),
|
|
314 EX(CMD_diffput, "diffput", ex_diffgetput,
|
|
315 RANGE|EXTRA|TRLBAR),
|
|
316 EX(CMD_diffsplit, "diffsplit", ex_diffsplit,
|
|
317 EXTRA|FILE1|TRLBAR),
|
|
318 EX(CMD_diffthis, "diffthis", ex_diffthis,
|
|
319 TRLBAR),
|
|
320 EX(CMD_digraphs, "digraphs", ex_digraphs,
|
|
321 EXTRA|TRLBAR|CMDWIN),
|
|
322 EX(CMD_djump, "djump", ex_findpat,
|
|
323 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA),
|
|
324 EX(CMD_dlist, "dlist", ex_findpat,
|
|
325 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN),
|
|
326 EX(CMD_doautocmd, "doautocmd", ex_doautocmd,
|
|
327 EXTRA|TRLBAR|CMDWIN),
|
|
328 EX(CMD_doautoall, "doautoall", ex_doautoall,
|
|
329 EXTRA|TRLBAR|CMDWIN),
|
|
330 EX(CMD_drop, "drop", ex_drop,
|
|
331 FILES|EDITCMD|NEEDARG|ARGOPT|TRLBAR),
|
|
332 EX(CMD_dsearch, "dsearch", ex_findpat,
|
|
333 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN),
|
|
334 EX(CMD_dsplit, "dsplit", ex_findpat,
|
|
335 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA),
|
|
336 EX(CMD_edit, "edit", ex_edit,
|
|
337 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
762
|
338 EX(CMD_earlier, "earlier", ex_later,
|
|
339 TRLBAR|EXTRA|NOSPC|CMDWIN),
|
7
|
340 EX(CMD_echo, "echo", ex_echo,
|
|
341 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
342 EX(CMD_echoerr, "echoerr", ex_execute,
|
|
343 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
344 EX(CMD_echohl, "echohl", ex_echohl,
|
|
345 EXTRA|TRLBAR|SBOXOK|CMDWIN),
|
|
346 EX(CMD_echomsg, "echomsg", ex_execute,
|
|
347 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
348 EX(CMD_echon, "echon", ex_echo,
|
|
349 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
350 EX(CMD_else, "else", ex_else,
|
|
351 TRLBAR|SBOXOK|CMDWIN),
|
|
352 EX(CMD_elseif, "elseif", ex_else,
|
|
353 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
354 EX(CMD_emenu, "emenu", ex_emenu,
|
|
355 NEEDARG|EXTRA|TRLBAR|NOTRLCOM|RANGE|NOTADR|CMDWIN),
|
|
356 EX(CMD_endif, "endif", ex_endif,
|
|
357 TRLBAR|SBOXOK|CMDWIN),
|
|
358 EX(CMD_endfunction, "endfunction", ex_endfunction,
|
|
359 TRLBAR|CMDWIN),
|
76
|
360 EX(CMD_endfor, "endfor", ex_endwhile,
|
|
361 TRLBAR|SBOXOK|CMDWIN),
|
7
|
362 EX(CMD_endtry, "endtry", ex_endtry,
|
|
363 TRLBAR|SBOXOK|CMDWIN),
|
|
364 EX(CMD_endwhile, "endwhile", ex_endwhile,
|
|
365 TRLBAR|SBOXOK|CMDWIN),
|
|
366 EX(CMD_enew, "enew", ex_edit,
|
|
367 BANG|TRLBAR),
|
|
368 EX(CMD_ex, "ex", ex_edit,
|
|
369 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
|
370 EX(CMD_execute, "execute", ex_execute,
|
|
371 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
372 EX(CMD_exit, "exit", ex_exit,
|
|
373 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN),
|
40
|
374 EX(CMD_exusage, "exusage", ex_exusage,
|
|
375 TRLBAR),
|
7
|
376 EX(CMD_file, "file", ex_file,
|
14
|
377 RANGE|NOTADR|ZEROR|BANG|FILE1|TRLBAR),
|
7
|
378 EX(CMD_files, "files", buflist_list,
|
|
379 BANG|TRLBAR|CMDWIN),
|
|
380 EX(CMD_filetype, "filetype", ex_filetype,
|
|
381 EXTRA|TRLBAR|CMDWIN),
|
|
382 EX(CMD_find, "find", ex_find,
|
|
383 RANGE|NOTADR|BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
|
384 EX(CMD_finally, "finally", ex_finally,
|
|
385 TRLBAR|SBOXOK|CMDWIN),
|
|
386 EX(CMD_finish, "finish", ex_finish,
|
|
387 TRLBAR|SBOXOK|CMDWIN),
|
|
388 EX(CMD_first, "first", ex_rewind,
|
|
389 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
390 EX(CMD_fixdel, "fixdel", do_fixdel,
|
|
391 TRLBAR|CMDWIN),
|
|
392 EX(CMD_fold, "fold", ex_fold,
|
|
393 RANGE|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN),
|
|
394 EX(CMD_foldclose, "foldclose", ex_foldopen,
|
|
395 RANGE|BANG|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN),
|
|
396 EX(CMD_folddoopen, "folddoopen", ex_folddo,
|
|
397 RANGE|DFLALL|NEEDARG|EXTRA|NOTRLCOM),
|
|
398 EX(CMD_folddoclosed, "folddoclosed", ex_folddo,
|
|
399 RANGE|DFLALL|NEEDARG|EXTRA|NOTRLCOM),
|
|
400 EX(CMD_foldopen, "foldopen", ex_foldopen,
|
|
401 RANGE|BANG|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN),
|
76
|
402 EX(CMD_for, "for", ex_while,
|
|
403 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
7
|
404 EX(CMD_function, "function", ex_function,
|
|
405 EXTRA|BANG|CMDWIN),
|
|
406 EX(CMD_global, "global", ex_global,
|
625
|
407 RANGE|WHOLEFOLD|BANG|EXTRA|DFLALL|SBOXOK|CMDWIN),
|
7
|
408 EX(CMD_goto, "goto", ex_goto,
|
|
409 RANGE|NOTADR|COUNT|TRLBAR|SBOXOK|CMDWIN),
|
|
410 EX(CMD_grep, "grep", ex_make,
|
716
|
411 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
7
|
412 EX(CMD_grepadd, "grepadd", ex_make,
|
716
|
413 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
7
|
414 EX(CMD_gui, "gui", ex_gui,
|
|
415 BANG|FILES|EDITCMD|ARGOPT|TRLBAR|CMDWIN),
|
|
416 EX(CMD_gvim, "gvim", ex_gui,
|
|
417 BANG|FILES|EDITCMD|ARGOPT|TRLBAR|CMDWIN),
|
|
418 EX(CMD_help, "help", ex_help,
|
|
419 BANG|EXTRA|NOTRLCOM),
|
|
420 EX(CMD_helpfind, "helpfind", ex_helpfind,
|
|
421 EXTRA|NOTRLCOM),
|
|
422 EX(CMD_helpgrep, "helpgrep", ex_helpgrep,
|
|
423 EXTRA|NOTRLCOM|NEEDARG),
|
|
424 EX(CMD_helptags, "helptags", ex_helptags,
|
1502
|
425 NEEDARG|FILES|TRLBAR|CMDWIN),
|
7
|
426 EX(CMD_hardcopy, "hardcopy", ex_hardcopy,
|
|
427 RANGE|COUNT|EXTRA|TRLBAR|DFLALL|BANG),
|
|
428 EX(CMD_highlight, "highlight", ex_highlight,
|
|
429 BANG|EXTRA|TRLBAR|SBOXOK|CMDWIN),
|
|
430 EX(CMD_hide, "hide", ex_hide,
|
|
431 BANG|EXTRA|NOTRLCOM),
|
|
432 EX(CMD_history, "history", ex_history,
|
|
433 EXTRA|TRLBAR|CMDWIN),
|
|
434 EX(CMD_insert, "insert", ex_append,
|
|
435 BANG|RANGE|TRLBAR|CMDWIN|MODIFY),
|
|
436 EX(CMD_iabbrev, "iabbrev", ex_abbreviate,
|
|
437 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
438 EX(CMD_iabclear, "iabclear", ex_abclear,
|
|
439 EXTRA|TRLBAR|CMDWIN),
|
|
440 EX(CMD_if, "if", ex_if,
|
|
441 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
442 EX(CMD_ijump, "ijump", ex_findpat,
|
|
443 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA),
|
|
444 EX(CMD_ilist, "ilist", ex_findpat,
|
|
445 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN),
|
|
446 EX(CMD_imap, "imap", ex_map,
|
|
447 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
448 EX(CMD_imapclear, "imapclear", ex_mapclear,
|
|
449 EXTRA|TRLBAR|CMDWIN),
|
|
450 EX(CMD_imenu, "imenu", ex_menu,
|
|
451 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
452 EX(CMD_inoremap, "inoremap", ex_map,
|
|
453 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
454 EX(CMD_inoreabbrev, "inoreabbrev", ex_abbreviate,
|
|
455 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
456 EX(CMD_inoremenu, "inoremenu", ex_menu,
|
|
457 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
458 EX(CMD_intro, "intro", ex_intro,
|
|
459 TRLBAR|CMDWIN),
|
|
460 EX(CMD_isearch, "isearch", ex_findpat,
|
|
461 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN),
|
|
462 EX(CMD_isplit, "isplit", ex_findpat,
|
|
463 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA),
|
|
464 EX(CMD_iunmap, "iunmap", ex_unmap,
|
|
465 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
466 EX(CMD_iunabbrev, "iunabbrev", ex_abbreviate,
|
|
467 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
468 EX(CMD_iunmenu, "iunmenu", ex_menu,
|
|
469 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
470 EX(CMD_join, "join", ex_join,
|
169
|
471 BANG|RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY),
|
7
|
472 EX(CMD_jumps, "jumps", ex_jumps,
|
|
473 TRLBAR|CMDWIN),
|
|
474 EX(CMD_k, "k", ex_mark,
|
|
475 RANGE|WORD1|TRLBAR|SBOXOK|CMDWIN),
|
|
476 EX(CMD_keepmarks, "keepmarks", ex_wrongmodifier,
|
|
477 NEEDARG|EXTRA|NOTRLCOM),
|
|
478 EX(CMD_keepjumps, "keepjumps", ex_wrongmodifier,
|
|
479 NEEDARG|EXTRA|NOTRLCOM),
|
22
|
480 EX(CMD_keepalt, "keepalt", ex_wrongmodifier,
|
|
481 NEEDARG|EXTRA|NOTRLCOM),
|
7
|
482 EX(CMD_list, "list", ex_print,
|
169
|
483 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN),
|
644
|
484 EX(CMD_lNext, "lNext", ex_cnext,
|
|
485 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
486 EX(CMD_lNfile, "lNfile", ex_cnext,
|
|
487 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
7
|
488 EX(CMD_last, "last", ex_last,
|
|
489 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
490 EX(CMD_language, "language", ex_language,
|
|
491 EXTRA|TRLBAR|CMDWIN),
|
644
|
492 EX(CMD_laddexpr, "laddexpr", ex_cexpr,
|
1624
|
493 NEEDARG|WORD1|NOTRLCOM|TRLBAR),
|
658
|
494 EX(CMD_laddbuffer, "laddbuffer", ex_cbuffer,
|
|
495 RANGE|NOTADR|WORD1|TRLBAR),
|
644
|
496 EX(CMD_laddfile, "laddfile", ex_cfile,
|
|
497 TRLBAR|FILE1),
|
762
|
498 EX(CMD_later, "later", ex_later,
|
|
499 TRLBAR|EXTRA|NOSPC|CMDWIN),
|
644
|
500 EX(CMD_lbuffer, "lbuffer", ex_cbuffer,
|
1084
|
501 BANG|RANGE|NOTADR|WORD1|TRLBAR),
|
7
|
502 EX(CMD_lcd, "lcd", ex_cd,
|
169
|
503 BANG|FILE1|TRLBAR|CMDWIN),
|
7
|
504 EX(CMD_lchdir, "lchdir", ex_cd,
|
169
|
505 BANG|FILE1|TRLBAR|CMDWIN),
|
644
|
506 EX(CMD_lclose, "lclose", ex_cclose,
|
|
507 RANGE|NOTADR|COUNT|TRLBAR),
|
666
|
508 EX(CMD_lcscope, "lcscope", do_cscope,
|
|
509 EXTRA|NOTRLCOM|SBOXOK|XFILE),
|
7
|
510 EX(CMD_left, "left", ex_align,
|
|
511 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY),
|
|
512 EX(CMD_leftabove, "leftabove", ex_wrongmodifier,
|
|
513 NEEDARG|EXTRA|NOTRLCOM),
|
|
514 EX(CMD_let, "let", ex_let,
|
|
515 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
644
|
516 EX(CMD_lexpr, "lexpr", ex_cexpr,
|
|
517 NEEDARG|WORD1|NOTRLCOM|TRLBAR|BANG),
|
|
518 EX(CMD_lfile, "lfile", ex_cfile,
|
|
519 TRLBAR|FILE1|BANG),
|
|
520 EX(CMD_lfirst, "lfirst", ex_cc,
|
|
521 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
522 EX(CMD_lgetfile, "lgetfile", ex_cfile,
|
1624
|
523 TRLBAR|FILE1),
|
798
|
524 EX(CMD_lgetbuffer, "lgetbuffer", ex_cbuffer,
|
|
525 RANGE|NOTADR|WORD1|TRLBAR),
|
|
526 EX(CMD_lgetexpr, "lgetexpr", ex_cexpr,
|
1624
|
527 NEEDARG|WORD1|NOTRLCOM|TRLBAR),
|
658
|
528 EX(CMD_lgrep, "lgrep", ex_make,
|
716
|
529 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
658
|
530 EX(CMD_lgrepadd, "lgrepadd", ex_make,
|
716
|
531 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
659
|
532 EX(CMD_lhelpgrep, "lhelpgrep", ex_helpgrep,
|
|
533 EXTRA|NOTRLCOM|NEEDARG),
|
644
|
534 EX(CMD_ll, "ll", ex_cc,
|
|
535 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
536 EX(CMD_llast, "llast", ex_cc,
|
|
537 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
538 EX(CMD_llist, "llist", qf_list,
|
|
539 BANG|EXTRA|TRLBAR|CMDWIN),
|
7
|
540 EX(CMD_lmap, "lmap", ex_map,
|
|
541 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
542 EX(CMD_lmapclear, "lmapclear", ex_mapclear,
|
|
543 EXTRA|TRLBAR|CMDWIN),
|
658
|
544 EX(CMD_lmake, "lmake", ex_make,
|
|
545 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
7
|
546 EX(CMD_lnoremap, "lnoremap", ex_map,
|
|
547 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
644
|
548 EX(CMD_lnext, "lnext", ex_cnext,
|
|
549 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
550 EX(CMD_lnewer, "lnewer", qf_age,
|
|
551 RANGE|NOTADR|COUNT|TRLBAR),
|
|
552 EX(CMD_lnfile, "lnfile", ex_cnext,
|
|
553 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
7
|
554 EX(CMD_loadview, "loadview", ex_loadview,
|
|
555 FILE1|TRLBAR),
|
|
556 EX(CMD_loadkeymap, "loadkeymap", ex_loadkeymap,
|
|
557 CMDWIN),
|
|
558 EX(CMD_lockmarks, "lockmarks", ex_wrongmodifier,
|
|
559 NEEDARG|EXTRA|NOTRLCOM),
|
151
|
560 EX(CMD_lockvar, "lockvar", ex_lockvar,
|
|
561 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN),
|
644
|
562 EX(CMD_lolder, "lolder", qf_age,
|
|
563 RANGE|NOTADR|COUNT|TRLBAR),
|
|
564 EX(CMD_lopen, "lopen", ex_copen,
|
|
565 RANGE|NOTADR|COUNT|TRLBAR),
|
|
566 EX(CMD_lprevious, "lprevious", ex_cnext,
|
|
567 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
568 EX(CMD_lpfile, "lpfile", ex_cnext,
|
|
569 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
|
570 EX(CMD_lrewind, "lrewind", ex_cc,
|
|
571 RANGE|NOTADR|COUNT|TRLBAR|BANG),
|
651
|
572 EX(CMD_ltag, "ltag", ex_tag,
|
|
573 NOTADR|TRLBAR|BANG|WORD1),
|
7
|
574 EX(CMD_lunmap, "lunmap", ex_unmap,
|
|
575 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
658
|
576 EX(CMD_lvimgrep, "lvimgrep", ex_vimgrep,
|
716
|
577 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
658
|
578 EX(CMD_lvimgrepadd, "lvimgrepadd", ex_vimgrep,
|
716
|
579 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
644
|
580 EX(CMD_lwindow, "lwindow", ex_cwindow,
|
|
581 RANGE|NOTADR|COUNT|TRLBAR),
|
7
|
582 EX(CMD_ls, "ls", buflist_list,
|
|
583 BANG|TRLBAR|CMDWIN),
|
|
584 EX(CMD_move, "move", ex_copymove,
|
|
585 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY),
|
|
586 EX(CMD_mark, "mark", ex_mark,
|
|
587 RANGE|WORD1|TRLBAR|SBOXOK|CMDWIN),
|
|
588 EX(CMD_make, "make", ex_make,
|
|
589 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
|
590 EX(CMD_map, "map", ex_map,
|
|
591 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
592 EX(CMD_mapclear, "mapclear", ex_mapclear,
|
|
593 EXTRA|BANG|TRLBAR|CMDWIN),
|
|
594 EX(CMD_marks, "marks", do_marks,
|
|
595 EXTRA|TRLBAR|CMDWIN),
|
|
596 EX(CMD_match, "match", ex_match,
|
700
|
597 RANGE|NOTADR|EXTRA|CMDWIN),
|
7
|
598 EX(CMD_menu, "menu", ex_menu,
|
|
599 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
600 EX(CMD_menutranslate, "menutranslate", ex_menutranslate,
|
|
601 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
602 EX(CMD_messages, "messages", ex_messages,
|
|
603 TRLBAR|CMDWIN),
|
|
604 EX(CMD_mkexrc, "mkexrc", ex_mkrc,
|
|
605 BANG|FILE1|TRLBAR|CMDWIN),
|
|
606 EX(CMD_mksession, "mksession", ex_mkrc,
|
|
607 BANG|FILE1|TRLBAR),
|
237
|
608 EX(CMD_mkspell, "mkspell", ex_mkspell,
|
|
609 BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
7
|
610 EX(CMD_mkvimrc, "mkvimrc", ex_mkrc,
|
|
611 BANG|FILE1|TRLBAR|CMDWIN),
|
|
612 EX(CMD_mkview, "mkview", ex_mkrc,
|
|
613 BANG|FILE1|TRLBAR),
|
|
614 EX(CMD_mode, "mode", ex_mode,
|
|
615 WORD1|TRLBAR|CMDWIN),
|
14
|
616 EX(CMD_mzscheme, "mzscheme", ex_mzscheme,
|
274
|
617 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN|SBOXOK),
|
14
|
618 EX(CMD_mzfile, "mzfile", ex_mzfile,
|
|
619 RANGE|FILE1|NEEDARG|CMDWIN),
|
7
|
620 EX(CMD_next, "next", ex_next,
|
|
621 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
34
|
622 EX(CMD_nbkey, "nbkey", ex_nbkey,
|
|
623 EXTRA|NOTADR|NEEDARG),
|
7
|
624 EX(CMD_new, "new", ex_splitview,
|
|
625 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
|
626 EX(CMD_nmap, "nmap", ex_map,
|
|
627 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
628 EX(CMD_nmapclear, "nmapclear", ex_mapclear,
|
|
629 EXTRA|TRLBAR|CMDWIN),
|
|
630 EX(CMD_nmenu, "nmenu", ex_menu,
|
|
631 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
632 EX(CMD_nnoremap, "nnoremap", ex_map,
|
|
633 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
634 EX(CMD_nnoremenu, "nnoremenu", ex_menu,
|
|
635 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
636 EX(CMD_noremap, "noremap", ex_map,
|
|
637 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
1721
|
638 EX(CMD_noautocmd, "noautocmd", ex_wrongmodifier,
|
|
639 NEEDARG|EXTRA|NOTRLCOM),
|
7
|
640 EX(CMD_nohlsearch, "nohlsearch", ex_nohlsearch,
|
|
641 TRLBAR|SBOXOK|CMDWIN),
|
|
642 EX(CMD_noreabbrev, "noreabbrev", ex_abbreviate,
|
|
643 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
644 EX(CMD_noremenu, "noremenu", ex_menu,
|
|
645 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
646 EX(CMD_normal, "normal", ex_normal,
|
|
647 RANGE|BANG|EXTRA|NEEDARG|NOTRLCOM|USECTRLV|SBOXOK|CMDWIN),
|
|
648 EX(CMD_number, "number", ex_print,
|
169
|
649 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN),
|
7
|
650 EX(CMD_nunmap, "nunmap", ex_unmap,
|
|
651 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
652 EX(CMD_nunmenu, "nunmenu", ex_menu,
|
|
653 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
169
|
654 EX(CMD_open, "open", ex_open,
|
|
655 RANGE|EXTRA),
|
7
|
656 EX(CMD_omap, "omap", ex_map,
|
|
657 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
658 EX(CMD_omapclear, "omapclear", ex_mapclear,
|
|
659 EXTRA|TRLBAR|CMDWIN),
|
|
660 EX(CMD_omenu, "omenu", ex_menu,
|
|
661 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
662 EX(CMD_only, "only", ex_only,
|
|
663 BANG|TRLBAR),
|
|
664 EX(CMD_onoremap, "onoremap", ex_map,
|
|
665 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
666 EX(CMD_onoremenu, "onoremenu", ex_menu,
|
|
667 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
668 EX(CMD_options, "options", ex_options,
|
|
669 TRLBAR),
|
|
670 EX(CMD_ounmap, "ounmap", ex_unmap,
|
|
671 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
672 EX(CMD_ounmenu, "ounmenu", ex_menu,
|
|
673 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
674 EX(CMD_print, "print", ex_print,
|
169
|
675 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|SBOXOK),
|
7
|
676 EX(CMD_pclose, "pclose", ex_pclose,
|
|
677 BANG|TRLBAR),
|
|
678 EX(CMD_perl, "perl", ex_perl,
|
|
679 RANGE|EXTRA|DFLALL|NEEDARG|SBOXOK|CMDWIN),
|
|
680 EX(CMD_perldo, "perldo", ex_perldo,
|
|
681 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN),
|
|
682 EX(CMD_pedit, "pedit", ex_pedit,
|
|
683 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
|
684 EX(CMD_pop, "pop", ex_tag,
|
|
685 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR),
|
|
686 EX(CMD_popup, "popup", ex_popup,
|
404
|
687 NEEDARG|EXTRA|BANG|TRLBAR|NOTRLCOM|CMDWIN),
|
7
|
688 EX(CMD_ppop, "ppop", ex_ptag,
|
|
689 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR),
|
|
690 EX(CMD_preserve, "preserve", ex_preserve,
|
|
691 TRLBAR),
|
|
692 EX(CMD_previous, "previous", ex_previous,
|
|
693 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
694 EX(CMD_promptfind, "promptfind", gui_mch_find_dialog,
|
|
695 EXTRA|NOTRLCOM|CMDWIN),
|
|
696 EX(CMD_promptrepl, "promptrepl", gui_mch_replace_dialog,
|
|
697 EXTRA|NOTRLCOM|CMDWIN),
|
170
|
698 EX(CMD_profile, "profile", ex_profile,
|
|
699 BANG|EXTRA|TRLBAR|CMDWIN),
|
364
|
700 EX(CMD_profdel, "profdel", ex_breakdel,
|
|
701 EXTRA|TRLBAR|CMDWIN),
|
7
|
702 EX(CMD_psearch, "psearch", ex_psearch,
|
|
703 BANG|RANGE|WHOLEFOLD|DFLALL|EXTRA),
|
|
704 EX(CMD_ptag, "ptag", ex_ptag,
|
|
705 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR),
|
|
706 EX(CMD_ptNext, "ptNext", ex_ptag,
|
|
707 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
708 EX(CMD_ptfirst, "ptfirst", ex_ptag,
|
|
709 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
710 EX(CMD_ptjump, "ptjump", ex_ptag,
|
|
711 BANG|TRLBAR|WORD1),
|
|
712 EX(CMD_ptlast, "ptlast", ex_ptag,
|
|
713 BANG|TRLBAR),
|
|
714 EX(CMD_ptnext, "ptnext", ex_ptag,
|
|
715 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
716 EX(CMD_ptprevious, "ptprevious", ex_ptag,
|
|
717 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
718 EX(CMD_ptrewind, "ptrewind", ex_ptag,
|
|
719 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
720 EX(CMD_ptselect, "ptselect", ex_ptag,
|
|
721 BANG|TRLBAR|WORD1),
|
|
722 EX(CMD_put, "put", ex_put,
|
|
723 RANGE|WHOLEFOLD|BANG|REGSTR|TRLBAR|ZEROR|CMDWIN|MODIFY),
|
|
724 EX(CMD_pwd, "pwd", ex_pwd,
|
|
725 TRLBAR|CMDWIN),
|
|
726 EX(CMD_python, "python", ex_python,
|
|
727 RANGE|EXTRA|NEEDARG|CMDWIN),
|
|
728 EX(CMD_pyfile, "pyfile", ex_pyfile,
|
|
729 RANGE|FILE1|NEEDARG|CMDWIN),
|
|
730 EX(CMD_quit, "quit", ex_quit,
|
|
731 BANG|TRLBAR|CMDWIN),
|
|
732 EX(CMD_quitall, "quitall", ex_quit_all,
|
|
733 BANG|TRLBAR),
|
|
734 EX(CMD_qall, "qall", ex_quit_all,
|
|
735 BANG|TRLBAR|CMDWIN),
|
|
736 EX(CMD_read, "read", ex_read,
|
|
737 BANG|RANGE|WHOLEFOLD|FILE1|ARGOPT|TRLBAR|ZEROR|CMDWIN|MODIFY),
|
|
738 EX(CMD_recover, "recover", ex_recover,
|
|
739 BANG|FILE1|TRLBAR),
|
|
740 EX(CMD_redo, "redo", ex_redo,
|
|
741 TRLBAR|CMDWIN),
|
|
742 EX(CMD_redir, "redir", ex_redir,
|
|
743 BANG|FILES|TRLBAR|CMDWIN),
|
|
744 EX(CMD_redraw, "redraw", ex_redraw,
|
|
745 BANG|TRLBAR|CMDWIN),
|
|
746 EX(CMD_redrawstatus, "redrawstatus", ex_redrawstatus,
|
|
747 BANG|TRLBAR|CMDWIN),
|
|
748 EX(CMD_registers, "registers", ex_display,
|
|
749 EXTRA|NOTRLCOM|TRLBAR|CMDWIN),
|
|
750 EX(CMD_resize, "resize", ex_resize,
|
|
751 RANGE|NOTADR|TRLBAR|WORD1),
|
|
752 EX(CMD_retab, "retab", ex_retab,
|
|
753 TRLBAR|RANGE|WHOLEFOLD|DFLALL|BANG|WORD1|CMDWIN|MODIFY),
|
|
754 EX(CMD_return, "return", ex_return,
|
|
755 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
756 EX(CMD_rewind, "rewind", ex_rewind,
|
|
757 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
758 EX(CMD_right, "right", ex_align,
|
|
759 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY),
|
|
760 EX(CMD_rightbelow, "rightbelow", ex_wrongmodifier,
|
|
761 NEEDARG|EXTRA|NOTRLCOM),
|
|
762 EX(CMD_runtime, "runtime", ex_runtime,
|
|
763 BANG|NEEDARG|FILES|TRLBAR|SBOXOK|CMDWIN),
|
|
764 EX(CMD_ruby, "ruby", ex_ruby,
|
|
765 RANGE|EXTRA|NEEDARG|CMDWIN),
|
|
766 EX(CMD_rubydo, "rubydo", ex_rubydo,
|
|
767 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN),
|
|
768 EX(CMD_rubyfile, "rubyfile", ex_rubyfile,
|
|
769 RANGE|FILE1|NEEDARG|CMDWIN),
|
|
770 EX(CMD_rviminfo, "rviminfo", ex_viminfo,
|
|
771 BANG|FILE1|TRLBAR|CMDWIN),
|
|
772 EX(CMD_substitute, "substitute", do_sub,
|
823
|
773 RANGE|WHOLEFOLD|EXTRA|CMDWIN),
|
7
|
774 EX(CMD_sNext, "sNext", ex_previous,
|
|
775 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
776 EX(CMD_sargument, "sargument", ex_argument,
|
|
777 BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR),
|
|
778 EX(CMD_sall, "sall", ex_all,
|
|
779 RANGE|NOTADR|COUNT|TRLBAR),
|
29
|
780 EX(CMD_sandbox, "sandbox", ex_wrongmodifier,
|
|
781 NEEDARG|EXTRA|NOTRLCOM),
|
7
|
782 EX(CMD_saveas, "saveas", ex_write,
|
|
783 BANG|DFLALL|FILE1|ARGOPT|CMDWIN|TRLBAR),
|
|
784 EX(CMD_sbuffer, "sbuffer", ex_buffer,
|
|
785 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR),
|
|
786 EX(CMD_sbNext, "sbNext", ex_bprevious,
|
|
787 RANGE|NOTADR|COUNT|TRLBAR),
|
|
788 EX(CMD_sball, "sball", ex_buffer_all,
|
|
789 RANGE|NOTADR|COUNT|TRLBAR),
|
|
790 EX(CMD_sbfirst, "sbfirst", ex_brewind,
|
|
791 TRLBAR),
|
|
792 EX(CMD_sblast, "sblast", ex_blast,
|
|
793 TRLBAR),
|
|
794 EX(CMD_sbmodified, "sbmodified", ex_bmodified,
|
|
795 RANGE|NOTADR|COUNT|TRLBAR),
|
|
796 EX(CMD_sbnext, "sbnext", ex_bnext,
|
|
797 RANGE|NOTADR|COUNT|TRLBAR),
|
|
798 EX(CMD_sbprevious, "sbprevious", ex_bprevious,
|
|
799 RANGE|NOTADR|COUNT|TRLBAR),
|
|
800 EX(CMD_sbrewind, "sbrewind", ex_brewind,
|
|
801 TRLBAR),
|
|
802 EX(CMD_scriptnames, "scriptnames", ex_scriptnames,
|
|
803 TRLBAR|CMDWIN),
|
|
804 EX(CMD_scriptencoding, "scriptencoding", ex_scriptencoding,
|
|
805 WORD1|TRLBAR|CMDWIN),
|
|
806 EX(CMD_scscope, "scscope", do_scscope,
|
|
807 EXTRA|NOTRLCOM|SBOXOK),
|
|
808 EX(CMD_set, "set", ex_set,
|
|
809 TRLBAR|EXTRA|CMDWIN|SBOXOK),
|
|
810 EX(CMD_setfiletype, "setfiletype", ex_setfiletype,
|
|
811 TRLBAR|EXTRA|NEEDARG|CMDWIN),
|
|
812 EX(CMD_setglobal, "setglobal", ex_set,
|
|
813 TRLBAR|EXTRA|CMDWIN),
|
|
814 EX(CMD_setlocal, "setlocal", ex_set,
|
|
815 TRLBAR|EXTRA|CMDWIN),
|
|
816 EX(CMD_sfind, "sfind", ex_splitview,
|
|
817 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
|
818 EX(CMD_sfirst, "sfirst", ex_rewind,
|
|
819 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
820 EX(CMD_shell, "shell", ex_shell,
|
|
821 TRLBAR|CMDWIN),
|
|
822 EX(CMD_simalt, "simalt", ex_simalt,
|
|
823 NEEDARG|WORD1|TRLBAR|CMDWIN),
|
|
824 EX(CMD_sign, "sign", ex_sign,
|
|
825 NEEDARG|RANGE|NOTADR|EXTRA|CMDWIN),
|
|
826 EX(CMD_silent, "silent", ex_wrongmodifier,
|
|
827 NEEDARG|EXTRA|BANG|NOTRLCOM|SBOXOK|CMDWIN),
|
|
828 EX(CMD_sleep, "sleep", ex_sleep,
|
|
829 RANGE|NOTADR|COUNT|EXTRA|TRLBAR|CMDWIN),
|
|
830 EX(CMD_slast, "slast", ex_last,
|
|
831 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
832 EX(CMD_smagic, "smagic", ex_submagic,
|
823
|
833 RANGE|WHOLEFOLD|EXTRA|CMDWIN),
|
791
|
834 EX(CMD_smap, "smap", ex_map,
|
|
835 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
836 EX(CMD_smapclear, "smapclear", ex_mapclear,
|
|
837 EXTRA|TRLBAR|CMDWIN),
|
|
838 EX(CMD_smenu, "smenu", ex_menu,
|
|
839 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
7
|
840 EX(CMD_snext, "snext", ex_next,
|
|
841 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR),
|
|
842 EX(CMD_sniff, "sniff", ex_sniff,
|
|
843 EXTRA|TRLBAR),
|
|
844 EX(CMD_snomagic, "snomagic", ex_submagic,
|
823
|
845 RANGE|WHOLEFOLD|EXTRA|CMDWIN),
|
791
|
846 EX(CMD_snoremap, "snoremap", ex_map,
|
|
847 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
848 EX(CMD_snoremenu, "snoremenu", ex_menu,
|
|
849 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
7
|
850 EX(CMD_source, "source", ex_source,
|
|
851 BANG|FILE1|TRLBAR|SBOXOK|CMDWIN),
|
284
|
852 EX(CMD_sort, "sort", ex_sort,
|
|
853 RANGE|DFLALL|WHOLEFOLD|BANG|EXTRA|NOTRLCOM|MODIFY),
|
7
|
854 EX(CMD_split, "split", ex_splitview,
|
|
855 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
315
|
856 EX(CMD_spellgood, "spellgood", ex_spell,
|
387
|
857 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR),
|
354
|
858 EX(CMD_spelldump, "spelldump", ex_spelldump,
|
625
|
859 BANG|TRLBAR),
|
714
|
860 EX(CMD_spellinfo, "spellinfo", ex_spellinfo,
|
|
861 TRLBAR),
|
374
|
862 EX(CMD_spellrepall, "spellrepall", ex_spellrepall,
|
|
863 TRLBAR),
|
713
|
864 EX(CMD_spellundo, "spellundo", ex_spell,
|
|
865 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR),
|
714
|
866 EX(CMD_spellwrong, "spellwrong", ex_spell,
|
|
867 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR),
|
7
|
868 EX(CMD_sprevious, "sprevious", ex_previous,
|
|
869 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
870 EX(CMD_srewind, "srewind", ex_rewind,
|
|
871 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
872 EX(CMD_stop, "stop", ex_stop,
|
|
873 TRLBAR|BANG|CMDWIN),
|
|
874 EX(CMD_stag, "stag", ex_stag,
|
|
875 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR),
|
|
876 EX(CMD_startinsert, "startinsert", ex_startinsert,
|
|
877 BANG|TRLBAR|CMDWIN),
|
601
|
878 EX(CMD_startgreplace, "startgreplace", ex_startinsert,
|
|
879 BANG|TRLBAR|CMDWIN),
|
14
|
880 EX(CMD_startreplace, "startreplace", ex_startinsert,
|
|
881 BANG|TRLBAR|CMDWIN),
|
7
|
882 EX(CMD_stopinsert, "stopinsert", ex_stopinsert,
|
|
883 BANG|TRLBAR|CMDWIN),
|
|
884 EX(CMD_stjump, "stjump", ex_stag,
|
|
885 BANG|TRLBAR|WORD1),
|
|
886 EX(CMD_stselect, "stselect", ex_stag,
|
|
887 BANG|TRLBAR|WORD1),
|
|
888 EX(CMD_sunhide, "sunhide", ex_buffer_all,
|
|
889 RANGE|NOTADR|COUNT|TRLBAR),
|
791
|
890 EX(CMD_sunmap, "sunmap", ex_unmap,
|
|
891 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
892 EX(CMD_sunmenu, "sunmenu", ex_menu,
|
|
893 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
7
|
894 EX(CMD_suspend, "suspend", ex_stop,
|
|
895 TRLBAR|BANG|CMDWIN),
|
|
896 EX(CMD_sview, "sview", ex_splitview,
|
|
897 NEEDARG|RANGE|NOTADR|BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
|
898 EX(CMD_swapname, "swapname", ex_swapname,
|
|
899 TRLBAR|CMDWIN),
|
|
900 EX(CMD_syntax, "syntax", ex_syntax,
|
|
901 EXTRA|NOTRLCOM|CMDWIN),
|
|
902 EX(CMD_syncbind, "syncbind", ex_syncbind,
|
|
903 TRLBAR),
|
|
904 EX(CMD_t, "t", ex_copymove,
|
|
905 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY),
|
|
906 EX(CMD_tNext, "tNext", ex_tag,
|
|
907 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
908 EX(CMD_tag, "tag", ex_tag,
|
|
909 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR),
|
|
910 EX(CMD_tags, "tags", do_tags,
|
|
911 TRLBAR|CMDWIN),
|
684
|
912 EX(CMD_tab, "tab", ex_wrongmodifier,
|
|
913 NEEDARG|EXTRA|NOTRLCOM),
|
667
|
914 EX(CMD_tabclose, "tabclose", ex_tabclose,
|
673
|
915 RANGE|NOTADR|COUNT|BANG|TRLBAR|CMDWIN),
|
685
|
916 EX(CMD_tabdo, "tabdo", ex_listdo,
|
|
917 NEEDARG|EXTRA|NOTRLCOM),
|
677
|
918 EX(CMD_tabedit, "tabedit", ex_splitview,
|
821
|
919 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR),
|
677
|
920 EX(CMD_tabfind, "tabfind", ex_splitview,
|
821
|
921 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|NEEDARG|TRLBAR),
|
685
|
922 EX(CMD_tabfirst, "tabfirst", ex_tabnext,
|
|
923 TRLBAR),
|
684
|
924 EX(CMD_tabmove, "tabmove", ex_tabmove,
|
821
|
925 RANGE|NOTADR|ZEROR|COUNT|TRLBAR|ZEROR),
|
685
|
926 EX(CMD_tablast, "tablast", ex_tabnext,
|
|
927 TRLBAR),
|
684
|
928 EX(CMD_tabnext, "tabnext", ex_tabnext,
|
|
929 RANGE|NOTADR|COUNT|TRLBAR),
|
677
|
930 EX(CMD_tabnew, "tabnew", ex_splitview,
|
821
|
931 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR),
|
673
|
932 EX(CMD_tabonly, "tabonly", ex_tabonly,
|
770
|
933 BANG|TRLBAR|CMDWIN),
|
685
|
934 EX(CMD_tabprevious, "tabprevious", ex_tabnext,
|
684
|
935 RANGE|NOTADR|COUNT|TRLBAR),
|
685
|
936 EX(CMD_tabNext, "tabNext", ex_tabnext,
|
684
|
937 RANGE|NOTADR|COUNT|TRLBAR),
|
685
|
938 EX(CMD_tabrewind, "tabrewind", ex_tabnext,
|
|
939 TRLBAR),
|
667
|
940 EX(CMD_tabs, "tabs", ex_tabs,
|
|
941 TRLBAR|CMDWIN),
|
7
|
942 EX(CMD_tcl, "tcl", ex_tcl,
|
|
943 RANGE|EXTRA|NEEDARG|CMDWIN),
|
|
944 EX(CMD_tcldo, "tcldo", ex_tcldo,
|
|
945 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN),
|
|
946 EX(CMD_tclfile, "tclfile", ex_tclfile,
|
|
947 RANGE|FILE1|NEEDARG|CMDWIN),
|
|
948 EX(CMD_tearoff, "tearoff", ex_tearoff,
|
|
949 NEEDARG|EXTRA|TRLBAR|NOTRLCOM|CMDWIN),
|
|
950 EX(CMD_tfirst, "tfirst", ex_tag,
|
|
951 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
952 EX(CMD_throw, "throw", ex_throw,
|
|
953 EXTRA|NEEDARG|SBOXOK|CMDWIN),
|
|
954 EX(CMD_tjump, "tjump", ex_tag,
|
|
955 BANG|TRLBAR|WORD1),
|
|
956 EX(CMD_tlast, "tlast", ex_tag,
|
|
957 BANG|TRLBAR),
|
|
958 EX(CMD_tmenu, "tmenu", ex_menu,
|
|
959 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
960 EX(CMD_tnext, "tnext", ex_tag,
|
|
961 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
962 EX(CMD_topleft, "topleft", ex_wrongmodifier,
|
|
963 NEEDARG|EXTRA|NOTRLCOM),
|
|
964 EX(CMD_tprevious, "tprevious", ex_tag,
|
|
965 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
966 EX(CMD_trewind, "trewind", ex_tag,
|
|
967 RANGE|NOTADR|BANG|TRLBAR|ZEROR),
|
|
968 EX(CMD_try, "try", ex_try,
|
|
969 TRLBAR|SBOXOK|CMDWIN),
|
|
970 EX(CMD_tselect, "tselect", ex_tag,
|
|
971 BANG|TRLBAR|WORD1),
|
|
972 EX(CMD_tunmenu, "tunmenu", ex_menu,
|
|
973 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
974 EX(CMD_undo, "undo", ex_undo,
|
778
|
975 RANGE|NOTADR|COUNT|ZEROR|TRLBAR|CMDWIN),
|
774
|
976 EX(CMD_undojoin, "undojoin", ex_undojoin,
|
7
|
977 TRLBAR|CMDWIN),
|
774
|
978 EX(CMD_undolist, "undolist", ex_undolist,
|
697
|
979 TRLBAR|CMDWIN),
|
7
|
980 EX(CMD_unabbreviate, "unabbreviate", ex_abbreviate,
|
|
981 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
982 EX(CMD_unhide, "unhide", ex_buffer_all,
|
|
983 RANGE|NOTADR|COUNT|TRLBAR),
|
|
984 EX(CMD_unlet, "unlet", ex_unlet,
|
|
985 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN),
|
151
|
986 EX(CMD_unlockvar, "unlockvar", ex_lockvar,
|
|
987 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN),
|
7
|
988 EX(CMD_unmap, "unmap", ex_unmap,
|
|
989 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
990 EX(CMD_unmenu, "unmenu", ex_menu,
|
|
991 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
992 EX(CMD_update, "update", ex_update,
|
|
993 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR),
|
|
994 EX(CMD_vglobal, "vglobal", ex_global,
|
|
995 RANGE|WHOLEFOLD|EXTRA|DFLALL|CMDWIN),
|
|
996 EX(CMD_version, "version", ex_version,
|
|
997 EXTRA|TRLBAR|CMDWIN),
|
|
998 EX(CMD_verbose, "verbose", ex_wrongmodifier,
|
|
999 NEEDARG|RANGE|NOTADR|EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
1000 EX(CMD_vertical, "vertical", ex_wrongmodifier,
|
|
1001 NEEDARG|EXTRA|NOTRLCOM),
|
|
1002 EX(CMD_visual, "visual", ex_edit,
|
|
1003 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
|
1004 EX(CMD_view, "view", ex_edit,
|
|
1005 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR),
|
41
|
1006 EX(CMD_vimgrep, "vimgrep", ex_vimgrep,
|
716
|
1007 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
41
|
1008 EX(CMD_vimgrepadd, "vimgrepadd", ex_vimgrep,
|
716
|
1009 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE),
|
40
|
1010 EX(CMD_viusage, "viusage", ex_viusage,
|
|
1011 TRLBAR),
|
7
|
1012 EX(CMD_vmap, "vmap", ex_map,
|
|
1013 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1014 EX(CMD_vmapclear, "vmapclear", ex_mapclear,
|
|
1015 EXTRA|TRLBAR|CMDWIN),
|
|
1016 EX(CMD_vmenu, "vmenu", ex_menu,
|
|
1017 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1018 EX(CMD_vnoremap, "vnoremap", ex_map,
|
|
1019 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1020 EX(CMD_vnew, "vnew", ex_splitview,
|
|
1021 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
|
1022 EX(CMD_vnoremenu, "vnoremenu", ex_menu,
|
|
1023 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1024 EX(CMD_vsplit, "vsplit", ex_splitview,
|
|
1025 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR),
|
|
1026 EX(CMD_vunmap, "vunmap", ex_unmap,
|
|
1027 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1028 EX(CMD_vunmenu, "vunmenu", ex_menu,
|
|
1029 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1030 EX(CMD_write, "write", ex_write,
|
|
1031 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN),
|
|
1032 EX(CMD_wNext, "wNext", ex_wnext,
|
|
1033 RANGE|WHOLEFOLD|NOTADR|BANG|FILE1|ARGOPT|TRLBAR),
|
|
1034 EX(CMD_wall, "wall", do_wqall,
|
|
1035 BANG|TRLBAR|CMDWIN),
|
|
1036 EX(CMD_while, "while", ex_while,
|
|
1037 EXTRA|NOTRLCOM|SBOXOK|CMDWIN),
|
|
1038 EX(CMD_winsize, "winsize", ex_winsize,
|
|
1039 EXTRA|NEEDARG|TRLBAR),
|
|
1040 EX(CMD_wincmd, "wincmd", ex_wincmd,
|
|
1041 NEEDARG|WORD1|RANGE|NOTADR),
|
|
1042 EX(CMD_windo, "windo", ex_listdo,
|
|
1043 BANG|NEEDARG|EXTRA|NOTRLCOM),
|
|
1044 EX(CMD_winpos, "winpos", ex_winpos,
|
|
1045 EXTRA|TRLBAR|CMDWIN),
|
|
1046 EX(CMD_wnext, "wnext", ex_wnext,
|
|
1047 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR),
|
|
1048 EX(CMD_wprevious, "wprevious", ex_wnext,
|
|
1049 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR),
|
|
1050 EX(CMD_wq, "wq", ex_exit,
|
|
1051 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR),
|
|
1052 EX(CMD_wqall, "wqall", do_wqall,
|
|
1053 BANG|FILE1|ARGOPT|DFLALL|TRLBAR),
|
|
1054 EX(CMD_wsverb, "wsverb", ex_wsverb,
|
|
1055 EXTRA|NOTADR|NEEDARG),
|
|
1056 EX(CMD_wviminfo, "wviminfo", ex_viminfo,
|
|
1057 BANG|FILE1|TRLBAR|CMDWIN),
|
|
1058 EX(CMD_xit, "xit", ex_exit,
|
|
1059 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN),
|
|
1060 EX(CMD_xall, "xall", do_wqall,
|
|
1061 BANG|TRLBAR),
|
791
|
1062 EX(CMD_xmap, "xmap", ex_map,
|
|
1063 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1064 EX(CMD_xmapclear, "xmapclear", ex_mapclear,
|
|
1065 EXTRA|TRLBAR|CMDWIN),
|
|
1066 EX(CMD_xmenu, "xmenu", ex_menu,
|
|
1067 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1068 EX(CMD_xnoremap, "xnoremap", ex_map,
|
|
1069 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1070 EX(CMD_xnoremenu, "xnoremenu", ex_menu,
|
|
1071 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1072 EX(CMD_xunmap, "xunmap", ex_unmap,
|
|
1073 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
|
1074 EX(CMD_xunmenu, "xunmenu", ex_menu,
|
|
1075 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
|
7
|
1076 EX(CMD_yank, "yank", ex_operators,
|
|
1077 RANGE|WHOLEFOLD|REGSTR|COUNT|TRLBAR|CMDWIN),
|
|
1078 EX(CMD_z, "z", ex_z,
|
169
|
1079 RANGE|WHOLEFOLD|EXTRA|EXFLAGS|TRLBAR|CMDWIN),
|
7
|
1080
|
|
1081 /* commands that don't start with a lowercase letter */
|
|
1082 EX(CMD_bang, "!", ex_bang,
|
|
1083 RANGE|WHOLEFOLD|BANG|FILES|CMDWIN),
|
|
1084 EX(CMD_pound, "#", ex_print,
|
169
|
1085 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN),
|
7
|
1086 EX(CMD_and, "&", do_sub,
|
|
1087 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY),
|
|
1088 EX(CMD_star, "*", ex_at,
|
|
1089 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN),
|
|
1090 EX(CMD_lshift, "<", ex_operators,
|
169
|
1091 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY),
|
7
|
1092 EX(CMD_equal, "=", ex_equal,
|
169
|
1093 RANGE|TRLBAR|DFLALL|EXFLAGS|CMDWIN),
|
7
|
1094 EX(CMD_rshift, ">", ex_operators,
|
169
|
1095 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY),
|
7
|
1096 EX(CMD_at, "@", ex_at,
|
|
1097 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN),
|
|
1098 EX(CMD_Next, "Next", ex_previous,
|
|
1099 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR),
|
|
1100 EX(CMD_Print, "Print", ex_print,
|
169
|
1101 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN),
|
7
|
1102 EX(CMD_X, "X", ex_X,
|
|
1103 TRLBAR),
|
|
1104 EX(CMD_tilde, "~", do_sub,
|
|
1105 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY),
|
|
1106
|
|
1107 #ifndef DO_DECLARE_EXCMD
|
|
1108 #ifdef FEAT_USR_CMDS
|
|
1109 CMD_SIZE, /* MUST be after all real commands! */
|
|
1110 CMD_USER = -1, /* User-defined command */
|
|
1111 CMD_USER_BUF = -2 /* User-defined command local to buffer */
|
|
1112 #else
|
|
1113 CMD_SIZE /* MUST be the last one! */
|
|
1114 #endif
|
|
1115 #endif
|
|
1116 };
|
|
1117
|
|
1118 #define USER_CMDIDX(idx) ((int)(idx) < 0)
|
|
1119
|
|
1120 #ifndef DO_DECLARE_EXCMD
|
|
1121 typedef enum CMD_index cmdidx_T;
|
|
1122
|
|
1123 /*
|
|
1124 * Arguments used for Ex commands.
|
|
1125 */
|
|
1126 struct exarg
|
|
1127 {
|
|
1128 char_u *arg; /* argument of the command */
|
|
1129 char_u *nextcmd; /* next command (NULL if none) */
|
|
1130 char_u *cmd; /* the name of the command (except for :make) */
|
|
1131 char_u **cmdlinep; /* pointer to pointer of allocated cmdline */
|
|
1132 cmdidx_T cmdidx; /* the index for the command */
|
|
1133 long argt; /* flags for the command */
|
|
1134 int skip; /* don't execute the command, only parse it */
|
|
1135 int forceit; /* TRUE if ! present */
|
|
1136 int addr_count; /* the number of addresses given */
|
|
1137 linenr_T line1; /* the first line number */
|
|
1138 linenr_T line2; /* the second line number or count */
|
169
|
1139 int flags; /* extra flags after count: EXFLAG_ */
|
7
|
1140 char_u *do_ecmd_cmd; /* +command arg to be used in edited file */
|
|
1141 linenr_T do_ecmd_lnum; /* the line number in an edited file */
|
|
1142 int append; /* TRUE with ":w >>file" command */
|
|
1143 int usefilter; /* TRUE with ":w !command" and ":r!command" */
|
|
1144 int amount; /* number of '>' or '<' for shift command */
|
|
1145 int regname; /* register name (NUL if none) */
|
|
1146 int force_bin; /* 0, FORCE_BIN or FORCE_NOBIN */
|
819
|
1147 int read_edit; /* ++edit argument */
|
597
|
1148 int force_ff; /* ++ff= argument (index in cmd[]) */
|
7
|
1149 #ifdef FEAT_MBYTE
|
597
|
1150 int force_enc; /* ++enc= argument (index in cmd[]) */
|
|
1151 int bad_char; /* ++bad= argument (index in cmd[]) */
|
7
|
1152 #endif
|
|
1153 #ifdef FEAT_USR_CMDS
|
|
1154 int useridx; /* user command index */
|
|
1155 #endif
|
|
1156 char_u *errmsg; /* returned error message */
|
|
1157 char_u *(*getline) __ARGS((int, void *, int));
|
|
1158 void *cookie; /* argument for getline() */
|
|
1159 #ifdef FEAT_EVAL
|
|
1160 struct condstack *cstack; /* condition stack for ":if" etc. */
|
|
1161 #endif
|
|
1162 };
|
|
1163
|
|
1164 #define FORCE_BIN 1 /* ":edit ++bin file" */
|
|
1165 #define FORCE_NOBIN 2 /* ":edit ++nobin file" */
|
|
1166
|
169
|
1167 /* Values for "flags" */
|
|
1168 #define EXFLAG_LIST 0x01 /* 'l': list */
|
|
1169 #define EXFLAG_NR 0x02 /* '#': number */
|
|
1170 #define EXFLAG_PRINT 0x04 /* 'p': print */
|
|
1171
|
7
|
1172 #endif
|