Mercurial > vim
annotate src/ex_cmds.h @ 6462:86aacd619ac0 v7.4.560
updated for version 7.4.560
Problem: Memory leak using :wviminfo. Issue 296.
Solution: Free memory when needed. (idea by Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 17 Dec 2014 21:00:49 +0100 |
parents | e13f8073c9f9 |
children | 22f95a018b13 |
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 | |
6398 | 61 /* values for cmd_addr_type */ |
62 #define ADDR_LINES 0 | |
63 #define ADDR_WINDOWS 1 | |
64 #define ADDR_ARGUMENTS 2 | |
65 #define ADDR_LOADED_BUFFERS 3 | |
6448 | 66 #define ADDR_BUFFERS 4 |
6398 | 67 #define ADDR_TABS 5 |
68 | |
7 | 69 #ifndef DO_DECLARE_EXCMD |
70 typedef struct exarg exarg_T; | |
71 #endif | |
72 | |
73 /* | |
74 * This array maps ex command names to command codes. | |
75 * The order in which command names are listed below is significant -- | |
76 * ambiguous abbreviations are always resolved to be the first possible match | |
77 * (e.g. "r" is taken to mean "read", not "rewind", because "read" comes | |
78 * before "rewind"). | |
79 * Not supported commands are included to avoid ambiguities. | |
80 */ | |
81 #ifdef EX | |
82 # undef EX /* just in case */ | |
83 #endif | |
84 #ifdef DO_DECLARE_EXCMD | |
6398 | 85 # define EX(a, b, c, d, e) {(char_u *)b, c, (long_u)(d), e} |
7 | 86 |
87 typedef void (*ex_func_T) __ARGS((exarg_T *eap)); | |
88 | |
89 static struct cmdname | |
90 { | |
91 char_u *cmd_name; /* name of the command */ | |
92 ex_func_T cmd_func; /* function for this command */ | |
93 long_u cmd_argt; /* flags declared above */ | |
6398 | 94 int cmd_addr_type; /* flag for address type */ |
7 | 95 } |
96 # if defined(FEAT_GUI_W16) | |
97 _far | |
98 # endif | |
99 cmdnames[] = | |
100 #else | |
6398 | 101 # define EX(a, b, c, d, e) a |
7 | 102 enum CMD_index |
103 #endif | |
104 { | |
105 EX(CMD_append, "append", ex_append, | |
6398 | 106 BANG|RANGE|ZEROR|TRLBAR|CMDWIN|MODIFY, |
107 ADDR_LINES), | |
7 | 108 EX(CMD_abbreviate, "abbreviate", ex_abbreviate, |
6398 | 109 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
110 ADDR_LINES), | |
7 | 111 EX(CMD_abclear, "abclear", ex_abclear, |
6398 | 112 EXTRA|TRLBAR|CMDWIN, |
113 ADDR_LINES), | |
7 | 114 EX(CMD_aboveleft, "aboveleft", ex_wrongmodifier, |
6398 | 115 NEEDARG|EXTRA|NOTRLCOM, |
116 ADDR_LINES), | |
7 | 117 EX(CMD_all, "all", ex_all, |
6398 | 118 BANG|RANGE|NOTADR|COUNT|TRLBAR, |
119 ADDR_LINES), | |
7 | 120 EX(CMD_amenu, "amenu", ex_menu, |
6398 | 121 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
122 ADDR_LINES), | |
7 | 123 EX(CMD_anoremenu, "anoremenu", ex_menu, |
6398 | 124 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
125 ADDR_LINES), | |
7 | 126 EX(CMD_args, "args", ex_args, |
6398 | 127 BANG|FILES|EDITCMD|ARGOPT|TRLBAR, |
128 ADDR_LINES), | |
7 | 129 EX(CMD_argadd, "argadd", ex_argadd, |
6398 | 130 BANG|NEEDARG|RANGE|NOTADR|ZEROR|FILES|TRLBAR, |
131 ADDR_ARGUMENTS), | |
7 | 132 EX(CMD_argdelete, "argdelete", ex_argdelete, |
6398 | 133 BANG|RANGE|NOTADR|FILES|TRLBAR, |
134 ADDR_ARGUMENTS), | |
7 | 135 EX(CMD_argdo, "argdo", ex_listdo, |
6398 | 136 BANG|NEEDARG|EXTRA|NOTRLCOM, |
137 ADDR_LINES), | |
7 | 138 EX(CMD_argedit, "argedit", ex_argedit, |
6398 | 139 BANG|NEEDARG|RANGE|NOTADR|FILE1|EDITCMD|ARGOPT|TRLBAR, |
140 ADDR_ARGUMENTS), | |
7 | 141 EX(CMD_argglobal, "argglobal", ex_args, |
6398 | 142 BANG|FILES|EDITCMD|ARGOPT|TRLBAR, |
143 ADDR_LINES), | |
7 | 144 EX(CMD_arglocal, "arglocal", ex_args, |
6398 | 145 BANG|FILES|EDITCMD|ARGOPT|TRLBAR, |
146 ADDR_LINES), | |
7 | 147 EX(CMD_argument, "argument", ex_argument, |
6398 | 148 BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR, |
149 ADDR_ARGUMENTS), | |
7 | 150 EX(CMD_ascii, "ascii", do_ascii, |
6398 | 151 TRLBAR|SBOXOK|CMDWIN, |
152 ADDR_LINES), | |
7 | 153 EX(CMD_autocmd, "autocmd", ex_autocmd, |
6398 | 154 BANG|EXTRA|NOTRLCOM|USECTRLV|CMDWIN, |
155 ADDR_LINES), | |
7 | 156 EX(CMD_augroup, "augroup", ex_autocmd, |
6398 | 157 BANG|WORD1|TRLBAR|CMDWIN, |
158 ADDR_LINES), | |
7 | 159 EX(CMD_aunmenu, "aunmenu", ex_menu, |
6398 | 160 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
161 ADDR_LINES), | |
7 | 162 EX(CMD_buffer, "buffer", ex_buffer, |
6398 | 163 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR, |
6424 | 164 ADDR_BUFFERS), |
7 | 165 EX(CMD_bNext, "bNext", ex_bprevious, |
6398 | 166 BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
167 ADDR_LINES), | |
7 | 168 EX(CMD_ball, "ball", ex_buffer_all, |
6398 | 169 RANGE|NOTADR|COUNT|TRLBAR, |
170 ADDR_LINES), | |
7 | 171 EX(CMD_badd, "badd", ex_edit, |
6398 | 172 NEEDARG|FILE1|EDITCMD|TRLBAR|CMDWIN, |
173 ADDR_LINES), | |
7 | 174 EX(CMD_bdelete, "bdelete", ex_bunload, |
6398 | 175 BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR, |
176 ADDR_LOADED_BUFFERS), | |
7 | 177 EX(CMD_behave, "behave", ex_behave, |
6398 | 178 NEEDARG|WORD1|TRLBAR|CMDWIN, |
179 ADDR_LINES), | |
7 | 180 EX(CMD_belowright, "belowright", ex_wrongmodifier, |
6398 | 181 NEEDARG|EXTRA|NOTRLCOM, |
182 ADDR_LINES), | |
7 | 183 EX(CMD_bfirst, "bfirst", ex_brewind, |
6398 | 184 BANG|RANGE|NOTADR|EDITCMD|TRLBAR, |
185 ADDR_LINES), | |
7 | 186 EX(CMD_blast, "blast", ex_blast, |
6398 | 187 BANG|RANGE|NOTADR|EDITCMD|TRLBAR, |
188 ADDR_LINES), | |
7 | 189 EX(CMD_bmodified, "bmodified", ex_bmodified, |
6398 | 190 BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
191 ADDR_LINES), | |
7 | 192 EX(CMD_bnext, "bnext", ex_bnext, |
6398 | 193 BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
194 ADDR_LINES), | |
7 | 195 EX(CMD_botright, "botright", ex_wrongmodifier, |
6398 | 196 NEEDARG|EXTRA|NOTRLCOM, |
197 ADDR_LINES), | |
7 | 198 EX(CMD_bprevious, "bprevious", ex_bprevious, |
6398 | 199 BANG|RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
200 ADDR_LINES), | |
7 | 201 EX(CMD_brewind, "brewind", ex_brewind, |
6398 | 202 BANG|RANGE|NOTADR|EDITCMD|TRLBAR, |
203 ADDR_LINES), | |
7 | 204 EX(CMD_break, "break", ex_break, |
6398 | 205 TRLBAR|SBOXOK|CMDWIN, |
206 ADDR_LINES), | |
7 | 207 EX(CMD_breakadd, "breakadd", ex_breakadd, |
6398 | 208 EXTRA|TRLBAR|CMDWIN, |
209 ADDR_LINES), | |
7 | 210 EX(CMD_breakdel, "breakdel", ex_breakdel, |
6398 | 211 EXTRA|TRLBAR|CMDWIN, |
212 ADDR_LINES), | |
7 | 213 EX(CMD_breaklist, "breaklist", ex_breaklist, |
6398 | 214 EXTRA|TRLBAR|CMDWIN, |
215 ADDR_LINES), | |
7 | 216 EX(CMD_browse, "browse", ex_wrongmodifier, |
6398 | 217 NEEDARG|EXTRA|NOTRLCOM|CMDWIN, |
218 ADDR_LINES), | |
7 | 219 EX(CMD_buffers, "buffers", buflist_list, |
6398 | 220 BANG|TRLBAR|CMDWIN, |
221 ADDR_LINES), | |
7 | 222 EX(CMD_bufdo, "bufdo", ex_listdo, |
6398 | 223 BANG|NEEDARG|EXTRA|NOTRLCOM, |
224 ADDR_LINES), | |
7 | 225 EX(CMD_bunload, "bunload", ex_bunload, |
6398 | 226 BANG|RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR, |
227 ADDR_LOADED_BUFFERS), | |
7 | 228 EX(CMD_bwipeout, "bwipeout", ex_bunload, |
6398 | 229 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|TRLBAR, |
6424 | 230 ADDR_BUFFERS), |
7 | 231 EX(CMD_change, "change", ex_change, |
6398 | 232 BANG|WHOLEFOLD|RANGE|COUNT|TRLBAR|CMDWIN|MODIFY, |
233 ADDR_LINES), | |
7 | 234 EX(CMD_cNext, "cNext", ex_cnext, |
6398 | 235 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
236 ADDR_LINES), | |
7 | 237 EX(CMD_cNfile, "cNfile", ex_cnext, |
6398 | 238 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
239 ADDR_LINES), | |
7 | 240 EX(CMD_cabbrev, "cabbrev", ex_abbreviate, |
6398 | 241 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
242 ADDR_LINES), | |
7 | 243 EX(CMD_cabclear, "cabclear", ex_abclear, |
6398 | 244 EXTRA|TRLBAR|CMDWIN, |
245 ADDR_LINES), | |
658 | 246 EX(CMD_caddbuffer, "caddbuffer", ex_cbuffer, |
6398 | 247 RANGE|NOTADR|WORD1|TRLBAR, |
248 ADDR_LINES), | |
625 | 249 EX(CMD_caddexpr, "caddexpr", ex_cexpr, |
6398 | 250 NEEDARG|WORD1|NOTRLCOM|TRLBAR, |
251 ADDR_LINES), | |
446 | 252 EX(CMD_caddfile, "caddfile", ex_cfile, |
6398 | 253 TRLBAR|FILE1, |
254 ADDR_LINES), | |
7 | 255 EX(CMD_call, "call", ex_call, |
6398 | 256 RANGE|NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
257 ADDR_LINES), | |
7 | 258 EX(CMD_catch, "catch", ex_catch, |
6398 | 259 EXTRA|SBOXOK|CMDWIN, |
260 ADDR_LINES), | |
41 | 261 EX(CMD_cbuffer, "cbuffer", ex_cbuffer, |
6398 | 262 BANG|RANGE|NOTADR|WORD1|TRLBAR, |
263 ADDR_LINES), | |
7 | 264 EX(CMD_cc, "cc", ex_cc, |
6398 | 265 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
266 ADDR_LINES), | |
7 | 267 EX(CMD_cclose, "cclose", ex_cclose, |
6398 | 268 RANGE|NOTADR|COUNT|TRLBAR, |
269 ADDR_LINES), | |
7 | 270 EX(CMD_cd, "cd", ex_cd, |
6398 | 271 BANG|FILE1|TRLBAR|CMDWIN, |
272 ADDR_LINES), | |
7 | 273 EX(CMD_center, "center", ex_align, |
6398 | 274 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY, |
275 ADDR_LINES), | |
446 | 276 EX(CMD_cexpr, "cexpr", ex_cexpr, |
6398 | 277 NEEDARG|WORD1|NOTRLCOM|TRLBAR|BANG, |
278 ADDR_LINES), | |
7 | 279 EX(CMD_cfile, "cfile", ex_cfile, |
6398 | 280 TRLBAR|FILE1|BANG, |
281 ADDR_LINES), | |
7 | 282 EX(CMD_cfirst, "cfirst", ex_cc, |
6398 | 283 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
284 ADDR_LINES), | |
800 | 285 EX(CMD_cgetfile, "cgetfile", ex_cfile, |
6398 | 286 TRLBAR|FILE1, |
287 ADDR_LINES), | |
798 | 288 EX(CMD_cgetbuffer, "cgetbuffer", ex_cbuffer, |
6398 | 289 RANGE|NOTADR|WORD1|TRLBAR, |
290 ADDR_LINES), | |
798 | 291 EX(CMD_cgetexpr, "cgetexpr", ex_cexpr, |
6398 | 292 NEEDARG|WORD1|NOTRLCOM|TRLBAR, |
293 ADDR_LINES), | |
7 | 294 EX(CMD_chdir, "chdir", ex_cd, |
6398 | 295 BANG|FILE1|TRLBAR|CMDWIN, |
296 ADDR_LINES), | |
7 | 297 EX(CMD_changes, "changes", ex_changes, |
6398 | 298 TRLBAR|CMDWIN, |
299 ADDR_LINES), | |
7 | 300 EX(CMD_checkpath, "checkpath", ex_checkpath, |
6398 | 301 TRLBAR|BANG|CMDWIN, |
302 ADDR_LINES), | |
7 | 303 EX(CMD_checktime, "checktime", ex_checktime, |
6398 | 304 RANGE|NOTADR|BUFNAME|COUNT|EXTRA|TRLBAR, |
305 ADDR_LINES), | |
7 | 306 EX(CMD_clist, "clist", qf_list, |
6398 | 307 BANG|EXTRA|TRLBAR|CMDWIN, |
308 ADDR_LINES), | |
7 | 309 EX(CMD_clast, "clast", ex_cc, |
6398 | 310 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
311 ADDR_LINES), | |
7 | 312 EX(CMD_close, "close", ex_close, |
6398 | 313 BANG|RANGE|NOTADR|COUNT|TRLBAR|CMDWIN, |
314 ADDR_WINDOWS), | |
7 | 315 EX(CMD_cmap, "cmap", ex_map, |
6398 | 316 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
317 ADDR_LINES), | |
7 | 318 EX(CMD_cmapclear, "cmapclear", ex_mapclear, |
6398 | 319 EXTRA|TRLBAR|CMDWIN, |
320 ADDR_LINES), | |
7 | 321 EX(CMD_cmenu, "cmenu", ex_menu, |
6398 | 322 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
323 ADDR_LINES), | |
7 | 324 EX(CMD_cnext, "cnext", ex_cnext, |
6398 | 325 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
326 ADDR_LINES), | |
7 | 327 EX(CMD_cnewer, "cnewer", qf_age, |
6398 | 328 RANGE|NOTADR|COUNT|TRLBAR, |
329 ADDR_LINES), | |
7 | 330 EX(CMD_cnfile, "cnfile", ex_cnext, |
6398 | 331 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
332 ADDR_LINES), | |
7 | 333 EX(CMD_cnoremap, "cnoremap", ex_map, |
6398 | 334 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
335 ADDR_LINES), | |
7 | 336 EX(CMD_cnoreabbrev, "cnoreabbrev", ex_abbreviate, |
6398 | 337 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
338 ADDR_LINES), | |
7 | 339 EX(CMD_cnoremenu, "cnoremenu", ex_menu, |
6398 | 340 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
341 ADDR_LINES), | |
7 | 342 EX(CMD_copy, "copy", ex_copymove, |
6398 | 343 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY, |
344 ADDR_LINES), | |
7 | 345 EX(CMD_colder, "colder", qf_age, |
6398 | 346 RANGE|NOTADR|COUNT|TRLBAR, |
347 ADDR_LINES), | |
7 | 348 EX(CMD_colorscheme, "colorscheme", ex_colorscheme, |
6398 | 349 WORD1|TRLBAR|CMDWIN, |
350 ADDR_LINES), | |
7 | 351 EX(CMD_command, "command", ex_command, |
6398 | 352 EXTRA|BANG|NOTRLCOM|USECTRLV|CMDWIN, |
353 ADDR_LINES), | |
7 | 354 EX(CMD_comclear, "comclear", ex_comclear, |
6398 | 355 TRLBAR|CMDWIN, |
356 ADDR_LINES), | |
7 | 357 EX(CMD_compiler, "compiler", ex_compiler, |
6398 | 358 BANG|TRLBAR|WORD1|CMDWIN, |
359 ADDR_LINES), | |
7 | 360 EX(CMD_continue, "continue", ex_continue, |
6398 | 361 TRLBAR|SBOXOK|CMDWIN, |
362 ADDR_LINES), | |
7 | 363 EX(CMD_confirm, "confirm", ex_wrongmodifier, |
6398 | 364 NEEDARG|EXTRA|NOTRLCOM|CMDWIN, |
365 ADDR_LINES), | |
7 | 366 EX(CMD_copen, "copen", ex_copen, |
6398 | 367 RANGE|NOTADR|COUNT|TRLBAR, |
368 ADDR_LINES), | |
7 | 369 EX(CMD_cprevious, "cprevious", ex_cnext, |
6398 | 370 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
371 ADDR_LINES), | |
7 | 372 EX(CMD_cpfile, "cpfile", ex_cnext, |
6398 | 373 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
374 ADDR_LINES), | |
7 | 375 EX(CMD_cquit, "cquit", ex_cquit, |
6398 | 376 TRLBAR|BANG, |
377 ADDR_LINES), | |
7 | 378 EX(CMD_crewind, "crewind", ex_cc, |
6398 | 379 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
380 ADDR_LINES), | |
7 | 381 EX(CMD_cscope, "cscope", do_cscope, |
6398 | 382 EXTRA|NOTRLCOM|XFILE, |
383 ADDR_LINES), | |
7 | 384 EX(CMD_cstag, "cstag", do_cstag, |
6398 | 385 BANG|TRLBAR|WORD1, |
386 ADDR_LINES), | |
7 | 387 EX(CMD_cunmap, "cunmap", ex_unmap, |
6398 | 388 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
389 ADDR_LINES), | |
7 | 390 EX(CMD_cunabbrev, "cunabbrev", ex_abbreviate, |
6398 | 391 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
392 ADDR_LINES), | |
7 | 393 EX(CMD_cunmenu, "cunmenu", ex_menu, |
6398 | 394 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
395 ADDR_LINES), | |
7 | 396 EX(CMD_cwindow, "cwindow", ex_cwindow, |
6398 | 397 RANGE|NOTADR|COUNT|TRLBAR, |
398 ADDR_LINES), | |
7 | 399 EX(CMD_delete, "delete", ex_operators, |
6398 | 400 RANGE|WHOLEFOLD|REGSTR|COUNT|TRLBAR|CMDWIN|MODIFY, |
401 ADDR_LINES), | |
24 | 402 EX(CMD_delmarks, "delmarks", ex_delmarks, |
6398 | 403 BANG|EXTRA|TRLBAR|CMDWIN, |
404 ADDR_LINES), | |
7 | 405 EX(CMD_debug, "debug", ex_debug, |
6398 | 406 NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
407 ADDR_LINES), | |
7 | 408 EX(CMD_debuggreedy, "debuggreedy", ex_debuggreedy, |
6398 | 409 RANGE|NOTADR|ZEROR|TRLBAR|CMDWIN, |
410 ADDR_LINES), | |
7 | 411 EX(CMD_delcommand, "delcommand", ex_delcommand, |
6398 | 412 NEEDARG|WORD1|TRLBAR|CMDWIN, |
413 ADDR_LINES), | |
7 | 414 EX(CMD_delfunction, "delfunction", ex_delfunction, |
6398 | 415 NEEDARG|WORD1|CMDWIN, |
416 ADDR_LINES), | |
7 | 417 EX(CMD_display, "display", ex_display, |
6398 | 418 EXTRA|NOTRLCOM|TRLBAR|SBOXOK|CMDWIN, |
419 ADDR_LINES), | |
7 | 420 EX(CMD_diffupdate, "diffupdate", ex_diffupdate, |
6398 | 421 BANG|TRLBAR, |
422 ADDR_LINES), | |
7 | 423 EX(CMD_diffget, "diffget", ex_diffgetput, |
6398 | 424 RANGE|EXTRA|TRLBAR|MODIFY, |
425 ADDR_LINES), | |
16 | 426 EX(CMD_diffoff, "diffoff", ex_diffoff, |
6398 | 427 BANG|TRLBAR, |
428 ADDR_LINES), | |
7 | 429 EX(CMD_diffpatch, "diffpatch", ex_diffpatch, |
6398 | 430 EXTRA|FILE1|TRLBAR|MODIFY, |
431 ADDR_LINES), | |
7 | 432 EX(CMD_diffput, "diffput", ex_diffgetput, |
6398 | 433 RANGE|EXTRA|TRLBAR, |
434 ADDR_LINES), | |
7 | 435 EX(CMD_diffsplit, "diffsplit", ex_diffsplit, |
6398 | 436 EXTRA|FILE1|TRLBAR, |
437 ADDR_LINES), | |
7 | 438 EX(CMD_diffthis, "diffthis", ex_diffthis, |
6398 | 439 TRLBAR, |
440 ADDR_LINES), | |
7 | 441 EX(CMD_digraphs, "digraphs", ex_digraphs, |
6398 | 442 EXTRA|TRLBAR|CMDWIN, |
443 ADDR_LINES), | |
7 | 444 EX(CMD_djump, "djump", ex_findpat, |
6398 | 445 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA, |
446 ADDR_LINES), | |
7 | 447 EX(CMD_dlist, "dlist", ex_findpat, |
6398 | 448 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN, |
449 ADDR_LINES), | |
7 | 450 EX(CMD_doautocmd, "doautocmd", ex_doautocmd, |
6398 | 451 EXTRA|TRLBAR|CMDWIN, |
452 ADDR_LINES), | |
7 | 453 EX(CMD_doautoall, "doautoall", ex_doautoall, |
6398 | 454 EXTRA|TRLBAR|CMDWIN, |
455 ADDR_LINES), | |
7 | 456 EX(CMD_drop, "drop", ex_drop, |
6398 | 457 FILES|EDITCMD|NEEDARG|ARGOPT|TRLBAR, |
458 ADDR_LINES), | |
7 | 459 EX(CMD_dsearch, "dsearch", ex_findpat, |
6398 | 460 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN, |
461 ADDR_LINES), | |
7 | 462 EX(CMD_dsplit, "dsplit", ex_findpat, |
6398 | 463 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA, |
464 ADDR_LINES), | |
7 | 465 EX(CMD_edit, "edit", ex_edit, |
6398 | 466 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
467 ADDR_LINES), | |
762 | 468 EX(CMD_earlier, "earlier", ex_later, |
6398 | 469 TRLBAR|EXTRA|NOSPC|CMDWIN, |
470 ADDR_LINES), | |
7 | 471 EX(CMD_echo, "echo", ex_echo, |
6398 | 472 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
473 ADDR_LINES), | |
7 | 474 EX(CMD_echoerr, "echoerr", ex_execute, |
6398 | 475 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
476 ADDR_LINES), | |
7 | 477 EX(CMD_echohl, "echohl", ex_echohl, |
6398 | 478 EXTRA|TRLBAR|SBOXOK|CMDWIN, |
479 ADDR_LINES), | |
7 | 480 EX(CMD_echomsg, "echomsg", ex_execute, |
6398 | 481 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
482 ADDR_LINES), | |
7 | 483 EX(CMD_echon, "echon", ex_echo, |
6398 | 484 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
485 ADDR_LINES), | |
7 | 486 EX(CMD_else, "else", ex_else, |
6398 | 487 TRLBAR|SBOXOK|CMDWIN, |
488 ADDR_LINES), | |
7 | 489 EX(CMD_elseif, "elseif", ex_else, |
6398 | 490 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
491 ADDR_LINES), | |
7 | 492 EX(CMD_emenu, "emenu", ex_emenu, |
6398 | 493 NEEDARG|EXTRA|TRLBAR|NOTRLCOM|RANGE|NOTADR|CMDWIN, |
494 ADDR_LINES), | |
7 | 495 EX(CMD_endif, "endif", ex_endif, |
6398 | 496 TRLBAR|SBOXOK|CMDWIN, |
497 ADDR_LINES), | |
7 | 498 EX(CMD_endfunction, "endfunction", ex_endfunction, |
6398 | 499 TRLBAR|CMDWIN, |
500 ADDR_LINES), | |
76 | 501 EX(CMD_endfor, "endfor", ex_endwhile, |
6398 | 502 TRLBAR|SBOXOK|CMDWIN, |
503 ADDR_LINES), | |
7 | 504 EX(CMD_endtry, "endtry", ex_endtry, |
6398 | 505 TRLBAR|SBOXOK|CMDWIN, |
506 ADDR_LINES), | |
7 | 507 EX(CMD_endwhile, "endwhile", ex_endwhile, |
6398 | 508 TRLBAR|SBOXOK|CMDWIN, |
509 ADDR_LINES), | |
7 | 510 EX(CMD_enew, "enew", ex_edit, |
6398 | 511 BANG|TRLBAR, |
512 ADDR_LINES), | |
7 | 513 EX(CMD_ex, "ex", ex_edit, |
6398 | 514 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
515 ADDR_LINES), | |
7 | 516 EX(CMD_execute, "execute", ex_execute, |
6398 | 517 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
518 ADDR_LINES), | |
7 | 519 EX(CMD_exit, "exit", ex_exit, |
6398 | 520 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN, |
521 ADDR_LINES), | |
40 | 522 EX(CMD_exusage, "exusage", ex_exusage, |
6398 | 523 TRLBAR, |
524 ADDR_LINES), | |
7 | 525 EX(CMD_file, "file", ex_file, |
6398 | 526 RANGE|NOTADR|ZEROR|BANG|FILE1|TRLBAR, |
527 ADDR_LINES), | |
7 | 528 EX(CMD_files, "files", buflist_list, |
6398 | 529 BANG|TRLBAR|CMDWIN, |
530 ADDR_LINES), | |
7 | 531 EX(CMD_filetype, "filetype", ex_filetype, |
6398 | 532 EXTRA|TRLBAR|CMDWIN, |
533 ADDR_LINES), | |
7 | 534 EX(CMD_find, "find", ex_find, |
6398 | 535 RANGE|NOTADR|BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
536 ADDR_LINES), | |
7 | 537 EX(CMD_finally, "finally", ex_finally, |
6398 | 538 TRLBAR|SBOXOK|CMDWIN, |
539 ADDR_LINES), | |
7 | 540 EX(CMD_finish, "finish", ex_finish, |
6398 | 541 TRLBAR|SBOXOK|CMDWIN, |
542 ADDR_LINES), | |
7 | 543 EX(CMD_first, "first", ex_rewind, |
6398 | 544 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
545 ADDR_LINES), | |
7 | 546 EX(CMD_fixdel, "fixdel", do_fixdel, |
6398 | 547 TRLBAR|CMDWIN, |
548 ADDR_LINES), | |
7 | 549 EX(CMD_fold, "fold", ex_fold, |
6398 | 550 RANGE|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN, |
551 ADDR_LINES), | |
7 | 552 EX(CMD_foldclose, "foldclose", ex_foldopen, |
6398 | 553 RANGE|BANG|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN, |
554 ADDR_LINES), | |
7 | 555 EX(CMD_folddoopen, "folddoopen", ex_folddo, |
6398 | 556 RANGE|DFLALL|NEEDARG|EXTRA|NOTRLCOM, |
557 ADDR_LINES), | |
7 | 558 EX(CMD_folddoclosed, "folddoclosed", ex_folddo, |
6398 | 559 RANGE|DFLALL|NEEDARG|EXTRA|NOTRLCOM, |
560 ADDR_LINES), | |
7 | 561 EX(CMD_foldopen, "foldopen", ex_foldopen, |
6398 | 562 RANGE|BANG|WHOLEFOLD|TRLBAR|SBOXOK|CMDWIN, |
563 ADDR_LINES), | |
76 | 564 EX(CMD_for, "for", ex_while, |
6398 | 565 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
566 ADDR_LINES), | |
7 | 567 EX(CMD_function, "function", ex_function, |
6398 | 568 EXTRA|BANG|CMDWIN, |
569 ADDR_LINES), | |
7 | 570 EX(CMD_global, "global", ex_global, |
6398 | 571 RANGE|WHOLEFOLD|BANG|EXTRA|DFLALL|SBOXOK|CMDWIN, |
572 ADDR_LINES), | |
7 | 573 EX(CMD_goto, "goto", ex_goto, |
6398 | 574 RANGE|NOTADR|COUNT|TRLBAR|SBOXOK|CMDWIN, |
575 ADDR_LINES), | |
7 | 576 EX(CMD_grep, "grep", ex_make, |
6398 | 577 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
578 ADDR_LINES), | |
7 | 579 EX(CMD_grepadd, "grepadd", ex_make, |
6398 | 580 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
581 ADDR_LINES), | |
7 | 582 EX(CMD_gui, "gui", ex_gui, |
6398 | 583 BANG|FILES|EDITCMD|ARGOPT|TRLBAR|CMDWIN, |
584 ADDR_LINES), | |
7 | 585 EX(CMD_gvim, "gvim", ex_gui, |
6398 | 586 BANG|FILES|EDITCMD|ARGOPT|TRLBAR|CMDWIN, |
587 ADDR_LINES), | |
7 | 588 EX(CMD_help, "help", ex_help, |
6398 | 589 BANG|EXTRA|NOTRLCOM, |
590 ADDR_LINES), | |
6228 | 591 EX(CMD_helpclose, "helpclose", ex_helpclose, |
6398 | 592 RANGE|NOTADR|COUNT|TRLBAR, |
593 ADDR_LINES), | |
7 | 594 EX(CMD_helpfind, "helpfind", ex_helpfind, |
6398 | 595 EXTRA|NOTRLCOM, |
596 ADDR_LINES), | |
7 | 597 EX(CMD_helpgrep, "helpgrep", ex_helpgrep, |
6398 | 598 EXTRA|NOTRLCOM|NEEDARG, |
599 ADDR_LINES), | |
7 | 600 EX(CMD_helptags, "helptags", ex_helptags, |
6398 | 601 NEEDARG|FILES|TRLBAR|CMDWIN, |
602 ADDR_LINES), | |
7 | 603 EX(CMD_hardcopy, "hardcopy", ex_hardcopy, |
6398 | 604 RANGE|COUNT|EXTRA|TRLBAR|DFLALL|BANG, |
605 ADDR_LINES), | |
7 | 606 EX(CMD_highlight, "highlight", ex_highlight, |
6398 | 607 BANG|EXTRA|TRLBAR|SBOXOK|CMDWIN, |
608 ADDR_LINES), | |
7 | 609 EX(CMD_hide, "hide", ex_hide, |
6398 | 610 BANG|RANGE|NOTADR|COUNT|EXTRA|NOTRLCOM, |
611 ADDR_WINDOWS), | |
7 | 612 EX(CMD_history, "history", ex_history, |
6398 | 613 EXTRA|TRLBAR|CMDWIN, |
614 ADDR_LINES), | |
7 | 615 EX(CMD_insert, "insert", ex_append, |
6398 | 616 BANG|RANGE|TRLBAR|CMDWIN|MODIFY, |
617 ADDR_LINES), | |
7 | 618 EX(CMD_iabbrev, "iabbrev", ex_abbreviate, |
6398 | 619 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
620 ADDR_LINES), | |
7 | 621 EX(CMD_iabclear, "iabclear", ex_abclear, |
6398 | 622 EXTRA|TRLBAR|CMDWIN, |
623 ADDR_LINES), | |
7 | 624 EX(CMD_if, "if", ex_if, |
6398 | 625 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
626 ADDR_LINES), | |
7 | 627 EX(CMD_ijump, "ijump", ex_findpat, |
6398 | 628 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA, |
629 ADDR_LINES), | |
7 | 630 EX(CMD_ilist, "ilist", ex_findpat, |
6398 | 631 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN, |
632 ADDR_LINES), | |
7 | 633 EX(CMD_imap, "imap", ex_map, |
6398 | 634 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
635 ADDR_LINES), | |
7 | 636 EX(CMD_imapclear, "imapclear", ex_mapclear, |
6398 | 637 EXTRA|TRLBAR|CMDWIN, |
638 ADDR_LINES), | |
7 | 639 EX(CMD_imenu, "imenu", ex_menu, |
6398 | 640 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
641 ADDR_LINES), | |
7 | 642 EX(CMD_inoremap, "inoremap", ex_map, |
6398 | 643 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
644 ADDR_LINES), | |
7 | 645 EX(CMD_inoreabbrev, "inoreabbrev", ex_abbreviate, |
6398 | 646 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
647 ADDR_LINES), | |
7 | 648 EX(CMD_inoremenu, "inoremenu", ex_menu, |
6398 | 649 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
650 ADDR_LINES), | |
7 | 651 EX(CMD_intro, "intro", ex_intro, |
6398 | 652 TRLBAR|CMDWIN, |
653 ADDR_LINES), | |
7 | 654 EX(CMD_isearch, "isearch", ex_findpat, |
6398 | 655 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA|CMDWIN, |
656 ADDR_LINES), | |
7 | 657 EX(CMD_isplit, "isplit", ex_findpat, |
6398 | 658 BANG|RANGE|DFLALL|WHOLEFOLD|EXTRA, |
659 ADDR_LINES), | |
7 | 660 EX(CMD_iunmap, "iunmap", ex_unmap, |
6398 | 661 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
662 ADDR_LINES), | |
7 | 663 EX(CMD_iunabbrev, "iunabbrev", ex_abbreviate, |
6398 | 664 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
665 ADDR_LINES), | |
7 | 666 EX(CMD_iunmenu, "iunmenu", ex_menu, |
6398 | 667 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
668 ADDR_LINES), | |
7 | 669 EX(CMD_join, "join", ex_join, |
6398 | 670 BANG|RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY, |
671 ADDR_LINES), | |
7 | 672 EX(CMD_jumps, "jumps", ex_jumps, |
6398 | 673 TRLBAR|CMDWIN, |
674 ADDR_LINES), | |
7 | 675 EX(CMD_k, "k", ex_mark, |
6398 | 676 RANGE|WORD1|TRLBAR|SBOXOK|CMDWIN, |
677 ADDR_LINES), | |
7 | 678 EX(CMD_keepmarks, "keepmarks", ex_wrongmodifier, |
6398 | 679 NEEDARG|EXTRA|NOTRLCOM, |
680 ADDR_LINES), | |
7 | 681 EX(CMD_keepjumps, "keepjumps", ex_wrongmodifier, |
6398 | 682 NEEDARG|EXTRA|NOTRLCOM, |
683 ADDR_LINES), | |
5467 | 684 EX(CMD_keeppatterns, "keeppatterns", ex_wrongmodifier, |
6398 | 685 NEEDARG|EXTRA|NOTRLCOM, |
686 ADDR_LINES), | |
22 | 687 EX(CMD_keepalt, "keepalt", ex_wrongmodifier, |
6398 | 688 NEEDARG|EXTRA|NOTRLCOM, |
689 ADDR_LINES), | |
7 | 690 EX(CMD_list, "list", ex_print, |
6398 | 691 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN, |
692 ADDR_LINES), | |
644 | 693 EX(CMD_lNext, "lNext", ex_cnext, |
6398 | 694 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
695 ADDR_LINES), | |
644 | 696 EX(CMD_lNfile, "lNfile", ex_cnext, |
6398 | 697 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
698 ADDR_LINES), | |
7 | 699 EX(CMD_last, "last", ex_last, |
6398 | 700 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
701 ADDR_LINES), | |
7 | 702 EX(CMD_language, "language", ex_language, |
6398 | 703 EXTRA|TRLBAR|CMDWIN, |
704 ADDR_LINES), | |
644 | 705 EX(CMD_laddexpr, "laddexpr", ex_cexpr, |
6398 | 706 NEEDARG|WORD1|NOTRLCOM|TRLBAR, |
707 ADDR_LINES), | |
658 | 708 EX(CMD_laddbuffer, "laddbuffer", ex_cbuffer, |
6398 | 709 RANGE|NOTADR|WORD1|TRLBAR, |
710 ADDR_LINES), | |
644 | 711 EX(CMD_laddfile, "laddfile", ex_cfile, |
6398 | 712 TRLBAR|FILE1, |
713 ADDR_LINES), | |
762 | 714 EX(CMD_later, "later", ex_later, |
6398 | 715 TRLBAR|EXTRA|NOSPC|CMDWIN, |
716 ADDR_LINES), | |
644 | 717 EX(CMD_lbuffer, "lbuffer", ex_cbuffer, |
6398 | 718 BANG|RANGE|NOTADR|WORD1|TRLBAR, |
719 ADDR_LINES), | |
7 | 720 EX(CMD_lcd, "lcd", ex_cd, |
6398 | 721 BANG|FILE1|TRLBAR|CMDWIN, |
722 ADDR_LINES), | |
7 | 723 EX(CMD_lchdir, "lchdir", ex_cd, |
6398 | 724 BANG|FILE1|TRLBAR|CMDWIN, |
725 ADDR_LINES), | |
644 | 726 EX(CMD_lclose, "lclose", ex_cclose, |
6398 | 727 RANGE|NOTADR|COUNT|TRLBAR, |
728 ADDR_LINES), | |
666 | 729 EX(CMD_lcscope, "lcscope", do_cscope, |
6398 | 730 EXTRA|NOTRLCOM|XFILE, |
731 ADDR_LINES), | |
7 | 732 EX(CMD_left, "left", ex_align, |
6398 | 733 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY, |
734 ADDR_LINES), | |
7 | 735 EX(CMD_leftabove, "leftabove", ex_wrongmodifier, |
6398 | 736 NEEDARG|EXTRA|NOTRLCOM, |
737 ADDR_LINES), | |
7 | 738 EX(CMD_let, "let", ex_let, |
6398 | 739 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
740 ADDR_LINES), | |
644 | 741 EX(CMD_lexpr, "lexpr", ex_cexpr, |
6398 | 742 NEEDARG|WORD1|NOTRLCOM|TRLBAR|BANG, |
743 ADDR_LINES), | |
644 | 744 EX(CMD_lfile, "lfile", ex_cfile, |
6398 | 745 TRLBAR|FILE1|BANG, |
746 ADDR_LINES), | |
644 | 747 EX(CMD_lfirst, "lfirst", ex_cc, |
6398 | 748 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
749 ADDR_LINES), | |
644 | 750 EX(CMD_lgetfile, "lgetfile", ex_cfile, |
6398 | 751 TRLBAR|FILE1, |
752 ADDR_LINES), | |
798 | 753 EX(CMD_lgetbuffer, "lgetbuffer", ex_cbuffer, |
6398 | 754 RANGE|NOTADR|WORD1|TRLBAR, |
755 ADDR_LINES), | |
798 | 756 EX(CMD_lgetexpr, "lgetexpr", ex_cexpr, |
6398 | 757 NEEDARG|WORD1|NOTRLCOM|TRLBAR, |
758 ADDR_LINES), | |
658 | 759 EX(CMD_lgrep, "lgrep", ex_make, |
6398 | 760 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
761 ADDR_LINES), | |
658 | 762 EX(CMD_lgrepadd, "lgrepadd", ex_make, |
6398 | 763 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
764 ADDR_LINES), | |
659 | 765 EX(CMD_lhelpgrep, "lhelpgrep", ex_helpgrep, |
6398 | 766 EXTRA|NOTRLCOM|NEEDARG, |
767 ADDR_LINES), | |
644 | 768 EX(CMD_ll, "ll", ex_cc, |
6398 | 769 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
770 ADDR_LINES), | |
644 | 771 EX(CMD_llast, "llast", ex_cc, |
6398 | 772 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
773 ADDR_LINES), | |
644 | 774 EX(CMD_llist, "llist", qf_list, |
6398 | 775 BANG|EXTRA|TRLBAR|CMDWIN, |
776 ADDR_LINES), | |
7 | 777 EX(CMD_lmap, "lmap", ex_map, |
6398 | 778 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
779 ADDR_LINES), | |
7 | 780 EX(CMD_lmapclear, "lmapclear", ex_mapclear, |
6398 | 781 EXTRA|TRLBAR|CMDWIN, |
782 ADDR_LINES), | |
658 | 783 EX(CMD_lmake, "lmake", ex_make, |
6398 | 784 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
785 ADDR_LINES), | |
7 | 786 EX(CMD_lnoremap, "lnoremap", ex_map, |
6398 | 787 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
788 ADDR_LINES), | |
644 | 789 EX(CMD_lnext, "lnext", ex_cnext, |
6398 | 790 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
791 ADDR_LINES), | |
644 | 792 EX(CMD_lnewer, "lnewer", qf_age, |
6398 | 793 RANGE|NOTADR|COUNT|TRLBAR, |
794 ADDR_LINES), | |
644 | 795 EX(CMD_lnfile, "lnfile", ex_cnext, |
6398 | 796 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
797 ADDR_LINES), | |
7 | 798 EX(CMD_loadview, "loadview", ex_loadview, |
6398 | 799 FILE1|TRLBAR, |
800 ADDR_LINES), | |
7 | 801 EX(CMD_loadkeymap, "loadkeymap", ex_loadkeymap, |
6398 | 802 CMDWIN, |
803 ADDR_LINES), | |
7 | 804 EX(CMD_lockmarks, "lockmarks", ex_wrongmodifier, |
6398 | 805 NEEDARG|EXTRA|NOTRLCOM, |
806 ADDR_LINES), | |
151 | 807 EX(CMD_lockvar, "lockvar", ex_lockvar, |
6398 | 808 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN, |
809 ADDR_LINES), | |
644 | 810 EX(CMD_lolder, "lolder", qf_age, |
6398 | 811 RANGE|NOTADR|COUNT|TRLBAR, |
812 ADDR_LINES), | |
644 | 813 EX(CMD_lopen, "lopen", ex_copen, |
6398 | 814 RANGE|NOTADR|COUNT|TRLBAR, |
815 ADDR_LINES), | |
644 | 816 EX(CMD_lprevious, "lprevious", ex_cnext, |
6398 | 817 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
818 ADDR_LINES), | |
644 | 819 EX(CMD_lpfile, "lpfile", ex_cnext, |
6398 | 820 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
821 ADDR_LINES), | |
644 | 822 EX(CMD_lrewind, "lrewind", ex_cc, |
6398 | 823 RANGE|NOTADR|COUNT|TRLBAR|BANG, |
824 ADDR_LINES), | |
651 | 825 EX(CMD_ltag, "ltag", ex_tag, |
6398 | 826 NOTADR|TRLBAR|BANG|WORD1, |
827 ADDR_LINES), | |
5732 | 828 EX(CMD_lunmap, "lunmap", ex_unmap, |
6398 | 829 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
830 ADDR_LINES), | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
831 EX(CMD_lua, "lua", ex_lua, |
6398 | 832 RANGE|EXTRA|NEEDARG|CMDWIN, |
833 ADDR_LINES), | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
834 EX(CMD_luado, "luado", ex_luado, |
6398 | 835 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN, |
836 ADDR_LINES), | |
2320
966a5609669e
Added Lua interfae. (Luis Carvalho)
Bram Moolenaar <bram@vim.org>
parents:
2296
diff
changeset
|
837 EX(CMD_luafile, "luafile", ex_luafile, |
6398 | 838 RANGE|FILE1|NEEDARG|CMDWIN, |
839 ADDR_LINES), | |
658 | 840 EX(CMD_lvimgrep, "lvimgrep", ex_vimgrep, |
6398 | 841 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
842 ADDR_LINES), | |
658 | 843 EX(CMD_lvimgrepadd, "lvimgrepadd", ex_vimgrep, |
6398 | 844 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
845 ADDR_LINES), | |
644 | 846 EX(CMD_lwindow, "lwindow", ex_cwindow, |
6398 | 847 RANGE|NOTADR|COUNT|TRLBAR, |
848 ADDR_LINES), | |
7 | 849 EX(CMD_ls, "ls", buflist_list, |
6398 | 850 BANG|TRLBAR|CMDWIN, |
851 ADDR_LINES), | |
7 | 852 EX(CMD_move, "move", ex_copymove, |
6398 | 853 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY, |
854 ADDR_LINES), | |
7 | 855 EX(CMD_mark, "mark", ex_mark, |
6398 | 856 RANGE|WORD1|TRLBAR|SBOXOK|CMDWIN, |
857 ADDR_LINES), | |
7 | 858 EX(CMD_make, "make", ex_make, |
6398 | 859 BANG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
860 ADDR_LINES), | |
7 | 861 EX(CMD_map, "map", ex_map, |
6398 | 862 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
863 ADDR_LINES), | |
7 | 864 EX(CMD_mapclear, "mapclear", ex_mapclear, |
6398 | 865 EXTRA|BANG|TRLBAR|CMDWIN, |
866 ADDR_LINES), | |
7 | 867 EX(CMD_marks, "marks", do_marks, |
6398 | 868 EXTRA|TRLBAR|CMDWIN, |
869 ADDR_LINES), | |
7 | 870 EX(CMD_match, "match", ex_match, |
6398 | 871 RANGE|NOTADR|EXTRA|CMDWIN, |
872 ADDR_LINES), | |
7 | 873 EX(CMD_menu, "menu", ex_menu, |
6398 | 874 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
875 ADDR_LINES), | |
7 | 876 EX(CMD_menutranslate, "menutranslate", ex_menutranslate, |
6398 | 877 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
878 ADDR_LINES), | |
7 | 879 EX(CMD_messages, "messages", ex_messages, |
6398 | 880 TRLBAR|CMDWIN, |
881 ADDR_LINES), | |
7 | 882 EX(CMD_mkexrc, "mkexrc", ex_mkrc, |
6398 | 883 BANG|FILE1|TRLBAR|CMDWIN, |
884 ADDR_LINES), | |
7 | 885 EX(CMD_mksession, "mksession", ex_mkrc, |
6398 | 886 BANG|FILE1|TRLBAR, |
887 ADDR_LINES), | |
237 | 888 EX(CMD_mkspell, "mkspell", ex_mkspell, |
6398 | 889 BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
890 ADDR_LINES), | |
7 | 891 EX(CMD_mkvimrc, "mkvimrc", ex_mkrc, |
6398 | 892 BANG|FILE1|TRLBAR|CMDWIN, |
893 ADDR_LINES), | |
7 | 894 EX(CMD_mkview, "mkview", ex_mkrc, |
6398 | 895 BANG|FILE1|TRLBAR, |
896 ADDR_LINES), | |
7 | 897 EX(CMD_mode, "mode", ex_mode, |
6398 | 898 WORD1|TRLBAR|CMDWIN, |
899 ADDR_LINES), | |
14 | 900 EX(CMD_mzscheme, "mzscheme", ex_mzscheme, |
6398 | 901 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN|SBOXOK, |
902 ADDR_LINES), | |
14 | 903 EX(CMD_mzfile, "mzfile", ex_mzfile, |
6398 | 904 RANGE|FILE1|NEEDARG|CMDWIN, |
905 ADDR_LINES), | |
7 | 906 EX(CMD_next, "next", ex_next, |
6398 | 907 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR, |
908 ADDR_LINES), | |
34 | 909 EX(CMD_nbkey, "nbkey", ex_nbkey, |
6398 | 910 EXTRA|NOTADR|NEEDARG, |
911 ADDR_LINES), | |
2210 | 912 EX(CMD_nbclose, "nbclose", ex_nbclose, |
6398 | 913 TRLBAR|CMDWIN, |
914 ADDR_LINES), | |
2210 | 915 EX(CMD_nbstart, "nbstart", ex_nbstart, |
6398 | 916 WORD1|TRLBAR|CMDWIN, |
917 ADDR_LINES), | |
7 | 918 EX(CMD_new, "new", ex_splitview, |
6398 | 919 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
920 ADDR_LINES), | |
7 | 921 EX(CMD_nmap, "nmap", ex_map, |
6398 | 922 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
923 ADDR_LINES), | |
7 | 924 EX(CMD_nmapclear, "nmapclear", ex_mapclear, |
6398 | 925 EXTRA|TRLBAR|CMDWIN, |
926 ADDR_LINES), | |
7 | 927 EX(CMD_nmenu, "nmenu", ex_menu, |
6398 | 928 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
929 ADDR_LINES), | |
7 | 930 EX(CMD_nnoremap, "nnoremap", ex_map, |
6398 | 931 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
932 ADDR_LINES), | |
7 | 933 EX(CMD_nnoremenu, "nnoremenu", ex_menu, |
6398 | 934 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
935 ADDR_LINES), | |
7 | 936 EX(CMD_noremap, "noremap", ex_map, |
6398 | 937 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
938 ADDR_LINES), | |
1721 | 939 EX(CMD_noautocmd, "noautocmd", ex_wrongmodifier, |
6398 | 940 NEEDARG|EXTRA|NOTRLCOM, |
941 ADDR_LINES), | |
7 | 942 EX(CMD_nohlsearch, "nohlsearch", ex_nohlsearch, |
6398 | 943 TRLBAR|SBOXOK|CMDWIN, |
944 ADDR_LINES), | |
7 | 945 EX(CMD_noreabbrev, "noreabbrev", ex_abbreviate, |
6398 | 946 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
947 ADDR_LINES), | |
7 | 948 EX(CMD_noremenu, "noremenu", ex_menu, |
6398 | 949 RANGE|NOTADR|ZEROR|BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
950 ADDR_LINES), | |
5737 | 951 EX(CMD_noswapfile, "noswapfile", ex_wrongmodifier, |
6398 | 952 NEEDARG|EXTRA|NOTRLCOM, |
953 ADDR_LINES), | |
7 | 954 EX(CMD_normal, "normal", ex_normal, |
6398 | 955 RANGE|BANG|EXTRA|NEEDARG|NOTRLCOM|USECTRLV|SBOXOK|CMDWIN, |
956 ADDR_LINES), | |
7 | 957 EX(CMD_number, "number", ex_print, |
6398 | 958 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN, |
959 ADDR_LINES), | |
7 | 960 EX(CMD_nunmap, "nunmap", ex_unmap, |
6398 | 961 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
962 ADDR_LINES), | |
7 | 963 EX(CMD_nunmenu, "nunmenu", ex_menu, |
6398 | 964 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
965 ADDR_LINES), | |
169 | 966 EX(CMD_open, "open", ex_open, |
6398 | 967 RANGE|BANG|EXTRA, |
968 ADDR_LINES), | |
1733 | 969 EX(CMD_oldfiles, "oldfiles", ex_oldfiles, |
6398 | 970 BANG|TRLBAR|SBOXOK|CMDWIN, |
971 ADDR_LINES), | |
7 | 972 EX(CMD_omap, "omap", ex_map, |
6398 | 973 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
974 ADDR_LINES), | |
7 | 975 EX(CMD_omapclear, "omapclear", ex_mapclear, |
6398 | 976 EXTRA|TRLBAR|CMDWIN, |
977 ADDR_LINES), | |
7 | 978 EX(CMD_omenu, "omenu", ex_menu, |
6398 | 979 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
980 ADDR_LINES), | |
7 | 981 EX(CMD_only, "only", ex_only, |
6398 | 982 BANG|NOTADR|RANGE|COUNT|TRLBAR, |
983 ADDR_WINDOWS), | |
7 | 984 EX(CMD_onoremap, "onoremap", ex_map, |
6398 | 985 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
986 ADDR_LINES), | |
7 | 987 EX(CMD_onoremenu, "onoremenu", ex_menu, |
6398 | 988 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
989 ADDR_LINES), | |
7 | 990 EX(CMD_options, "options", ex_options, |
6398 | 991 TRLBAR, |
992 ADDR_LINES), | |
7 | 993 EX(CMD_ounmap, "ounmap", ex_unmap, |
6398 | 994 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
995 ADDR_LINES), | |
7 | 996 EX(CMD_ounmenu, "ounmenu", ex_menu, |
6398 | 997 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
998 ADDR_LINES), | |
2250
1bac28a53fae
Add the conceal patch from Vince Negri.
Bram Moolenaar <bram@vim.org>
parents:
2214
diff
changeset
|
999 EX(CMD_ownsyntax, "ownsyntax", ex_ownsyntax, |
6398 | 1000 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
1001 ADDR_LINES), | |
7 | 1002 EX(CMD_print, "print", ex_print, |
6398 | 1003 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|SBOXOK, |
1004 ADDR_LINES), | |
7 | 1005 EX(CMD_pclose, "pclose", ex_pclose, |
6398 | 1006 BANG|TRLBAR, |
1007 ADDR_LINES), | |
7 | 1008 EX(CMD_perl, "perl", ex_perl, |
6398 | 1009 RANGE|EXTRA|DFLALL|NEEDARG|SBOXOK|CMDWIN, |
1010 ADDR_LINES), | |
7 | 1011 EX(CMD_perldo, "perldo", ex_perldo, |
6398 | 1012 RANGE|EXTRA|DFLALL|NEEDARG|CMDWIN, |
1013 ADDR_LINES), | |
7 | 1014 EX(CMD_pedit, "pedit", ex_pedit, |
6398 | 1015 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
1016 ADDR_LINES), | |
7 | 1017 EX(CMD_pop, "pop", ex_tag, |
6398 | 1018 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR, |
1019 ADDR_LINES), | |
7 | 1020 EX(CMD_popup, "popup", ex_popup, |
6398 | 1021 NEEDARG|EXTRA|BANG|TRLBAR|NOTRLCOM|CMDWIN, |
1022 ADDR_LINES), | |
7 | 1023 EX(CMD_ppop, "ppop", ex_ptag, |
6398 | 1024 RANGE|NOTADR|BANG|COUNT|TRLBAR|ZEROR, |
1025 ADDR_LINES), | |
7 | 1026 EX(CMD_preserve, "preserve", ex_preserve, |
6398 | 1027 TRLBAR, |
1028 ADDR_LINES), | |
7 | 1029 EX(CMD_previous, "previous", ex_previous, |
6398 | 1030 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR, |
1031 ADDR_LINES), | |
7 | 1032 EX(CMD_promptfind, "promptfind", gui_mch_find_dialog, |
6398 | 1033 EXTRA|NOTRLCOM|CMDWIN, |
1034 ADDR_LINES), | |
7 | 1035 EX(CMD_promptrepl, "promptrepl", gui_mch_replace_dialog, |
6398 | 1036 EXTRA|NOTRLCOM|CMDWIN, |
1037 ADDR_LINES), | |
170 | 1038 EX(CMD_profile, "profile", ex_profile, |
6398 | 1039 BANG|EXTRA|TRLBAR|CMDWIN, |
1040 ADDR_LINES), | |
364 | 1041 EX(CMD_profdel, "profdel", ex_breakdel, |
6398 | 1042 EXTRA|TRLBAR|CMDWIN, |
1043 ADDR_LINES), | |
7 | 1044 EX(CMD_psearch, "psearch", ex_psearch, |
6398 | 1045 BANG|RANGE|WHOLEFOLD|DFLALL|EXTRA, |
1046 ADDR_LINES), | |
7 | 1047 EX(CMD_ptag, "ptag", ex_ptag, |
6398 | 1048 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR, |
1049 ADDR_LINES), | |
7 | 1050 EX(CMD_ptNext, "ptNext", ex_ptag, |
6398 | 1051 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1052 ADDR_LINES), | |
7 | 1053 EX(CMD_ptfirst, "ptfirst", ex_ptag, |
6398 | 1054 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1055 ADDR_LINES), | |
7 | 1056 EX(CMD_ptjump, "ptjump", ex_ptag, |
6398 | 1057 BANG|TRLBAR|WORD1, |
1058 ADDR_LINES), | |
7 | 1059 EX(CMD_ptlast, "ptlast", ex_ptag, |
6398 | 1060 BANG|TRLBAR, |
1061 ADDR_LINES), | |
7 | 1062 EX(CMD_ptnext, "ptnext", ex_ptag, |
6398 | 1063 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1064 ADDR_LINES), | |
7 | 1065 EX(CMD_ptprevious, "ptprevious", ex_ptag, |
6398 | 1066 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1067 ADDR_LINES), | |
7 | 1068 EX(CMD_ptrewind, "ptrewind", ex_ptag, |
6398 | 1069 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1070 ADDR_LINES), | |
7 | 1071 EX(CMD_ptselect, "ptselect", ex_ptag, |
6398 | 1072 BANG|TRLBAR|WORD1, |
1073 ADDR_LINES), | |
7 | 1074 EX(CMD_put, "put", ex_put, |
6398 | 1075 RANGE|WHOLEFOLD|BANG|REGSTR|TRLBAR|ZEROR|CMDWIN|MODIFY, |
1076 ADDR_LINES), | |
7 | 1077 EX(CMD_pwd, "pwd", ex_pwd, |
6398 | 1078 TRLBAR|CMDWIN, |
1079 ADDR_LINES), | |
7 | 1080 EX(CMD_python, "python", ex_python, |
6398 | 1081 RANGE|EXTRA|NEEDARG|CMDWIN, |
1082 ADDR_LINES), | |
4435 | 1083 EX(CMD_pydo, "pydo", ex_pydo, |
6398 | 1084 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN, |
1085 ADDR_LINES), | |
7 | 1086 EX(CMD_pyfile, "pyfile", ex_pyfile, |
6398 | 1087 RANGE|FILE1|NEEDARG|CMDWIN, |
1088 ADDR_LINES), | |
2350
06feaf4fe36a
Rename some "python3" symbols to "py3", as the command name.
Bram Moolenaar <bram@vim.org>
parents:
2329
diff
changeset
|
1089 EX(CMD_py3, "py3", ex_py3, |
6398 | 1090 RANGE|EXTRA|NEEDARG|CMDWIN, |
1091 ADDR_LINES), | |
4417 | 1092 EX(CMD_py3do, "py3do", ex_py3do, |
6398 | 1093 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN, |
1094 ADDR_LINES), | |
2366
7a57fe6a5157
Fix that :py3file was not working.
Bram Moolenaar <bram@vim.org>
parents:
2350
diff
changeset
|
1095 EX(CMD_python3, "python3", ex_py3, |
6398 | 1096 RANGE|EXTRA|NEEDARG|CMDWIN, |
1097 ADDR_LINES), | |
2329
ad2889f48843
Added support for Python 3. (Roland Puntaier)
Bram Moolenaar <bram@vim.org>
parents:
2320
diff
changeset
|
1098 EX(CMD_py3file, "py3file", ex_py3file, |
6398 | 1099 RANGE|FILE1|NEEDARG|CMDWIN, |
1100 ADDR_LINES), | |
7 | 1101 EX(CMD_quit, "quit", ex_quit, |
6398 | 1102 BANG|RANGE|COUNT|NOTADR|TRLBAR|CMDWIN, |
1103 ADDR_WINDOWS), | |
7 | 1104 EX(CMD_quitall, "quitall", ex_quit_all, |
6398 | 1105 BANG|TRLBAR, |
1106 ADDR_LINES), | |
7 | 1107 EX(CMD_qall, "qall", ex_quit_all, |
6398 | 1108 BANG|TRLBAR|CMDWIN, |
1109 ADDR_LINES), | |
7 | 1110 EX(CMD_read, "read", ex_read, |
6398 | 1111 BANG|RANGE|WHOLEFOLD|FILE1|ARGOPT|TRLBAR|ZEROR|CMDWIN|MODIFY, |
1112 ADDR_LINES), | |
7 | 1113 EX(CMD_recover, "recover", ex_recover, |
6398 | 1114 BANG|FILE1|TRLBAR, |
1115 ADDR_LINES), | |
7 | 1116 EX(CMD_redo, "redo", ex_redo, |
6398 | 1117 TRLBAR|CMDWIN, |
1118 ADDR_LINES), | |
7 | 1119 EX(CMD_redir, "redir", ex_redir, |
6398 | 1120 BANG|FILES|TRLBAR|CMDWIN, |
1121 ADDR_LINES), | |
7 | 1122 EX(CMD_redraw, "redraw", ex_redraw, |
6398 | 1123 BANG|TRLBAR|CMDWIN, |
1124 ADDR_LINES), | |
7 | 1125 EX(CMD_redrawstatus, "redrawstatus", ex_redrawstatus, |
6398 | 1126 BANG|TRLBAR|CMDWIN, |
1127 ADDR_LINES), | |
7 | 1128 EX(CMD_registers, "registers", ex_display, |
6398 | 1129 EXTRA|NOTRLCOM|TRLBAR|CMDWIN, |
1130 ADDR_LINES), | |
7 | 1131 EX(CMD_resize, "resize", ex_resize, |
6398 | 1132 RANGE|NOTADR|TRLBAR|WORD1, |
1133 ADDR_LINES), | |
7 | 1134 EX(CMD_retab, "retab", ex_retab, |
6398 | 1135 TRLBAR|RANGE|WHOLEFOLD|DFLALL|BANG|WORD1|CMDWIN|MODIFY, |
1136 ADDR_LINES), | |
7 | 1137 EX(CMD_return, "return", ex_return, |
6398 | 1138 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
1139 ADDR_LINES), | |
7 | 1140 EX(CMD_rewind, "rewind", ex_rewind, |
6398 | 1141 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
1142 ADDR_LINES), | |
7 | 1143 EX(CMD_right, "right", ex_align, |
6398 | 1144 TRLBAR|RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY, |
1145 ADDR_LINES), | |
7 | 1146 EX(CMD_rightbelow, "rightbelow", ex_wrongmodifier, |
6398 | 1147 NEEDARG|EXTRA|NOTRLCOM, |
1148 ADDR_LINES), | |
7 | 1149 EX(CMD_runtime, "runtime", ex_runtime, |
6398 | 1150 BANG|NEEDARG|FILES|TRLBAR|SBOXOK|CMDWIN, |
1151 ADDR_LINES), | |
7 | 1152 EX(CMD_ruby, "ruby", ex_ruby, |
6398 | 1153 RANGE|EXTRA|NEEDARG|CMDWIN, |
1154 ADDR_LINES), | |
7 | 1155 EX(CMD_rubydo, "rubydo", ex_rubydo, |
6398 | 1156 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN, |
1157 ADDR_LINES), | |
7 | 1158 EX(CMD_rubyfile, "rubyfile", ex_rubyfile, |
6398 | 1159 RANGE|FILE1|NEEDARG|CMDWIN, |
1160 ADDR_LINES), | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2210
diff
changeset
|
1161 EX(CMD_rundo, "rundo", ex_rundo, |
6398 | 1162 NEEDARG|FILE1, |
1163 ADDR_LINES), | |
7 | 1164 EX(CMD_rviminfo, "rviminfo", ex_viminfo, |
6398 | 1165 BANG|FILE1|TRLBAR|CMDWIN, |
1166 ADDR_LINES), | |
7 | 1167 EX(CMD_substitute, "substitute", do_sub, |
6398 | 1168 RANGE|WHOLEFOLD|EXTRA|CMDWIN, |
1169 ADDR_LINES), | |
7 | 1170 EX(CMD_sNext, "sNext", ex_previous, |
6398 | 1171 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR, |
1172 ADDR_LINES), | |
7 | 1173 EX(CMD_sargument, "sargument", ex_argument, |
6398 | 1174 BANG|RANGE|NOTADR|COUNT|EXTRA|EDITCMD|ARGOPT|TRLBAR, |
1175 ADDR_ARGUMENTS), | |
7 | 1176 EX(CMD_sall, "sall", ex_all, |
6398 | 1177 BANG|RANGE|NOTADR|COUNT|TRLBAR, |
1178 ADDR_LINES), | |
29 | 1179 EX(CMD_sandbox, "sandbox", ex_wrongmodifier, |
6398 | 1180 NEEDARG|EXTRA|NOTRLCOM, |
1181 ADDR_LINES), | |
7 | 1182 EX(CMD_saveas, "saveas", ex_write, |
6398 | 1183 BANG|DFLALL|FILE1|ARGOPT|CMDWIN|TRLBAR, |
1184 ADDR_LINES), | |
7 | 1185 EX(CMD_sbuffer, "sbuffer", ex_buffer, |
6398 | 1186 BANG|RANGE|NOTADR|BUFNAME|BUFUNL|COUNT|EXTRA|EDITCMD|TRLBAR, |
6424 | 1187 ADDR_BUFFERS), |
7 | 1188 EX(CMD_sbNext, "sbNext", ex_bprevious, |
6398 | 1189 RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
1190 ADDR_LINES), | |
7 | 1191 EX(CMD_sball, "sball", ex_buffer_all, |
6398 | 1192 RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
1193 ADDR_LINES), | |
7 | 1194 EX(CMD_sbfirst, "sbfirst", ex_brewind, |
6398 | 1195 EDITCMD|TRLBAR, |
1196 ADDR_LINES), | |
7 | 1197 EX(CMD_sblast, "sblast", ex_blast, |
6398 | 1198 EDITCMD|TRLBAR, |
1199 ADDR_LINES), | |
7 | 1200 EX(CMD_sbmodified, "sbmodified", ex_bmodified, |
6398 | 1201 RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
1202 ADDR_LINES), | |
7 | 1203 EX(CMD_sbnext, "sbnext", ex_bnext, |
6398 | 1204 RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
1205 ADDR_LINES), | |
7 | 1206 EX(CMD_sbprevious, "sbprevious", ex_bprevious, |
6398 | 1207 RANGE|NOTADR|COUNT|EDITCMD|TRLBAR, |
1208 ADDR_LINES), | |
7 | 1209 EX(CMD_sbrewind, "sbrewind", ex_brewind, |
6398 | 1210 EDITCMD|TRLBAR, |
1211 ADDR_LINES), | |
7 | 1212 EX(CMD_scriptnames, "scriptnames", ex_scriptnames, |
6398 | 1213 TRLBAR|CMDWIN, |
1214 ADDR_LINES), | |
7 | 1215 EX(CMD_scriptencoding, "scriptencoding", ex_scriptencoding, |
6398 | 1216 WORD1|TRLBAR|CMDWIN, |
1217 ADDR_LINES), | |
7 | 1218 EX(CMD_scscope, "scscope", do_scscope, |
6398 | 1219 EXTRA|NOTRLCOM, |
1220 ADDR_LINES), | |
7 | 1221 EX(CMD_set, "set", ex_set, |
6398 | 1222 TRLBAR|EXTRA|CMDWIN|SBOXOK, |
1223 ADDR_LINES), | |
7 | 1224 EX(CMD_setfiletype, "setfiletype", ex_setfiletype, |
6398 | 1225 TRLBAR|EXTRA|NEEDARG|CMDWIN, |
1226 ADDR_LINES), | |
7 | 1227 EX(CMD_setglobal, "setglobal", ex_set, |
6398 | 1228 TRLBAR|EXTRA|CMDWIN|SBOXOK, |
1229 ADDR_LINES), | |
7 | 1230 EX(CMD_setlocal, "setlocal", ex_set, |
6398 | 1231 TRLBAR|EXTRA|CMDWIN|SBOXOK, |
1232 ADDR_LINES), | |
7 | 1233 EX(CMD_sfind, "sfind", ex_splitview, |
6398 | 1234 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
1235 ADDR_LINES), | |
7 | 1236 EX(CMD_sfirst, "sfirst", ex_rewind, |
6398 | 1237 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
1238 ADDR_LINES), | |
7 | 1239 EX(CMD_shell, "shell", ex_shell, |
6398 | 1240 TRLBAR|CMDWIN, |
1241 ADDR_LINES), | |
7 | 1242 EX(CMD_simalt, "simalt", ex_simalt, |
6398 | 1243 NEEDARG|WORD1|TRLBAR|CMDWIN, |
1244 ADDR_LINES), | |
7 | 1245 EX(CMD_sign, "sign", ex_sign, |
6398 | 1246 NEEDARG|RANGE|NOTADR|EXTRA|CMDWIN, |
1247 ADDR_LINES), | |
7 | 1248 EX(CMD_silent, "silent", ex_wrongmodifier, |
6398 | 1249 NEEDARG|EXTRA|BANG|NOTRLCOM|SBOXOK|CMDWIN, |
1250 ADDR_LINES), | |
7 | 1251 EX(CMD_sleep, "sleep", ex_sleep, |
6398 | 1252 RANGE|NOTADR|COUNT|EXTRA|TRLBAR|CMDWIN, |
1253 ADDR_LINES), | |
7 | 1254 EX(CMD_slast, "slast", ex_last, |
6398 | 1255 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
1256 ADDR_LINES), | |
7 | 1257 EX(CMD_smagic, "smagic", ex_submagic, |
6398 | 1258 RANGE|WHOLEFOLD|EXTRA|CMDWIN, |
1259 ADDR_LINES), | |
791 | 1260 EX(CMD_smap, "smap", ex_map, |
6398 | 1261 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1262 ADDR_LINES), | |
791 | 1263 EX(CMD_smapclear, "smapclear", ex_mapclear, |
6398 | 1264 EXTRA|TRLBAR|CMDWIN, |
1265 ADDR_LINES), | |
791 | 1266 EX(CMD_smenu, "smenu", ex_menu, |
6398 | 1267 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1268 ADDR_LINES), | |
7 | 1269 EX(CMD_snext, "snext", ex_next, |
6398 | 1270 RANGE|NOTADR|BANG|FILES|EDITCMD|ARGOPT|TRLBAR, |
1271 ADDR_LINES), | |
7 | 1272 EX(CMD_sniff, "sniff", ex_sniff, |
6398 | 1273 EXTRA|TRLBAR, |
1274 ADDR_LINES), | |
7 | 1275 EX(CMD_snomagic, "snomagic", ex_submagic, |
6398 | 1276 RANGE|WHOLEFOLD|EXTRA|CMDWIN, |
1277 ADDR_LINES), | |
791 | 1278 EX(CMD_snoremap, "snoremap", ex_map, |
6398 | 1279 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1280 ADDR_LINES), | |
791 | 1281 EX(CMD_snoremenu, "snoremenu", ex_menu, |
6398 | 1282 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1283 ADDR_LINES), | |
7 | 1284 EX(CMD_source, "source", ex_source, |
6398 | 1285 BANG|FILE1|TRLBAR|SBOXOK|CMDWIN, |
1286 ADDR_LINES), | |
284 | 1287 EX(CMD_sort, "sort", ex_sort, |
6398 | 1288 RANGE|DFLALL|WHOLEFOLD|BANG|EXTRA|NOTRLCOM|MODIFY, |
1289 ADDR_LINES), | |
7 | 1290 EX(CMD_split, "split", ex_splitview, |
6398 | 1291 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
1292 ADDR_LINES), | |
315 | 1293 EX(CMD_spellgood, "spellgood", ex_spell, |
6398 | 1294 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR, |
1295 ADDR_LINES), | |
354 | 1296 EX(CMD_spelldump, "spelldump", ex_spelldump, |
6398 | 1297 BANG|TRLBAR, |
1298 ADDR_LINES), | |
714 | 1299 EX(CMD_spellinfo, "spellinfo", ex_spellinfo, |
6398 | 1300 TRLBAR, |
1301 ADDR_LINES), | |
374 | 1302 EX(CMD_spellrepall, "spellrepall", ex_spellrepall, |
6398 | 1303 TRLBAR, |
1304 ADDR_LINES), | |
713 | 1305 EX(CMD_spellundo, "spellundo", ex_spell, |
6398 | 1306 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR, |
1307 ADDR_LINES), | |
714 | 1308 EX(CMD_spellwrong, "spellwrong", ex_spell, |
6398 | 1309 BANG|RANGE|NOTADR|NEEDARG|EXTRA|TRLBAR, |
1310 ADDR_LINES), | |
7 | 1311 EX(CMD_sprevious, "sprevious", ex_previous, |
6398 | 1312 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR, |
1313 ADDR_LINES), | |
7 | 1314 EX(CMD_srewind, "srewind", ex_rewind, |
6398 | 1315 EXTRA|BANG|EDITCMD|ARGOPT|TRLBAR, |
1316 ADDR_LINES), | |
7 | 1317 EX(CMD_stop, "stop", ex_stop, |
6398 | 1318 TRLBAR|BANG|CMDWIN, |
1319 ADDR_LINES), | |
7 | 1320 EX(CMD_stag, "stag", ex_stag, |
6398 | 1321 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR, |
1322 ADDR_LINES), | |
7 | 1323 EX(CMD_startinsert, "startinsert", ex_startinsert, |
6398 | 1324 BANG|TRLBAR|CMDWIN, |
1325 ADDR_LINES), | |
601 | 1326 EX(CMD_startgreplace, "startgreplace", ex_startinsert, |
6398 | 1327 BANG|TRLBAR|CMDWIN, |
1328 ADDR_LINES), | |
14 | 1329 EX(CMD_startreplace, "startreplace", ex_startinsert, |
6398 | 1330 BANG|TRLBAR|CMDWIN, |
1331 ADDR_LINES), | |
7 | 1332 EX(CMD_stopinsert, "stopinsert", ex_stopinsert, |
6398 | 1333 BANG|TRLBAR|CMDWIN, |
1334 ADDR_LINES), | |
7 | 1335 EX(CMD_stjump, "stjump", ex_stag, |
6398 | 1336 BANG|TRLBAR|WORD1, |
1337 ADDR_LINES), | |
7 | 1338 EX(CMD_stselect, "stselect", ex_stag, |
6398 | 1339 BANG|TRLBAR|WORD1, |
1340 ADDR_LINES), | |
7 | 1341 EX(CMD_sunhide, "sunhide", ex_buffer_all, |
6398 | 1342 RANGE|NOTADR|COUNT|TRLBAR, |
1343 ADDR_LINES), | |
791 | 1344 EX(CMD_sunmap, "sunmap", ex_unmap, |
6398 | 1345 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1346 ADDR_LINES), | |
791 | 1347 EX(CMD_sunmenu, "sunmenu", ex_menu, |
6398 | 1348 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1349 ADDR_LINES), | |
7 | 1350 EX(CMD_suspend, "suspend", ex_stop, |
6398 | 1351 TRLBAR|BANG|CMDWIN, |
1352 ADDR_LINES), | |
7 | 1353 EX(CMD_sview, "sview", ex_splitview, |
6398 | 1354 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
1355 ADDR_LINES), | |
7 | 1356 EX(CMD_swapname, "swapname", ex_swapname, |
6398 | 1357 TRLBAR|CMDWIN, |
1358 ADDR_LINES), | |
7 | 1359 EX(CMD_syntax, "syntax", ex_syntax, |
6398 | 1360 EXTRA|NOTRLCOM|CMDWIN, |
1361 ADDR_LINES), | |
4764
f824cb97eb92
updated for version 7.3.1129
Bram Moolenaar <bram@vim.org>
parents:
4435
diff
changeset
|
1362 EX(CMD_syntime, "syntime", ex_syntime, |
6398 | 1363 NEEDARG|WORD1|TRLBAR|CMDWIN, |
1364 ADDR_LINES), | |
7 | 1365 EX(CMD_syncbind, "syncbind", ex_syncbind, |
6398 | 1366 TRLBAR, |
1367 ADDR_LINES), | |
7 | 1368 EX(CMD_t, "t", ex_copymove, |
6398 | 1369 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN|MODIFY, |
1370 ADDR_LINES), | |
7 | 1371 EX(CMD_tNext, "tNext", ex_tag, |
6398 | 1372 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1373 ADDR_LINES), | |
7 | 1374 EX(CMD_tag, "tag", ex_tag, |
6398 | 1375 RANGE|NOTADR|BANG|WORD1|TRLBAR|ZEROR, |
1376 ADDR_LINES), | |
7 | 1377 EX(CMD_tags, "tags", do_tags, |
6398 | 1378 TRLBAR|CMDWIN, |
1379 ADDR_LINES), | |
684 | 1380 EX(CMD_tab, "tab", ex_wrongmodifier, |
6398 | 1381 NEEDARG|EXTRA|NOTRLCOM, |
1382 ADDR_LINES), | |
667 | 1383 EX(CMD_tabclose, "tabclose", ex_tabclose, |
6398 | 1384 RANGE|NOTADR|COUNT|BANG|TRLBAR|CMDWIN, |
1385 ADDR_TABS), | |
685 | 1386 EX(CMD_tabdo, "tabdo", ex_listdo, |
6398 | 1387 NEEDARG|EXTRA|NOTRLCOM, |
1388 ADDR_LINES), | |
677 | 1389 EX(CMD_tabedit, "tabedit", ex_splitview, |
6398 | 1390 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR, |
1391 ADDR_TABS), | |
677 | 1392 EX(CMD_tabfind, "tabfind", ex_splitview, |
6398 | 1393 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|NEEDARG|TRLBAR, |
1394 ADDR_TABS), | |
685 | 1395 EX(CMD_tabfirst, "tabfirst", ex_tabnext, |
6398 | 1396 TRLBAR, |
1397 ADDR_LINES), | |
684 | 1398 EX(CMD_tabmove, "tabmove", ex_tabmove, |
6398 | 1399 RANGE|NOTADR|ZEROR|EXTRA|NOSPC|TRLBAR, |
1400 ADDR_TABS), | |
685 | 1401 EX(CMD_tablast, "tablast", ex_tabnext, |
6398 | 1402 TRLBAR, |
1403 ADDR_LINES), | |
684 | 1404 EX(CMD_tabnext, "tabnext", ex_tabnext, |
6398 | 1405 RANGE|NOTADR|COUNT|TRLBAR, |
1406 ADDR_LINES), | |
677 | 1407 EX(CMD_tabnew, "tabnew", ex_splitview, |
6398 | 1408 BANG|FILE1|RANGE|NOTADR|ZEROR|EDITCMD|ARGOPT|TRLBAR, |
1409 ADDR_TABS), | |
673 | 1410 EX(CMD_tabonly, "tabonly", ex_tabonly, |
6398 | 1411 BANG|RANGE|NOTADR|TRLBAR|CMDWIN, |
1412 ADDR_TABS), | |
685 | 1413 EX(CMD_tabprevious, "tabprevious", ex_tabnext, |
6398 | 1414 RANGE|NOTADR|COUNT|TRLBAR, |
1415 ADDR_LINES), | |
685 | 1416 EX(CMD_tabNext, "tabNext", ex_tabnext, |
6398 | 1417 RANGE|NOTADR|COUNT|TRLBAR, |
1418 ADDR_LINES), | |
685 | 1419 EX(CMD_tabrewind, "tabrewind", ex_tabnext, |
6398 | 1420 TRLBAR, |
1421 ADDR_LINES), | |
667 | 1422 EX(CMD_tabs, "tabs", ex_tabs, |
6398 | 1423 TRLBAR|CMDWIN, |
1424 ADDR_LINES), | |
7 | 1425 EX(CMD_tcl, "tcl", ex_tcl, |
6398 | 1426 RANGE|EXTRA|NEEDARG|CMDWIN, |
1427 ADDR_LINES), | |
7 | 1428 EX(CMD_tcldo, "tcldo", ex_tcldo, |
6398 | 1429 RANGE|DFLALL|EXTRA|NEEDARG|CMDWIN, |
1430 ADDR_LINES), | |
7 | 1431 EX(CMD_tclfile, "tclfile", ex_tclfile, |
6398 | 1432 RANGE|FILE1|NEEDARG|CMDWIN, |
1433 ADDR_LINES), | |
7 | 1434 EX(CMD_tearoff, "tearoff", ex_tearoff, |
6398 | 1435 NEEDARG|EXTRA|TRLBAR|NOTRLCOM|CMDWIN, |
1436 ADDR_LINES), | |
7 | 1437 EX(CMD_tfirst, "tfirst", ex_tag, |
6398 | 1438 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1439 ADDR_LINES), | |
7 | 1440 EX(CMD_throw, "throw", ex_throw, |
6398 | 1441 EXTRA|NEEDARG|SBOXOK|CMDWIN, |
1442 ADDR_LINES), | |
7 | 1443 EX(CMD_tjump, "tjump", ex_tag, |
6398 | 1444 BANG|TRLBAR|WORD1, |
1445 ADDR_LINES), | |
7 | 1446 EX(CMD_tlast, "tlast", ex_tag, |
6398 | 1447 BANG|TRLBAR, |
1448 ADDR_LINES), | |
7 | 1449 EX(CMD_tmenu, "tmenu", ex_menu, |
6398 | 1450 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1451 ADDR_LINES), | |
7 | 1452 EX(CMD_tnext, "tnext", ex_tag, |
6398 | 1453 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1454 ADDR_LINES), | |
7 | 1455 EX(CMD_topleft, "topleft", ex_wrongmodifier, |
6398 | 1456 NEEDARG|EXTRA|NOTRLCOM, |
1457 ADDR_LINES), | |
7 | 1458 EX(CMD_tprevious, "tprevious", ex_tag, |
6398 | 1459 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1460 ADDR_LINES), | |
7 | 1461 EX(CMD_trewind, "trewind", ex_tag, |
6398 | 1462 RANGE|NOTADR|BANG|TRLBAR|ZEROR, |
1463 ADDR_LINES), | |
7 | 1464 EX(CMD_try, "try", ex_try, |
6398 | 1465 TRLBAR|SBOXOK|CMDWIN, |
1466 ADDR_LINES), | |
7 | 1467 EX(CMD_tselect, "tselect", ex_tag, |
6398 | 1468 BANG|TRLBAR|WORD1, |
1469 ADDR_LINES), | |
7 | 1470 EX(CMD_tunmenu, "tunmenu", ex_menu, |
6398 | 1471 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1472 ADDR_LINES), | |
7 | 1473 EX(CMD_undo, "undo", ex_undo, |
6398 | 1474 RANGE|NOTADR|COUNT|ZEROR|TRLBAR|CMDWIN, |
1475 ADDR_LINES), | |
774 | 1476 EX(CMD_undojoin, "undojoin", ex_undojoin, |
6398 | 1477 TRLBAR|CMDWIN, |
1478 ADDR_LINES), | |
774 | 1479 EX(CMD_undolist, "undolist", ex_undolist, |
6398 | 1480 TRLBAR|CMDWIN, |
1481 ADDR_LINES), | |
7 | 1482 EX(CMD_unabbreviate, "unabbreviate", ex_abbreviate, |
6398 | 1483 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1484 ADDR_LINES), | |
7 | 1485 EX(CMD_unhide, "unhide", ex_buffer_all, |
6398 | 1486 RANGE|NOTADR|COUNT|TRLBAR, |
1487 ADDR_LINES), | |
7 | 1488 EX(CMD_unlet, "unlet", ex_unlet, |
6398 | 1489 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN, |
1490 ADDR_LINES), | |
151 | 1491 EX(CMD_unlockvar, "unlockvar", ex_lockvar, |
6398 | 1492 BANG|EXTRA|NEEDARG|SBOXOK|CMDWIN, |
1493 ADDR_LINES), | |
7 | 1494 EX(CMD_unmap, "unmap", ex_unmap, |
6398 | 1495 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1496 ADDR_LINES), | |
7 | 1497 EX(CMD_unmenu, "unmenu", ex_menu, |
6398 | 1498 BANG|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1499 ADDR_LINES), | |
1926 | 1500 EX(CMD_unsilent, "unsilent", ex_wrongmodifier, |
6398 | 1501 NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
1502 ADDR_LINES), | |
7 | 1503 EX(CMD_update, "update", ex_update, |
6398 | 1504 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR, |
1505 ADDR_LINES), | |
7 | 1506 EX(CMD_vglobal, "vglobal", ex_global, |
6398 | 1507 RANGE|WHOLEFOLD|EXTRA|DFLALL|CMDWIN, |
1508 ADDR_LINES), | |
7 | 1509 EX(CMD_version, "version", ex_version, |
6398 | 1510 EXTRA|TRLBAR|CMDWIN, |
1511 ADDR_LINES), | |
7 | 1512 EX(CMD_verbose, "verbose", ex_wrongmodifier, |
6398 | 1513 NEEDARG|RANGE|NOTADR|EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
1514 ADDR_LINES), | |
7 | 1515 EX(CMD_vertical, "vertical", ex_wrongmodifier, |
6398 | 1516 NEEDARG|EXTRA|NOTRLCOM, |
1517 ADDR_LINES), | |
7 | 1518 EX(CMD_visual, "visual", ex_edit, |
6398 | 1519 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
1520 ADDR_LINES), | |
7 | 1521 EX(CMD_view, "view", ex_edit, |
6398 | 1522 BANG|FILE1|EDITCMD|ARGOPT|TRLBAR, |
1523 ADDR_LINES), | |
41 | 1524 EX(CMD_vimgrep, "vimgrep", ex_vimgrep, |
6398 | 1525 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
1526 ADDR_LINES), | |
41 | 1527 EX(CMD_vimgrepadd, "vimgrepadd", ex_vimgrep, |
6398 | 1528 RANGE|NOTADR|BANG|NEEDARG|EXTRA|NOTRLCOM|TRLBAR|XFILE, |
1529 ADDR_LINES), | |
40 | 1530 EX(CMD_viusage, "viusage", ex_viusage, |
6398 | 1531 TRLBAR, |
1532 ADDR_LINES), | |
7 | 1533 EX(CMD_vmap, "vmap", ex_map, |
6398 | 1534 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1535 ADDR_LINES), | |
7 | 1536 EX(CMD_vmapclear, "vmapclear", ex_mapclear, |
6398 | 1537 EXTRA|TRLBAR|CMDWIN, |
1538 ADDR_LINES), | |
7 | 1539 EX(CMD_vmenu, "vmenu", ex_menu, |
6398 | 1540 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1541 ADDR_LINES), | |
7 | 1542 EX(CMD_vnoremap, "vnoremap", ex_map, |
6398 | 1543 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1544 ADDR_LINES), | |
7 | 1545 EX(CMD_vnew, "vnew", ex_splitview, |
6398 | 1546 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
1547 ADDR_LINES), | |
7 | 1548 EX(CMD_vnoremenu, "vnoremenu", ex_menu, |
6398 | 1549 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1550 ADDR_LINES), | |
7 | 1551 EX(CMD_vsplit, "vsplit", ex_splitview, |
6398 | 1552 BANG|FILE1|RANGE|NOTADR|EDITCMD|ARGOPT|TRLBAR, |
1553 ADDR_LINES), | |
7 | 1554 EX(CMD_vunmap, "vunmap", ex_unmap, |
6398 | 1555 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1556 ADDR_LINES), | |
7 | 1557 EX(CMD_vunmenu, "vunmenu", ex_menu, |
6398 | 1558 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1559 ADDR_LINES), | |
7 | 1560 EX(CMD_write, "write", ex_write, |
6398 | 1561 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN, |
1562 ADDR_LINES), | |
7 | 1563 EX(CMD_wNext, "wNext", ex_wnext, |
6398 | 1564 RANGE|WHOLEFOLD|NOTADR|BANG|FILE1|ARGOPT|TRLBAR, |
1565 ADDR_LINES), | |
7 | 1566 EX(CMD_wall, "wall", do_wqall, |
6398 | 1567 BANG|TRLBAR|CMDWIN, |
1568 ADDR_LINES), | |
7 | 1569 EX(CMD_while, "while", ex_while, |
6398 | 1570 EXTRA|NOTRLCOM|SBOXOK|CMDWIN, |
1571 ADDR_LINES), | |
7 | 1572 EX(CMD_winsize, "winsize", ex_winsize, |
6398 | 1573 EXTRA|NEEDARG|TRLBAR, |
1574 ADDR_LINES), | |
7 | 1575 EX(CMD_wincmd, "wincmd", ex_wincmd, |
6398 | 1576 NEEDARG|WORD1|RANGE|NOTADR, |
1577 ADDR_LINES), | |
7 | 1578 EX(CMD_windo, "windo", ex_listdo, |
6398 | 1579 BANG|NEEDARG|EXTRA|NOTRLCOM, |
1580 ADDR_LINES), | |
7 | 1581 EX(CMD_winpos, "winpos", ex_winpos, |
6398 | 1582 EXTRA|TRLBAR|CMDWIN, |
1583 ADDR_LINES), | |
7 | 1584 EX(CMD_wnext, "wnext", ex_wnext, |
6398 | 1585 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR, |
1586 ADDR_LINES), | |
7 | 1587 EX(CMD_wprevious, "wprevious", ex_wnext, |
6398 | 1588 RANGE|NOTADR|BANG|FILE1|ARGOPT|TRLBAR, |
1589 ADDR_LINES), | |
7 | 1590 EX(CMD_wq, "wq", ex_exit, |
6398 | 1591 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR, |
1592 ADDR_LINES), | |
7 | 1593 EX(CMD_wqall, "wqall", do_wqall, |
6398 | 1594 BANG|FILE1|ARGOPT|DFLALL|TRLBAR, |
1595 ADDR_LINES), | |
7 | 1596 EX(CMD_wsverb, "wsverb", ex_wsverb, |
6398 | 1597 EXTRA|NOTADR|NEEDARG, |
1598 ADDR_LINES), | |
2214
f8222d1f9a73
Included patch for persistent undo. Lots of changes and added test.
Bram Moolenaar <bram@vim.org>
parents:
2210
diff
changeset
|
1599 EX(CMD_wundo, "wundo", ex_wundo, |
6398 | 1600 BANG|NEEDARG|FILE1, |
1601 ADDR_LINES), | |
7 | 1602 EX(CMD_wviminfo, "wviminfo", ex_viminfo, |
6398 | 1603 BANG|FILE1|TRLBAR|CMDWIN, |
1604 ADDR_LINES), | |
7 | 1605 EX(CMD_xit, "xit", ex_exit, |
6398 | 1606 RANGE|WHOLEFOLD|BANG|FILE1|ARGOPT|DFLALL|TRLBAR|CMDWIN, |
1607 ADDR_LINES), | |
7 | 1608 EX(CMD_xall, "xall", do_wqall, |
6398 | 1609 BANG|TRLBAR, |
1610 ADDR_LINES), | |
791 | 1611 EX(CMD_xmap, "xmap", ex_map, |
6398 | 1612 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1613 ADDR_LINES), | |
791 | 1614 EX(CMD_xmapclear, "xmapclear", ex_mapclear, |
6398 | 1615 EXTRA|TRLBAR|CMDWIN, |
1616 ADDR_LINES), | |
791 | 1617 EX(CMD_xmenu, "xmenu", ex_menu, |
6398 | 1618 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1619 ADDR_LINES), | |
791 | 1620 EX(CMD_xnoremap, "xnoremap", ex_map, |
6398 | 1621 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1622 ADDR_LINES), | |
791 | 1623 EX(CMD_xnoremenu, "xnoremenu", ex_menu, |
6398 | 1624 RANGE|NOTADR|ZEROR|EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1625 ADDR_LINES), | |
791 | 1626 EX(CMD_xunmap, "xunmap", ex_unmap, |
6398 | 1627 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1628 ADDR_LINES), | |
791 | 1629 EX(CMD_xunmenu, "xunmenu", ex_menu, |
6398 | 1630 EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN, |
1631 ADDR_LINES), | |
7 | 1632 EX(CMD_yank, "yank", ex_operators, |
6398 | 1633 RANGE|WHOLEFOLD|REGSTR|COUNT|TRLBAR|CMDWIN, |
1634 ADDR_LINES), | |
7 | 1635 EX(CMD_z, "z", ex_z, |
6398 | 1636 RANGE|WHOLEFOLD|EXTRA|EXFLAGS|TRLBAR|CMDWIN, |
1637 ADDR_LINES), | |
7 | 1638 |
1639 /* commands that don't start with a lowercase letter */ | |
1640 EX(CMD_bang, "!", ex_bang, | |
6398 | 1641 RANGE|WHOLEFOLD|BANG|FILES|CMDWIN, |
1642 ADDR_LINES), | |
7 | 1643 EX(CMD_pound, "#", ex_print, |
6398 | 1644 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN, |
1645 ADDR_LINES), | |
7 | 1646 EX(CMD_and, "&", do_sub, |
6398 | 1647 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY, |
1648 ADDR_LINES), | |
7 | 1649 EX(CMD_star, "*", ex_at, |
6398 | 1650 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN, |
1651 ADDR_LINES), | |
7 | 1652 EX(CMD_lshift, "<", ex_operators, |
6398 | 1653 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY, |
1654 ADDR_LINES), | |
7 | 1655 EX(CMD_equal, "=", ex_equal, |
6398 | 1656 RANGE|TRLBAR|DFLALL|EXFLAGS|CMDWIN, |
1657 ADDR_LINES), | |
7 | 1658 EX(CMD_rshift, ">", ex_operators, |
6398 | 1659 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN|MODIFY, |
1660 ADDR_LINES), | |
7 | 1661 EX(CMD_at, "@", ex_at, |
6398 | 1662 RANGE|WHOLEFOLD|EXTRA|TRLBAR|CMDWIN, |
1663 ADDR_LINES), | |
7 | 1664 EX(CMD_Next, "Next", ex_previous, |
6398 | 1665 EXTRA|RANGE|NOTADR|COUNT|BANG|EDITCMD|ARGOPT|TRLBAR, |
1666 ADDR_LINES), | |
7 | 1667 EX(CMD_Print, "Print", ex_print, |
6398 | 1668 RANGE|WHOLEFOLD|COUNT|EXFLAGS|TRLBAR|CMDWIN, |
1669 ADDR_LINES), | |
7 | 1670 EX(CMD_X, "X", ex_X, |
6398 | 1671 TRLBAR, |
1672 ADDR_LINES), | |
7 | 1673 EX(CMD_tilde, "~", do_sub, |
6398 | 1674 RANGE|WHOLEFOLD|EXTRA|CMDWIN|MODIFY, |
1675 ADDR_LINES), | |
7 | 1676 |
1677 #ifndef DO_DECLARE_EXCMD | |
1678 #ifdef FEAT_USR_CMDS | |
1679 CMD_SIZE, /* MUST be after all real commands! */ | |
1680 CMD_USER = -1, /* User-defined command */ | |
1681 CMD_USER_BUF = -2 /* User-defined command local to buffer */ | |
1682 #else | |
1683 CMD_SIZE /* MUST be the last one! */ | |
1684 #endif | |
1685 #endif | |
1686 }; | |
1687 | |
1688 #ifndef DO_DECLARE_EXCMD | |
1689 typedef enum CMD_index cmdidx_T; | |
1690 | |
1691 /* | |
1692 * Arguments used for Ex commands. | |
1693 */ | |
1694 struct exarg | |
1695 { | |
1696 char_u *arg; /* argument of the command */ | |
1697 char_u *nextcmd; /* next command (NULL if none) */ | |
1698 char_u *cmd; /* the name of the command (except for :make) */ | |
1699 char_u **cmdlinep; /* pointer to pointer of allocated cmdline */ | |
1700 cmdidx_T cmdidx; /* the index for the command */ | |
1701 long argt; /* flags for the command */ | |
1702 int skip; /* don't execute the command, only parse it */ | |
1703 int forceit; /* TRUE if ! present */ | |
1704 int addr_count; /* the number of addresses given */ | |
1705 linenr_T line1; /* the first line number */ | |
1706 linenr_T line2; /* the second line number or count */ | |
6398 | 1707 int addr_type; /* type of the count/range */ |
169 | 1708 int flags; /* extra flags after count: EXFLAG_ */ |
7 | 1709 char_u *do_ecmd_cmd; /* +command arg to be used in edited file */ |
1710 linenr_T do_ecmd_lnum; /* the line number in an edited file */ | |
1711 int append; /* TRUE with ":w >>file" command */ | |
1712 int usefilter; /* TRUE with ":w !command" and ":r!command" */ | |
1713 int amount; /* number of '>' or '<' for shift command */ | |
1714 int regname; /* register name (NUL if none) */ | |
1715 int force_bin; /* 0, FORCE_BIN or FORCE_NOBIN */ | |
819 | 1716 int read_edit; /* ++edit argument */ |
597 | 1717 int force_ff; /* ++ff= argument (index in cmd[]) */ |
7 | 1718 #ifdef FEAT_MBYTE |
597 | 1719 int force_enc; /* ++enc= argument (index in cmd[]) */ |
2168 | 1720 int bad_char; /* BAD_KEEP, BAD_DROP or replacement byte */ |
7 | 1721 #endif |
1722 #ifdef FEAT_USR_CMDS | |
1723 int useridx; /* user command index */ | |
1724 #endif | |
1725 char_u *errmsg; /* returned error message */ | |
1726 char_u *(*getline) __ARGS((int, void *, int)); | |
1727 void *cookie; /* argument for getline() */ | |
1728 #ifdef FEAT_EVAL | |
1729 struct condstack *cstack; /* condition stack for ":if" etc. */ | |
1730 #endif | |
1731 }; | |
1732 | |
1733 #define FORCE_BIN 1 /* ":edit ++bin file" */ | |
1734 #define FORCE_NOBIN 2 /* ":edit ++nobin file" */ | |
1735 | |
169 | 1736 /* Values for "flags" */ |
1737 #define EXFLAG_LIST 0x01 /* 'l': list */ | |
1738 #define EXFLAG_NR 0x02 /* '#': number */ | |
1739 #define EXFLAG_PRINT 0x04 /* 'p': print */ | |
1740 | |
7 | 1741 #endif |