Mercurial > vim
annotate src/ex_cmds.h @ 5776:845608965bd9 v7.4.232
updated for version 7.4.232
Problem: ":%s/\n//" uses a lot of memory. (Aidan Marlin)
Solution: Turn this into a join command. (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 01 Apr 2014 17:49:44 +0200 |
parents | e25a04c1c515 |
children | cb5480096f1b |
rev | line source |
---|---|
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 */ | |
2138
78b9d5dce950
updated for version 7.2.420
Bram Moolenaar <bram@zimbu.org>
parents:
1926
diff
changeset
|
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 | |
2143
79d111ea8ef6
updated for version 7.2.425
Bram Moolenaar <bram@zimbu.org>
parents:
2142
diff
changeset
|
77 # define EX(a, b, c, d) {(char_u *)b, c, (long_u)(d)} |
7 | 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, | |
3354 | 105 BANG|RANGE|NOTADR|COUNT|TRLBAR), |
7 | 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, | |
2138
78b9d5dce950
updated for version 7.2.420
Bram Moolenaar <bram@zimbu.org>
parents:
1926
diff
changeset
|
119 BANG|NEEDARG|RANGE|NOTADR|FILE1|EDITCMD|ARGOPT|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, | |
2142
c60d231453cf
updated for version 7.2.424
Bram Moolenaar <bram@zimbu.org>
parents:
2138
diff
changeset
|
259 WORD1|TRLBAR|CMDWIN), |
7 | 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, | |
1729 | 281 EXTRA|NOTRLCOM|XFILE), |
7 | 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, | |
3524 | 307 BANG|TRLBAR), |
7 | 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), | |
5467 | 480 EX(CMD_keeppatterns, "keeppatterns", ex_wrongmodifier, |
481 NEEDARG|EXTRA|NOTRLCOM), | |
22 | 482 EX(CMD_keepalt, "keepalt", ex_wrongmodifier, |
483 NEEDARG|EXTRA|NOTRLCOM), | |
7 | 484 EX(CMD_list, "list", ex_print, |
169 | 485 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN), |
644 | 486 EX(CMD_lNext, "lNext", ex_cnext, |
487 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
488 EX(CMD_lNfile, "lNfile", ex_cnext, | |
489 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
7 | 490 EX(CMD_last, "last", ex_last, |
491 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), | |
492 EX(CMD_language, "language", ex_language, | |
493 EXTRA|TRLBAR|CMDWIN), | |
644 | 494 EX(CMD_laddexpr, "laddexpr", ex_cexpr, |
1624 | 495 NEEDARG|WORD1|NOTRLCOM|TRLBAR), |
658 | 496 EX(CMD_laddbuffer, "laddbuffer", ex_cbuffer, |
497 RANGE|NOTADR|WORD1|TRLBAR), | |
644 | 498 EX(CMD_laddfile, "laddfile", ex_cfile, |
499 TRLBAR|FILE1), | |
762 | 500 EX(CMD_later, "later", ex_later, |
501 TRLBAR|EXTRA|NOSPC|CMDWIN), | |
644 | 502 EX(CMD_lbuffer, "lbuffer", ex_cbuffer, |
1084 | 503 BANG|RANGE|NOTADR|WORD1|TRLBAR), |
7 | 504 EX(CMD_lcd, "lcd", ex_cd, |
169 | 505 BANG|FILE1|TRLBAR|CMDWIN), |
7 | 506 EX(CMD_lchdir, "lchdir", ex_cd, |
169 | 507 BANG|FILE1|TRLBAR|CMDWIN), |
644 | 508 EX(CMD_lclose, "lclose", ex_cclose, |
509 RANGE|NOTADR|COUNT|TRLBAR), | |
666 | 510 EX(CMD_lcscope, "lcscope", do_cscope, |
1729 | 511 EXTRA|NOTRLCOM|XFILE), |
7 | 512 EX(CMD_left, "left", ex_align, |
513 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), | |
514 EX(CMD_leftabove, "leftabove", ex_wrongmodifier, | |
515 NEEDARG|EXTRA|NOTRLCOM), | |
516 EX(CMD_let, "let", ex_let, | |
517 EXTRA|NOTRLCOM|SBOXOK|CMDWIN), | |
644 | 518 EX(CMD_lexpr, "lexpr", ex_cexpr, |
519 NEEDARG|WORD1|NOTRLCOM|TRLBAR|BANG), | |
520 EX(CMD_lfile, "lfile", ex_cfile, | |
521 TRLBAR|FILE1|BANG), | |
522 EX(CMD_lfirst, "lfirst", ex_cc, | |
523 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
524 EX(CMD_lgetfile, "lgetfile", ex_cfile, | |
1624 | 525 TRLBAR|FILE1), |
798 | 526 EX(CMD_lgetbuffer, "lgetbuffer", ex_cbuffer, |
527 RANGE|NOTADR|WORD1|TRLBAR), | |
528 EX(CMD_lgetexpr, "lgetexpr", ex_cexpr, | |
1624 | 529 NEEDARG|WORD1|NOTRLCOM|TRLBAR), |
658 | 530 EX(CMD_lgrep, "lgrep", ex_make, |
716 | 531 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
658 | 532 EX(CMD_lgrepadd, "lgrepadd", ex_make, |
716 | 533 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
659 | 534 EX(CMD_lhelpgrep, "lhelpgrep", ex_helpgrep, |
535 EXTRA|NOTRLCOM|NEEDARG), | |
644 | 536 EX(CMD_ll, "ll", ex_cc, |
537 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
538 EX(CMD_llast, "llast", ex_cc, | |
539 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
540 EX(CMD_llist, "llist", qf_list, | |
541 BANG|EXTRA|TRLBAR|CMDWIN), | |
7 | 542 EX(CMD_lmap, "lmap", ex_map, |
543 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
544 EX(CMD_lmapclear, "lmapclear", ex_mapclear, | |
545 EXTRA|TRLBAR|CMDWIN), | |
658 | 546 EX(CMD_lmake, "lmake", ex_make, |
547 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE), | |
7 | 548 EX(CMD_lnoremap, "lnoremap", ex_map, |
549 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
644 | 550 EX(CMD_lnext, "lnext", ex_cnext, |
551 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
552 EX(CMD_lnewer, "lnewer", qf_age, | |
553 RANGE|NOTADR|COUNT|TRLBAR), | |
554 EX(CMD_lnfile, "lnfile", ex_cnext, | |
555 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
7 | 556 EX(CMD_loadview, "loadview", ex_loadview, |
557 FILE1|TRLBAR), | |
558 EX(CMD_loadkeymap, "loadkeymap", ex_loadkeymap, | |
559 CMDWIN), | |
560 EX(CMD_lockmarks, "lockmarks", ex_wrongmodifier, | |
561 NEEDARG|EXTRA|NOTRLCOM), | |
151 | 562 EX(CMD_lockvar, "lockvar", ex_lockvar, |
563 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN), | |
644 | 564 EX(CMD_lolder, "lolder", qf_age, |
565 RANGE|NOTADR|COUNT|TRLBAR), | |
566 EX(CMD_lopen, "lopen", ex_copen, | |
567 RANGE|NOTADR|COUNT|TRLBAR), | |
568 EX(CMD_lprevious, "lprevious", ex_cnext, | |
569 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
570 EX(CMD_lpfile, "lpfile", ex_cnext, | |
571 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
572 EX(CMD_lrewind, "lrewind", ex_cc, | |
573 RANGE|NOTADR|COUNT|TRLBAR|BANG), | |
651 | 574 EX(CMD_ltag, "ltag", ex_tag, |
575 NOTADR|TRLBAR|BANG|WORD1), | |
5732 | 576 EX(CMD_lunmap, "lunmap", ex_unmap, |
577 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
578 EX(CMD_lua, "lua", ex_lua, |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
579 RANGE|EXTRA|NEEDARG|CMDWIN), |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
580 EX(CMD_luado, "luado", ex_luado, |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
581 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN), |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
582 EX(CMD_luafile, "luafile", ex_luafile, |
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
583 RANGE|FILE1|NEEDARG|CMDWIN), |
658 | 584 EX(CMD_lvimgrep, "lvimgrep", ex_vimgrep, |
716 | 585 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
658 | 586 EX(CMD_lvimgrepadd, "lvimgrepadd", ex_vimgrep, |
716 | 587 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
644 | 588 EX(CMD_lwindow, "lwindow", ex_cwindow, |
589 RANGE|NOTADR|COUNT|TRLBAR), | |
7 | 590 EX(CMD_ls, "ls", buflist_list, |
591 BANG|TRLBAR|CMDWIN), | |
592 EX(CMD_move, "move", ex_copymove, | |
593 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY), | |
594 EX(CMD_mark, "mark", ex_mark, | |
595 RANGE|WORD1|TRLBAR|SBOXOK|CMDWIN), | |
596 EX(CMD_make, "make", ex_make, | |
597 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE), | |
598 EX(CMD_map, "map", ex_map, | |
599 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
600 EX(CMD_mapclear, "mapclear", ex_mapclear, | |
601 EXTRA|BANG|TRLBAR|CMDWIN), | |
602 EX(CMD_marks, "marks", do_marks, | |
603 EXTRA|TRLBAR|CMDWIN), | |
604 EX(CMD_match, "match", ex_match, | |
700 | 605 RANGE|NOTADR|EXTRA|CMDWIN), |
7 | 606 EX(CMD_menu, "menu", ex_menu, |
607 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
608 EX(CMD_menutranslate, "menutranslate", ex_menutranslate, | |
609 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
610 EX(CMD_messages, "messages", ex_messages, | |
611 TRLBAR|CMDWIN), | |
612 EX(CMD_mkexrc, "mkexrc", ex_mkrc, | |
613 BANG|FILE1|TRLBAR|CMDWIN), | |
614 EX(CMD_mksession, "mksession", ex_mkrc, | |
615 BANG|FILE1|TRLBAR), | |
237 | 616 EX(CMD_mkspell, "mkspell", ex_mkspell, |
617 BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), | |
7 | 618 EX(CMD_mkvimrc, "mkvimrc", ex_mkrc, |
619 BANG|FILE1|TRLBAR|CMDWIN), | |
620 EX(CMD_mkview, "mkview", ex_mkrc, | |
621 BANG|FILE1|TRLBAR), | |
622 EX(CMD_mode, "mode", ex_mode, | |
623 WORD1|TRLBAR|CMDWIN), | |
14 | 624 EX(CMD_mzscheme, "mzscheme", ex_mzscheme, |
274 | 625 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN|SBOXOK), |
14 | 626 EX(CMD_mzfile, "mzfile", ex_mzfile, |
627 RANGE|FILE1|NEEDARG|CMDWIN), | |
7 | 628 EX(CMD_next, "next", ex_next, |
629 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR), | |
34 | 630 EX(CMD_nbkey, "nbkey", ex_nbkey, |
631 EXTRA|NOTADR|NEEDARG), | |
2210 | 632 EX(CMD_nbclose, "nbclose", ex_nbclose, |
633 TRLBAR|CMDWIN), | |
634 EX(CMD_nbstart, "nbstart", ex_nbstart, | |
635 WORD1|TRLBAR|CMDWIN), | |
7 | 636 EX(CMD_new, "new", ex_splitview, |
637 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), | |
638 EX(CMD_nmap, "nmap", ex_map, | |
639 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
640 EX(CMD_nmapclear, "nmapclear", ex_mapclear, | |
641 EXTRA|TRLBAR|CMDWIN), | |
642 EX(CMD_nmenu, "nmenu", ex_menu, | |
643 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
644 EX(CMD_nnoremap, "nnoremap", ex_map, | |
645 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
646 EX(CMD_nnoremenu, "nnoremenu", ex_menu, | |
647 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
648 EX(CMD_noremap, "noremap", ex_map, | |
649 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1721 | 650 EX(CMD_noautocmd, "noautocmd", ex_wrongmodifier, |
651 NEEDARG|EXTRA|NOTRLCOM), | |
7 | 652 EX(CMD_nohlsearch, "nohlsearch", ex_nohlsearch, |
653 TRLBAR|SBOXOK|CMDWIN), | |
654 EX(CMD_noreabbrev, "noreabbrev", ex_abbreviate, | |
655 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
656 EX(CMD_noremenu, "noremenu", ex_menu, | |
657 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
5737 | 658 EX(CMD_noswapfile, "noswapfile", ex_wrongmodifier, |
659 NEEDARG|EXTRA|NOTRLCOM), | |
7 | 660 EX(CMD_normal, "normal", ex_normal, |
661 RANGE|BANG|EXTRA|NEEDARG|NOTRLCOM|USECTRLV|SBOXOK|CMDWIN), | |
662 EX(CMD_number, "number", ex_print, | |
169 | 663 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN), |
7 | 664 EX(CMD_nunmap, "nunmap", ex_unmap, |
665 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
666 EX(CMD_nunmenu, "nunmenu", ex_menu, | |
667 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
169 | 668 EX(CMD_open, "open", ex_open, |
3738 | 669 RANGE|BANG|EXTRA), |
1733 | 670 EX(CMD_oldfiles, "oldfiles", ex_oldfiles, |
671 BANG|TRLBAR|SBOXOK|CMDWIN), | |
7 | 672 EX(CMD_omap, "omap", ex_map, |
673 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
674 EX(CMD_omapclear, "omapclear", ex_mapclear, | |
675 EXTRA|TRLBAR|CMDWIN), | |
676 EX(CMD_omenu, "omenu", ex_menu, | |
677 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
678 EX(CMD_only, "only", ex_only, | |
679 BANG|TRLBAR), | |
680 EX(CMD_onoremap, "onoremap", ex_map, | |
681 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
682 EX(CMD_onoremenu, "onoremenu", ex_menu, | |
683 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
684 EX(CMD_options, "options", ex_options, | |
685 TRLBAR), | |
686 EX(CMD_ounmap, "ounmap", ex_unmap, | |
687 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
688 EX(CMD_ounmenu, "ounmenu", ex_menu, | |
689 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
690 EX(CMD_ownsyntax, "ownsyntax", ex_ownsyntax, |
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
691 EXTRA|NOTRLCOM|SBOXOK|CMDWIN), |
7 | 692 EX(CMD_print, "print", ex_print, |
169 | 693 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|SBOXOK), |
7 | 694 EX(CMD_pclose, "pclose", ex_pclose, |
695 BANG|TRLBAR), | |
696 EX(CMD_perl, "perl", ex_perl, | |
697 RANGE|EXTRA|DFLALL|NEEDARG|SBOXOK|CMDWIN), | |
698 EX(CMD_perldo, "perldo", ex_perldo, | |
699 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN), | |
700 EX(CMD_pedit, "pedit", ex_pedit, | |
701 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR), | |
702 EX(CMD_pop, "pop", ex_tag, | |
703 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR), | |
704 EX(CMD_popup, "popup", ex_popup, | |
404 | 705 NEEDARG|EXTRA|BANG|TRLBAR|NOTRLCOM|CMDWIN), |
7 | 706 EX(CMD_ppop, "ppop", ex_ptag, |
707 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR), | |
708 EX(CMD_preserve, "preserve", ex_preserve, | |
709 TRLBAR), | |
710 EX(CMD_previous, "previous", ex_previous, | |
711 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR), | |
712 EX(CMD_promptfind, "promptfind", gui_mch_find_dialog, | |
713 EXTRA|NOTRLCOM|CMDWIN), | |
714 EX(CMD_promptrepl, "promptrepl", gui_mch_replace_dialog, | |
715 EXTRA|NOTRLCOM|CMDWIN), | |
170 | 716 EX(CMD_profile, "profile", ex_profile, |
717 BANG|EXTRA|TRLBAR|CMDWIN), | |
364 | 718 EX(CMD_profdel, "profdel", ex_breakdel, |
719 EXTRA|TRLBAR|CMDWIN), | |
7 | 720 EX(CMD_psearch, "psearch", ex_psearch, |
721 BANG|RANGE|WHOLEFOLD|DFLALL|EXTRA), | |
722 EX(CMD_ptag, "ptag", ex_ptag, | |
723 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR), | |
724 EX(CMD_ptNext, "ptNext", ex_ptag, | |
725 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
726 EX(CMD_ptfirst, "ptfirst", ex_ptag, | |
727 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
728 EX(CMD_ptjump, "ptjump", ex_ptag, | |
729 BANG|TRLBAR|WORD1), | |
730 EX(CMD_ptlast, "ptlast", ex_ptag, | |
731 BANG|TRLBAR), | |
732 EX(CMD_ptnext, "ptnext", ex_ptag, | |
733 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
734 EX(CMD_ptprevious, "ptprevious", ex_ptag, | |
735 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
736 EX(CMD_ptrewind, "ptrewind", ex_ptag, | |
737 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
738 EX(CMD_ptselect, "ptselect", ex_ptag, | |
739 BANG|TRLBAR|WORD1), | |
740 EX(CMD_put, "put", ex_put, | |
741 RANGE|WHOLEFOLD|BANG|REGSTR|TRLBAR|ZEROR|CMDWIN|MODIFY), | |
742 EX(CMD_pwd, "pwd", ex_pwd, | |
743 TRLBAR|CMDWIN), | |
744 EX(CMD_python, "python", ex_python, | |
745 RANGE|EXTRA|NEEDARG|CMDWIN), | |
4435 | 746 EX(CMD_pydo, "pydo", ex_pydo, |
747 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN), | |
7 | 748 EX(CMD_pyfile, "pyfile", ex_pyfile, |
749 RANGE|FILE1|NEEDARG|CMDWIN), | |
2350
06feaf4fe36a
Rename some "python3" symbols to "py3", as the command name.
Bram Moolenaar <bram@vim.org>
parents:
2329
diff
changeset
|
750 EX(CMD_py3, "py3", ex_py3, |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
751 RANGE|EXTRA|NEEDARG|CMDWIN), |
4417 | 752 EX(CMD_py3do, "py3do", ex_py3do, |
753 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN), | |
2366
7a57fe6a5157
Fix that :py3file was not working.
Bram Moolenaar <bram@vim.org>
parents:
2350
diff
changeset
|
754 EX(CMD_python3, "python3", ex_py3, |
7a57fe6a5157
Fix that :py3file was not working.
Bram Moolenaar <bram@vim.org>
parents:
2350
diff
changeset
|
755 RANGE|EXTRA|NEEDARG|CMDWIN), |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
756 EX(CMD_py3file, "py3file", ex_py3file, |
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
757 RANGE|FILE1|NEEDARG|CMDWIN), |
7 | 758 EX(CMD_quit, "quit", ex_quit, |
759 BANG|TRLBAR|CMDWIN), | |
760 EX(CMD_quitall, "quitall", ex_quit_all, | |
761 BANG|TRLBAR), | |
762 EX(CMD_qall, "qall", ex_quit_all, | |
763 BANG|TRLBAR|CMDWIN), | |
764 EX(CMD_read, "read", ex_read, | |
765 BANG|RANGE|WHOLEFOLD|FILE1|ARGOPT|TRLBAR|ZEROR|CMDWIN|MODIFY), | |
766 EX(CMD_recover, "recover", ex_recover, | |
767 BANG|FILE1|TRLBAR), | |
768 EX(CMD_redo, "redo", ex_redo, | |
769 TRLBAR|CMDWIN), | |
770 EX(CMD_redir, "redir", ex_redir, | |
771 BANG|FILES|TRLBAR|CMDWIN), | |
772 EX(CMD_redraw, "redraw", ex_redraw, | |
773 BANG|TRLBAR|CMDWIN), | |
774 EX(CMD_redrawstatus, "redrawstatus", ex_redrawstatus, | |
775 BANG|TRLBAR|CMDWIN), | |
776 EX(CMD_registers, "registers", ex_display, | |
777 EXTRA|NOTRLCOM|TRLBAR|CMDWIN), | |
778 EX(CMD_resize, "resize", ex_resize, | |
779 RANGE|NOTADR|TRLBAR|WORD1), | |
780 EX(CMD_retab, "retab", ex_retab, | |
781 TRLBAR|RANGE|WHOLEFOLD|DFLALL|BANG|WORD1|CMDWIN|MODIFY), | |
782 EX(CMD_return, "return", ex_return, | |
783 EXTRA|NOTRLCOM|SBOXOK|CMDWIN), | |
784 EX(CMD_rewind, "rewind", ex_rewind, | |
785 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), | |
786 EX(CMD_right, "right", ex_align, | |
787 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), | |
788 EX(CMD_rightbelow, "rightbelow", ex_wrongmodifier, | |
789 NEEDARG|EXTRA|NOTRLCOM), | |
790 EX(CMD_runtime, "runtime", ex_runtime, | |
791 BANG|NEEDARG|FILES|TRLBAR|SBOXOK|CMDWIN), | |
792 EX(CMD_ruby, "ruby", ex_ruby, | |
793 RANGE|EXTRA|NEEDARG|CMDWIN), | |
794 EX(CMD_rubydo, "rubydo", ex_rubydo, | |
795 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN), | |
796 EX(CMD_rubyfile, "rubyfile", ex_rubyfile, | |
797 RANGE|FILE1|NEEDARG|CMDWIN), | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2210
diff
changeset
|
798 EX(CMD_rundo, "rundo", ex_rundo, |
2915 | 799 NEEDARG|FILE1), |
7 | 800 EX(CMD_rviminfo, "rviminfo", ex_viminfo, |
801 BANG|FILE1|TRLBAR|CMDWIN), | |
802 EX(CMD_substitute, "substitute", do_sub, | |
823 | 803 RANGE|WHOLEFOLD|EXTRA|CMDWIN), |
7 | 804 EX(CMD_sNext, "sNext", ex_previous, |
805 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR), | |
806 EX(CMD_sargument, "sargument", ex_argument, | |
807 BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR), | |
808 EX(CMD_sall, "sall", ex_all, | |
3354 | 809 BANG|RANGE|NOTADR|COUNT|TRLBAR), |
29 | 810 EX(CMD_sandbox, "sandbox", ex_wrongmodifier, |
811 NEEDARG|EXTRA|NOTRLCOM), | |
7 | 812 EX(CMD_saveas, "saveas", ex_write, |
813 BANG|DFLALL|FILE1|ARGOPT|CMDWIN|TRLBAR), | |
814 EX(CMD_sbuffer, "sbuffer", ex_buffer, | |
815 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR), | |
816 EX(CMD_sbNext, "sbNext", ex_bprevious, | |
817 RANGE|NOTADR|COUNT|TRLBAR), | |
818 EX(CMD_sball, "sball", ex_buffer_all, | |
819 RANGE|NOTADR|COUNT|TRLBAR), | |
820 EX(CMD_sbfirst, "sbfirst", ex_brewind, | |
821 TRLBAR), | |
822 EX(CMD_sblast, "sblast", ex_blast, | |
823 TRLBAR), | |
824 EX(CMD_sbmodified, "sbmodified", ex_bmodified, | |
825 RANGE|NOTADR|COUNT|TRLBAR), | |
826 EX(CMD_sbnext, "sbnext", ex_bnext, | |
827 RANGE|NOTADR|COUNT|TRLBAR), | |
828 EX(CMD_sbprevious, "sbprevious", ex_bprevious, | |
829 RANGE|NOTADR|COUNT|TRLBAR), | |
830 EX(CMD_sbrewind, "sbrewind", ex_brewind, | |
831 TRLBAR), | |
832 EX(CMD_scriptnames, "scriptnames", ex_scriptnames, | |
833 TRLBAR|CMDWIN), | |
834 EX(CMD_scriptencoding, "scriptencoding", ex_scriptencoding, | |
835 WORD1|TRLBAR|CMDWIN), | |
836 EX(CMD_scscope, "scscope", do_scscope, | |
1729 | 837 EXTRA|NOTRLCOM), |
7 | 838 EX(CMD_set, "set", ex_set, |
839 TRLBAR|EXTRA|CMDWIN|SBOXOK), | |
840 EX(CMD_setfiletype, "setfiletype", ex_setfiletype, | |
841 TRLBAR|EXTRA|NEEDARG|CMDWIN), | |
842 EX(CMD_setglobal, "setglobal", ex_set, | |
3916 | 843 TRLBAR|EXTRA|CMDWIN|SBOXOK), |
7 | 844 EX(CMD_setlocal, "setlocal", ex_set, |
3916 | 845 TRLBAR|EXTRA|CMDWIN|SBOXOK), |
7 | 846 EX(CMD_sfind, "sfind", ex_splitview, |
847 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), | |
848 EX(CMD_sfirst, "sfirst", ex_rewind, | |
849 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), | |
850 EX(CMD_shell, "shell", ex_shell, | |
851 TRLBAR|CMDWIN), | |
852 EX(CMD_simalt, "simalt", ex_simalt, | |
853 NEEDARG|WORD1|TRLBAR|CMDWIN), | |
854 EX(CMD_sign, "sign", ex_sign, | |
855 NEEDARG|RANGE|NOTADR|EXTRA|CMDWIN), | |
856 EX(CMD_silent, "silent", ex_wrongmodifier, | |
857 NEEDARG|EXTRA|BANG|NOTRLCOM|SBOXOK|CMDWIN), | |
858 EX(CMD_sleep, "sleep", ex_sleep, | |
859 RANGE|NOTADR|COUNT|EXTRA|TRLBAR|CMDWIN), | |
860 EX(CMD_slast, "slast", ex_last, | |
861 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), | |
862 EX(CMD_smagic, "smagic", ex_submagic, | |
823 | 863 RANGE|WHOLEFOLD|EXTRA|CMDWIN), |
791 | 864 EX(CMD_smap, "smap", ex_map, |
865 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
866 EX(CMD_smapclear, "smapclear", ex_mapclear, | |
867 EXTRA|TRLBAR|CMDWIN), | |
868 EX(CMD_smenu, "smenu", ex_menu, | |
869 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
7 | 870 EX(CMD_snext, "snext", ex_next, |
871 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR), | |
872 EX(CMD_sniff, "sniff", ex_sniff, | |
873 EXTRA|TRLBAR), | |
874 EX(CMD_snomagic, "snomagic", ex_submagic, | |
823 | 875 RANGE|WHOLEFOLD|EXTRA|CMDWIN), |
791 | 876 EX(CMD_snoremap, "snoremap", ex_map, |
877 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
878 EX(CMD_snoremenu, "snoremenu", ex_menu, | |
879 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
7 | 880 EX(CMD_source, "source", ex_source, |
881 BANG|FILE1|TRLBAR|SBOXOK|CMDWIN), | |
284 | 882 EX(CMD_sort, "sort", ex_sort, |
883 RANGE|DFLALL|WHOLEFOLD|BANG|EXTRA|NOTRLCOM|MODIFY), | |
7 | 884 EX(CMD_split, "split", ex_splitview, |
885 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), | |
315 | 886 EX(CMD_spellgood, "spellgood", ex_spell, |
387 | 887 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR), |
354 | 888 EX(CMD_spelldump, "spelldump", ex_spelldump, |
625 | 889 BANG|TRLBAR), |
714 | 890 EX(CMD_spellinfo, "spellinfo", ex_spellinfo, |
891 TRLBAR), | |
374 | 892 EX(CMD_spellrepall, "spellrepall", ex_spellrepall, |
893 TRLBAR), | |
713 | 894 EX(CMD_spellundo, "spellundo", ex_spell, |
895 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR), | |
714 | 896 EX(CMD_spellwrong, "spellwrong", ex_spell, |
897 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR), | |
7 | 898 EX(CMD_sprevious, "sprevious", ex_previous, |
899 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR), | |
900 EX(CMD_srewind, "srewind", ex_rewind, | |
901 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR), | |
902 EX(CMD_stop, "stop", ex_stop, | |
903 TRLBAR|BANG|CMDWIN), | |
904 EX(CMD_stag, "stag", ex_stag, | |
905 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR), | |
906 EX(CMD_startinsert, "startinsert", ex_startinsert, | |
907 BANG|TRLBAR|CMDWIN), | |
601 | 908 EX(CMD_startgreplace, "startgreplace", ex_startinsert, |
909 BANG|TRLBAR|CMDWIN), | |
14 | 910 EX(CMD_startreplace, "startreplace", ex_startinsert, |
911 BANG|TRLBAR|CMDWIN), | |
7 | 912 EX(CMD_stopinsert, "stopinsert", ex_stopinsert, |
913 BANG|TRLBAR|CMDWIN), | |
914 EX(CMD_stjump, "stjump", ex_stag, | |
915 BANG|TRLBAR|WORD1), | |
916 EX(CMD_stselect, "stselect", ex_stag, | |
917 BANG|TRLBAR|WORD1), | |
918 EX(CMD_sunhide, "sunhide", ex_buffer_all, | |
919 RANGE|NOTADR|COUNT|TRLBAR), | |
791 | 920 EX(CMD_sunmap, "sunmap", ex_unmap, |
921 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
922 EX(CMD_sunmenu, "sunmenu", ex_menu, | |
923 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
7 | 924 EX(CMD_suspend, "suspend", ex_stop, |
925 TRLBAR|BANG|CMDWIN), | |
926 EX(CMD_sview, "sview", ex_splitview, | |
2296
eb7be7b075a6
Support :browse for commands that use an error file argument. (Lech Lorens)
Bram Moolenaar <bram@vim.org>
parents:
2250
diff
changeset
|
927 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), |
7 | 928 EX(CMD_swapname, "swapname", ex_swapname, |
929 TRLBAR|CMDWIN), | |
930 EX(CMD_syntax, "syntax", ex_syntax, | |
931 EXTRA|NOTRLCOM|CMDWIN), | |
4764
f824cb97eb92
updated for version 7.3.1129
Bram Moolenaar <bram@vim.org>
parents:
4435
diff
changeset
|
932 EX(CMD_syntime, "syntime", ex_syntime, |
4803
220bdea4f579
updated for version 7.3.1148
Bram Moolenaar <bram@vim.org>
parents:
4764
diff
changeset
|
933 NEEDARG|WORD1|TRLBAR|CMDWIN), |
7 | 934 EX(CMD_syncbind, "syncbind", ex_syncbind, |
935 TRLBAR), | |
936 EX(CMD_t, "t", ex_copymove, | |
937 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY), | |
938 EX(CMD_tNext, "tNext", ex_tag, | |
939 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
940 EX(CMD_tag, "tag", ex_tag, | |
941 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR), | |
942 EX(CMD_tags, "tags", do_tags, | |
943 TRLBAR|CMDWIN), | |
684 | 944 EX(CMD_tab, "tab", ex_wrongmodifier, |
945 NEEDARG|EXTRA|NOTRLCOM), | |
667 | 946 EX(CMD_tabclose, "tabclose", ex_tabclose, |
673 | 947 RANGE|NOTADR|COUNT|BANG|TRLBAR|CMDWIN), |
685 | 948 EX(CMD_tabdo, "tabdo", ex_listdo, |
949 NEEDARG|EXTRA|NOTRLCOM), | |
677 | 950 EX(CMD_tabedit, "tabedit", ex_splitview, |
821 | 951 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR), |
677 | 952 EX(CMD_tabfind, "tabfind", ex_splitview, |
821 | 953 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|NEEDARG|TRLBAR), |
685 | 954 EX(CMD_tabfirst, "tabfirst", ex_tabnext, |
955 TRLBAR), | |
684 | 956 EX(CMD_tabmove, "tabmove", ex_tabmove, |
3662 | 957 RANGE|NOTADR|ZEROR|EXTRA|NOSPC|TRLBAR), |
685 | 958 EX(CMD_tablast, "tablast", ex_tabnext, |
959 TRLBAR), | |
684 | 960 EX(CMD_tabnext, "tabnext", ex_tabnext, |
961 RANGE|NOTADR|COUNT|TRLBAR), | |
677 | 962 EX(CMD_tabnew, "tabnew", ex_splitview, |
821 | 963 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR), |
673 | 964 EX(CMD_tabonly, "tabonly", ex_tabonly, |
770 | 965 BANG|TRLBAR|CMDWIN), |
685 | 966 EX(CMD_tabprevious, "tabprevious", ex_tabnext, |
684 | 967 RANGE|NOTADR|COUNT|TRLBAR), |
685 | 968 EX(CMD_tabNext, "tabNext", ex_tabnext, |
684 | 969 RANGE|NOTADR|COUNT|TRLBAR), |
685 | 970 EX(CMD_tabrewind, "tabrewind", ex_tabnext, |
971 TRLBAR), | |
667 | 972 EX(CMD_tabs, "tabs", ex_tabs, |
973 TRLBAR|CMDWIN), | |
7 | 974 EX(CMD_tcl, "tcl", ex_tcl, |
975 RANGE|EXTRA|NEEDARG|CMDWIN), | |
976 EX(CMD_tcldo, "tcldo", ex_tcldo, | |
977 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN), | |
978 EX(CMD_tclfile, "tclfile", ex_tclfile, | |
979 RANGE|FILE1|NEEDARG|CMDWIN), | |
980 EX(CMD_tearoff, "tearoff", ex_tearoff, | |
981 NEEDARG|EXTRA|TRLBAR|NOTRLCOM|CMDWIN), | |
982 EX(CMD_tfirst, "tfirst", ex_tag, | |
983 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
984 EX(CMD_throw, "throw", ex_throw, | |
985 EXTRA|NEEDARG|SBOXOK|CMDWIN), | |
986 EX(CMD_tjump, "tjump", ex_tag, | |
987 BANG|TRLBAR|WORD1), | |
988 EX(CMD_tlast, "tlast", ex_tag, | |
989 BANG|TRLBAR), | |
990 EX(CMD_tmenu, "tmenu", ex_menu, | |
991 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
992 EX(CMD_tnext, "tnext", ex_tag, | |
993 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
994 EX(CMD_topleft, "topleft", ex_wrongmodifier, | |
995 NEEDARG|EXTRA|NOTRLCOM), | |
996 EX(CMD_tprevious, "tprevious", ex_tag, | |
997 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
998 EX(CMD_trewind, "trewind", ex_tag, | |
999 RANGE|NOTADR|BANG|TRLBAR|ZEROR), | |
1000 EX(CMD_try, "try", ex_try, | |
1001 TRLBAR|SBOXOK|CMDWIN), | |
1002 EX(CMD_tselect, "tselect", ex_tag, | |
1003 BANG|TRLBAR|WORD1), | |
1004 EX(CMD_tunmenu, "tunmenu", ex_menu, | |
1005 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1006 EX(CMD_undo, "undo", ex_undo, | |
778 | 1007 RANGE|NOTADR|COUNT|ZEROR|TRLBAR|CMDWIN), |
774 | 1008 EX(CMD_undojoin, "undojoin", ex_undojoin, |
7 | 1009 TRLBAR|CMDWIN), |
774 | 1010 EX(CMD_undolist, "undolist", ex_undolist, |
697 | 1011 TRLBAR|CMDWIN), |
7 | 1012 EX(CMD_unabbreviate, "unabbreviate", ex_abbreviate, |
1013 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1014 EX(CMD_unhide, "unhide", ex_buffer_all, | |
1015 RANGE|NOTADR|COUNT|TRLBAR), | |
1016 EX(CMD_unlet, "unlet", ex_unlet, | |
1017 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN), | |
151 | 1018 EX(CMD_unlockvar, "unlockvar", ex_lockvar, |
1019 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN), | |
7 | 1020 EX(CMD_unmap, "unmap", ex_unmap, |
1021 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1022 EX(CMD_unmenu, "unmenu", ex_menu, | |
1023 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1926 | 1024 EX(CMD_unsilent, "unsilent", ex_wrongmodifier, |
1025 NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN), | |
7 | 1026 EX(CMD_update, "update", ex_update, |
1027 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR), | |
1028 EX(CMD_vglobal, "vglobal", ex_global, | |
1029 RANGE|WHOLEFOLD|EXTRA|DFLALL|CMDWIN), | |
1030 EX(CMD_version, "version", ex_version, | |
1031 EXTRA|TRLBAR|CMDWIN), | |
1032 EX(CMD_verbose, "verbose", ex_wrongmodifier, | |
1033 NEEDARG|RANGE|NOTADR|EXTRA|NOTRLCOM|SBOXOK|CMDWIN), | |
1034 EX(CMD_vertical, "vertical", ex_wrongmodifier, | |
1035 NEEDARG|EXTRA|NOTRLCOM), | |
1036 EX(CMD_visual, "visual", ex_edit, | |
1037 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR), | |
1038 EX(CMD_view, "view", ex_edit, | |
1039 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR), | |
41 | 1040 EX(CMD_vimgrep, "vimgrep", ex_vimgrep, |
716 | 1041 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
41 | 1042 EX(CMD_vimgrepadd, "vimgrepadd", ex_vimgrep, |
716 | 1043 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE), |
40 | 1044 EX(CMD_viusage, "viusage", ex_viusage, |
1045 TRLBAR), | |
7 | 1046 EX(CMD_vmap, "vmap", ex_map, |
1047 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1048 EX(CMD_vmapclear, "vmapclear", ex_mapclear, | |
1049 EXTRA|TRLBAR|CMDWIN), | |
1050 EX(CMD_vmenu, "vmenu", ex_menu, | |
1051 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1052 EX(CMD_vnoremap, "vnoremap", ex_map, | |
1053 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1054 EX(CMD_vnew, "vnew", ex_splitview, | |
1055 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), | |
1056 EX(CMD_vnoremenu, "vnoremenu", ex_menu, | |
1057 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1058 EX(CMD_vsplit, "vsplit", ex_splitview, | |
1059 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR), | |
1060 EX(CMD_vunmap, "vunmap", ex_unmap, | |
1061 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1062 EX(CMD_vunmenu, "vunmenu", ex_menu, | |
1063 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1064 EX(CMD_write, "write", ex_write, | |
1065 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN), | |
1066 EX(CMD_wNext, "wNext", ex_wnext, | |
1067 RANGE|WHOLEFOLD|NOTADR|BANG|FILE1|ARGOPT|TRLBAR), | |
1068 EX(CMD_wall, "wall", do_wqall, | |
1069 BANG|TRLBAR|CMDWIN), | |
1070 EX(CMD_while, "while", ex_while, | |
1071 EXTRA|NOTRLCOM|SBOXOK|CMDWIN), | |
1072 EX(CMD_winsize, "winsize", ex_winsize, | |
1073 EXTRA|NEEDARG|TRLBAR), | |
1074 EX(CMD_wincmd, "wincmd", ex_wincmd, | |
1075 NEEDARG|WORD1|RANGE|NOTADR), | |
1076 EX(CMD_windo, "windo", ex_listdo, | |
1077 BANG|NEEDARG|EXTRA|NOTRLCOM), | |
1078 EX(CMD_winpos, "winpos", ex_winpos, | |
1079 EXTRA|TRLBAR|CMDWIN), | |
1080 EX(CMD_wnext, "wnext", ex_wnext, | |
1081 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR), | |
1082 EX(CMD_wprevious, "wprevious", ex_wnext, | |
1083 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR), | |
1084 EX(CMD_wq, "wq", ex_exit, | |
1085 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR), | |
1086 EX(CMD_wqall, "wqall", do_wqall, | |
1087 BANG|FILE1|ARGOPT|DFLALL|TRLBAR), | |
1088 EX(CMD_wsverb, "wsverb", ex_wsverb, | |
1089 EXTRA|NOTADR|NEEDARG), | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2210
diff
changeset
|
1090 EX(CMD_wundo, "wundo", ex_wundo, |
2915 | 1091 BANG|NEEDARG|FILE1), |
7 | 1092 EX(CMD_wviminfo, "wviminfo", ex_viminfo, |
1093 BANG|FILE1|TRLBAR|CMDWIN), | |
1094 EX(CMD_xit, "xit", ex_exit, | |
1095 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN), | |
1096 EX(CMD_xall, "xall", do_wqall, | |
1097 BANG|TRLBAR), | |
791 | 1098 EX(CMD_xmap, "xmap", ex_map, |
1099 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1100 EX(CMD_xmapclear, "xmapclear", ex_mapclear, | |
1101 EXTRA|TRLBAR|CMDWIN), | |
1102 EX(CMD_xmenu, "xmenu", ex_menu, | |
1103 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1104 EX(CMD_xnoremap, "xnoremap", ex_map, | |
1105 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1106 EX(CMD_xnoremenu, "xnoremenu", ex_menu, | |
1107 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1108 EX(CMD_xunmap, "xunmap", ex_unmap, | |
1109 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
1110 EX(CMD_xunmenu, "xunmenu", ex_menu, | |
1111 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN), | |
7 | 1112 EX(CMD_yank, "yank", ex_operators, |
1113 RANGE|WHOLEFOLD|REGSTR|COUNT|TRLBAR|CMDWIN), | |
1114 EX(CMD_z, "z", ex_z, | |
169 | 1115 RANGE|WHOLEFOLD|EXTRA|EXFLAGS|TRLBAR|CMDWIN), |
7 | 1116 |
1117 /* commands that don't start with a lowercase letter */ | |
1118 EX(CMD_bang, "!", ex_bang, | |
1119 RANGE|WHOLEFOLD|BANG|FILES|CMDWIN), | |
1120 EX(CMD_pound, "#", ex_print, | |
169 | 1121 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN), |
7 | 1122 EX(CMD_and, "&", do_sub, |
1123 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), | |
1124 EX(CMD_star, "*", ex_at, | |
1125 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN), | |
1126 EX(CMD_lshift, "<", ex_operators, | |
169 | 1127 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY), |
7 | 1128 EX(CMD_equal, "=", ex_equal, |
169 | 1129 RANGE|TRLBAR|DFLALL|EXFLAGS|CMDWIN), |
7 | 1130 EX(CMD_rshift, ">", ex_operators, |
169 | 1131 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY), |
7 | 1132 EX(CMD_at, "@", ex_at, |
1133 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN), | |
1134 EX(CMD_Next, "Next", ex_previous, | |
1135 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR), | |
1136 EX(CMD_Print, "Print", ex_print, | |
169 | 1137 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN), |
7 | 1138 EX(CMD_X, "X", ex_X, |
1139 TRLBAR), | |
1140 EX(CMD_tilde, "~", do_sub, | |
1141 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY), | |
1142 | |
1143 #ifndef DO_DECLARE_EXCMD | |
1144 #ifdef FEAT_USR_CMDS | |
1145 CMD_SIZE, /* MUST be after all real commands! */ | |
1146 CMD_USER = -1, /* User-defined command */ | |
1147 CMD_USER_BUF = -2 /* User-defined command local to buffer */ | |
1148 #else | |
1149 CMD_SIZE /* MUST be the last one! */ | |
1150 #endif | |
1151 #endif | |
1152 }; | |
1153 | |
1154 #define USER_CMDIDX(idx) ((int)(idx) < 0) | |
1155 | |
1156 #ifndef DO_DECLARE_EXCMD | |
1157 typedef enum CMD_index cmdidx_T; | |
1158 | |
1159 /* | |
1160 * Arguments used for Ex commands. | |
1161 */ | |
1162 struct exarg | |
1163 { | |
1164 char_u *arg; /* argument of the command */ | |
1165 char_u *nextcmd; /* next command (NULL if none) */ | |
1166 char_u *cmd; /* the name of the command (except for :make) */ | |
1167 char_u **cmdlinep; /* pointer to pointer of allocated cmdline */ | |
1168 cmdidx_T cmdidx; /* the index for the command */ | |
1169 long argt; /* flags for the command */ | |
1170 int skip; /* don't execute the command, only parse it */ | |
1171 int forceit; /* TRUE if ! present */ | |
1172 int addr_count; /* the number of addresses given */ | |
1173 linenr_T line1; /* the first line number */ | |
1174 linenr_T line2; /* the second line number or count */ | |
169 | 1175 int flags; /* extra flags after count: EXFLAG_ */ |
7 | 1176 char_u *do_ecmd_cmd; /* +command arg to be used in edited file */ |
1177 linenr_T do_ecmd_lnum; /* the line number in an edited file */ | |
1178 int append; /* TRUE with ":w >>file" command */ | |
1179 int usefilter; /* TRUE with ":w !command" and ":r!command" */ | |
1180 int amount; /* number of '>' or '<' for shift command */ | |
1181 int regname; /* register name (NUL if none) */ | |
1182 int force_bin; /* 0, FORCE_BIN or FORCE_NOBIN */ | |
819 | 1183 int read_edit; /* ++edit argument */ |
597 | 1184 int force_ff; /* ++ff= argument (index in cmd[]) */ |
7 | 1185 #ifdef FEAT_MBYTE |
597 | 1186 int force_enc; /* ++enc= argument (index in cmd[]) */ |
2168 | 1187 int bad_char; /* BAD_KEEP, BAD_DROP or replacement byte */ |
7 | 1188 #endif |
1189 #ifdef FEAT_USR_CMDS | |
1190 int useridx; /* user command index */ | |
1191 #endif | |
1192 char_u *errmsg; /* returned error message */ | |
1193 char_u *(*getline) __ARGS((int, void *, int)); | |
1194 void *cookie; /* argument for getline() */ | |
1195 #ifdef FEAT_EVAL | |
1196 struct condstack *cstack; /* condition stack for ":if" etc. */ | |
1197 #endif | |
1198 }; | |
1199 | |
1200 #define FORCE_BIN 1 /* ":edit ++bin file" */ | |
1201 #define FORCE_NOBIN 2 /* ":edit ++nobin file" */ | |
1202 | |
169 | 1203 /* Values for "flags" */ |
1204 #define EXFLAG_LIST 0x01 /* 'l': list */ | |
1205 #define EXFLAG_NR 0x02 /* '#': number */ | |
1206 #define EXFLAG_PRINT 0x04 /* 'p': print */ | |
1207 | |
7 | 1208 #endif |