1 /* vi:set ts=8 sts=4 sw=4:
3 * VIM - Vi IMproved by Bram Moolenaar
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.
10 * This file defines the Ex commands.
11 * When DO_DECLARE_EXCMD is defined, the table with ex command names and
13 * When DO_DECLARE_EXCMD is NOT defined, the enum with all the Ex commands
15 * This clever trick was invented by Ron Aaron.
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.
30 # undef RANGE /* SASC on Amiga defines it */
33 #define RANGE 0x001 /* allow a linespecs */
34 #define BANG 0x002 /* allow a ! after the command name */
35 #define EXTRA 0x004 /* allow extra args after command name */
36 #define XFILE 0x008 /* expand wildcards in extra part */
37 #define NOSPC 0x010 /* no spaces allowed in the extra part */
38 #define DFLALL 0x020 /* default file range is 1,$ */
39 #define WHOLEFOLD 0x040 /* extend range to include whole fold also
40 when less than two numbers given */
41 #define NEEDARG 0x080 /* argument required */
42 #define TRLBAR 0x100 /* check for trailing vertical bar */
43 #define REGSTR 0x200 /* allow "x for register designation */
44 #define COUNT 0x400 /* allow count in argument, after command */
45 #define NOTRLCOM 0x800 /* no trailing comment allowed */
46 #define ZEROR 0x1000 /* zero line number allowed */
47 #define USECTRLV 0x2000 /* do not remove CTRL-V from argument */
48 #define NOTADR 0x4000 /* number before command is not an address */
49 #define EDITCMD 0x8000 /* allow "+command" argument */
50 #define BUFNAME 0x10000L /* accepts buffer name */
51 #define BUFUNL 0x20000L /* accepts unlisted buffer too */
52 #define ARGOPT 0x40000L /* allow "++opt=val" argument */
53 #define SBOXOK 0x80000L /* allowed in the sandbox */
54 #define CMDWIN 0x100000L /* allowed in cmdline window */
55 #define MODIFY 0x200000L /* forbidden in non-'modifiable' buffer */
56 #define EXFLAGS 0x400000L /* allow flags after count in argument */
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 */
61 #ifndef DO_DECLARE_EXCMD
62 typedef struct exarg exarg_T
;
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
71 * Not supported commands are included to avoid ambiguities.
74 # undef EX /* just in case */
76 #ifdef DO_DECLARE_EXCMD
77 # define EX(a, b, c, d) {(char_u *)b, c, d}
79 typedef void (*ex_func_T
) __ARGS((exarg_T
*eap
));
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 */
87 # if defined(FEAT_GUI_W16)
92 # define EX(a, b, c, d) a
96 EX(CMD_append
, "append", ex_append
,
97 BANG
|RANGE
|ZEROR
|TRLBAR
|CMDWIN
|MODIFY
),
98 EX(CMD_abbreviate
, "abbreviate", ex_abbreviate
,
99 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
100 EX(CMD_abclear
, "abclear", ex_abclear
,
101 EXTRA
|TRLBAR
|CMDWIN
),
102 EX(CMD_aboveleft
, "aboveleft", ex_wrongmodifier
,
103 NEEDARG
|EXTRA
|NOTRLCOM
),
104 EX(CMD_all
, "all", ex_all
,
105 RANGE
|NOTADR
|COUNT
|TRLBAR
),
106 EX(CMD_amenu
, "amenu", ex_menu
,
107 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
108 EX(CMD_anoremenu
, "anoremenu", ex_menu
,
109 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
110 EX(CMD_args
, "args", ex_args
,
111 BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
),
112 EX(CMD_argadd
, "argadd", ex_argadd
,
113 BANG
|NEEDARG
|RANGE
|NOTADR
|ZEROR
|FILES
|TRLBAR
),
114 EX(CMD_argdelete
, "argdelete", ex_argdelete
,
115 BANG
|RANGE
|NOTADR
|FILES
|TRLBAR
),
116 EX(CMD_argdo
, "argdo", ex_listdo
,
117 BANG
|NEEDARG
|EXTRA
|NOTRLCOM
),
118 EX(CMD_argedit
, "argedit", ex_argedit
,
119 BANG
|NEEDARG
|RANGE
|NOTADR
|FILE1
|EDITCMD
|TRLBAR
),
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
,
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
),
190 EX(CMD_caddbuffer
, "caddbuffer", ex_cbuffer
,
191 RANGE
|NOTADR
|WORD1
|TRLBAR
),
192 EX(CMD_caddexpr
, "caddexpr", ex_cexpr
,
193 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
194 EX(CMD_caddfile
, "caddfile", ex_cfile
,
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
),
200 EX(CMD_cbuffer
, "cbuffer", ex_cbuffer
,
201 BANG
|RANGE
|NOTADR
|WORD1
|TRLBAR
),
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
,
207 BANG
|FILE1
|TRLBAR
|CMDWIN
),
208 EX(CMD_center
, "center", ex_align
,
209 TRLBAR
|RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
210 EX(CMD_cexpr
, "cexpr", ex_cexpr
,
211 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
212 EX(CMD_cfile
, "cfile", ex_cfile
,
214 EX(CMD_cfirst
, "cfirst", ex_cc
,
215 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
216 EX(CMD_cgetfile
, "cgetfile", ex_cfile
,
218 EX(CMD_cgetbuffer
, "cgetbuffer", ex_cbuffer
,
219 RANGE
|NOTADR
|WORD1
|TRLBAR
),
220 EX(CMD_cgetexpr
, "cgetexpr", ex_cexpr
,
221 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
222 EX(CMD_chdir
, "chdir", ex_cd
,
223 BANG
|FILE1
|TRLBAR
|CMDWIN
),
224 EX(CMD_changes
, "changes", ex_changes
,
226 EX(CMD_checkpath
, "checkpath", ex_checkpath
,
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
,
236 EX(CMD_cmap
, "cmap", ex_map
,
237 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
238 EX(CMD_cmapclear
, "cmapclear", ex_mapclear
,
239 EXTRA
|TRLBAR
|CMDWIN
),
240 EX(CMD_cmenu
, "cmenu", ex_menu
,
241 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
242 EX(CMD_cnext
, "cnext", ex_cnext
,
243 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
244 EX(CMD_cnewer
, "cnewer", qf_age
,
245 RANGE
|NOTADR
|COUNT
|TRLBAR
),
246 EX(CMD_cnfile
, "cnfile", ex_cnext
,
247 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
248 EX(CMD_cnoremap
, "cnoremap", ex_map
,
249 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
250 EX(CMD_cnoreabbrev
, "cnoreabbrev", ex_abbreviate
,
251 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
252 EX(CMD_cnoremenu
, "cnoremenu", ex_menu
,
253 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
254 EX(CMD_copy
, "copy", ex_copymove
,
255 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
|MODIFY
),
256 EX(CMD_colder
, "colder", qf_age
,
257 RANGE
|NOTADR
|COUNT
|TRLBAR
),
258 EX(CMD_colorscheme
, "colorscheme", ex_colorscheme
,
259 NEEDARG
|WORD1
|TRLBAR
|CMDWIN
),
260 EX(CMD_command
, "command", ex_command
,
261 EXTRA
|BANG
|NOTRLCOM
|USECTRLV
|CMDWIN
),
262 EX(CMD_comclear
, "comclear", ex_comclear
,
264 EX(CMD_compiler
, "compiler", ex_compiler
,
265 BANG
|TRLBAR
|WORD1
|CMDWIN
),
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
,
278 EX(CMD_crewind
, "crewind", ex_cc
,
279 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
280 EX(CMD_cscope
, "cscope", do_cscope
,
281 EXTRA
|NOTRLCOM
|SBOXOK
|XFILE
),
282 EX(CMD_cstag
, "cstag", do_cstag
,
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
),
294 EX(CMD_delmarks
, "delmarks", ex_delmarks
,
295 BANG
|EXTRA
|TRLBAR
|CMDWIN
),
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
,
308 EX(CMD_diffget
, "diffget", ex_diffgetput
,
309 RANGE
|EXTRA
|TRLBAR
|MODIFY
),
310 EX(CMD_diffoff
, "diffoff", ex_diffoff
,
312 EX(CMD_diffpatch
, "diffpatch", ex_diffpatch
,
313 EXTRA
|FILE1
|TRLBAR
|MODIFY
),
314 EX(CMD_diffput
, "diffput", ex_diffgetput
,
316 EX(CMD_diffsplit
, "diffsplit", ex_diffsplit
,
318 EX(CMD_diffthis
, "diffthis", ex_diffthis
,
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
),
338 EX(CMD_earlier
, "earlier", ex_later
,
339 TRLBAR
|EXTRA
|NOSPC
|CMDWIN
),
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
,
360 EX(CMD_endfor
, "endfor", ex_endwhile
,
361 TRLBAR
|SBOXOK
|CMDWIN
),
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
,
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
),
374 EX(CMD_exusage
, "exusage", ex_exusage
,
376 EX(CMD_file
, "file", ex_file
,
377 RANGE
|NOTADR
|ZEROR
|BANG
|FILE1
|TRLBAR
),
378 EX(CMD_files
, "files", buflist_list
,
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
,
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
),
402 EX(CMD_for
, "for", ex_while
,
403 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
404 EX(CMD_function
, "function", ex_function
,
406 EX(CMD_global
, "global", ex_global
,
407 RANGE
|WHOLEFOLD
|BANG
|EXTRA
|DFLALL
|SBOXOK
|CMDWIN
),
408 EX(CMD_goto
, "goto", ex_goto
,
409 RANGE
|NOTADR
|COUNT
|TRLBAR
|SBOXOK
|CMDWIN
),
410 EX(CMD_grep
, "grep", ex_make
,
411 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
412 EX(CMD_grepadd
, "grepadd", ex_make
,
413 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
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
,
422 EX(CMD_helpgrep
, "helpgrep", ex_helpgrep
,
423 EXTRA
|NOTRLCOM
|NEEDARG
),
424 EX(CMD_helptags
, "helptags", ex_helptags
,
425 NEEDARG
|FILE1
|TRLBAR
|CMDWIN
),
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
,
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
,
471 BANG
|RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
472 EX(CMD_jumps
, "jumps", ex_jumps
,
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
),
480 EX(CMD_keepalt
, "keepalt", ex_wrongmodifier
,
481 NEEDARG
|EXTRA
|NOTRLCOM
),
482 EX(CMD_list
, "list", ex_print
,
483 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
484 EX(CMD_lNext
, "lNext", ex_cnext
,
485 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
486 EX(CMD_lNfile
, "lNfile", ex_cnext
,
487 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
488 EX(CMD_last
, "last", ex_last
,
489 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
490 EX(CMD_language
, "language", ex_language
,
491 EXTRA
|TRLBAR
|CMDWIN
),
492 EX(CMD_laddexpr
, "laddexpr", ex_cexpr
,
493 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
494 EX(CMD_laddbuffer
, "laddbuffer", ex_cbuffer
,
495 RANGE
|NOTADR
|WORD1
|TRLBAR
),
496 EX(CMD_laddfile
, "laddfile", ex_cfile
,
498 EX(CMD_later
, "later", ex_later
,
499 TRLBAR
|EXTRA
|NOSPC
|CMDWIN
),
500 EX(CMD_lbuffer
, "lbuffer", ex_cbuffer
,
501 BANG
|RANGE
|NOTADR
|WORD1
|TRLBAR
),
502 EX(CMD_lcd
, "lcd", ex_cd
,
503 BANG
|FILE1
|TRLBAR
|CMDWIN
),
504 EX(CMD_lchdir
, "lchdir", ex_cd
,
505 BANG
|FILE1
|TRLBAR
|CMDWIN
),
506 EX(CMD_lclose
, "lclose", ex_cclose
,
507 RANGE
|NOTADR
|COUNT
|TRLBAR
),
508 EX(CMD_lcscope
, "lcscope", do_cscope
,
509 EXTRA
|NOTRLCOM
|SBOXOK
|XFILE
),
510 EX(CMD_left
, "left", ex_align
,
511 TRLBAR
|RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
512 EX(CMD_leftabove
, "leftabove", ex_wrongmodifier
,
513 NEEDARG
|EXTRA
|NOTRLCOM
),
514 EX(CMD_let
, "let", ex_let
,
515 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
516 EX(CMD_lexpr
, "lexpr", ex_cexpr
,
517 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
518 EX(CMD_lfile
, "lfile", ex_cfile
,
520 EX(CMD_lfirst
, "lfirst", ex_cc
,
521 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
522 EX(CMD_lgetfile
, "lgetfile", ex_cfile
,
524 EX(CMD_lgetbuffer
, "lgetbuffer", ex_cbuffer
,
525 RANGE
|NOTADR
|WORD1
|TRLBAR
),
526 EX(CMD_lgetexpr
, "lgetexpr", ex_cexpr
,
527 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
528 EX(CMD_lgrep
, "lgrep", ex_make
,
529 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
530 EX(CMD_lgrepadd
, "lgrepadd", ex_make
,
531 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
532 EX(CMD_lhelpgrep
, "lhelpgrep", ex_helpgrep
,
533 EXTRA
|NOTRLCOM
|NEEDARG
),
534 EX(CMD_ll
, "ll", ex_cc
,
535 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
536 EX(CMD_llast
, "llast", ex_cc
,
537 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
538 EX(CMD_llist
, "llist", qf_list
,
539 BANG
|EXTRA
|TRLBAR
|CMDWIN
),
540 EX(CMD_lmap
, "lmap", ex_map
,
541 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
542 EX(CMD_lmapclear
, "lmapclear", ex_mapclear
,
543 EXTRA
|TRLBAR
|CMDWIN
),
544 EX(CMD_lmake
, "lmake", ex_make
,
545 BANG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
546 EX(CMD_lnoremap
, "lnoremap", ex_map
,
547 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
548 EX(CMD_lnext
, "lnext", ex_cnext
,
549 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
550 EX(CMD_lnewer
, "lnewer", qf_age
,
551 RANGE
|NOTADR
|COUNT
|TRLBAR
),
552 EX(CMD_lnfile
, "lnfile", ex_cnext
,
553 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
554 EX(CMD_loadview
, "loadview", ex_loadview
,
556 EX(CMD_loadkeymap
, "loadkeymap", ex_loadkeymap
,
558 EX(CMD_lockmarks
, "lockmarks", ex_wrongmodifier
,
559 NEEDARG
|EXTRA
|NOTRLCOM
),
560 EX(CMD_lockvar
, "lockvar", ex_lockvar
,
561 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
562 EX(CMD_lolder
, "lolder", qf_age
,
563 RANGE
|NOTADR
|COUNT
|TRLBAR
),
564 EX(CMD_lopen
, "lopen", ex_copen
,
565 RANGE
|NOTADR
|COUNT
|TRLBAR
),
566 EX(CMD_lprevious
, "lprevious", ex_cnext
,
567 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
568 EX(CMD_lpfile
, "lpfile", ex_cnext
,
569 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
570 EX(CMD_lrewind
, "lrewind", ex_cc
,
571 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
572 EX(CMD_ltag
, "ltag", ex_tag
,
573 NOTADR
|TRLBAR
|BANG
|WORD1
),
574 EX(CMD_lunmap
, "lunmap", ex_unmap
,
575 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
576 EX(CMD_lvimgrep
, "lvimgrep", ex_vimgrep
,
577 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
578 EX(CMD_lvimgrepadd
, "lvimgrepadd", ex_vimgrep
,
579 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
580 EX(CMD_lwindow
, "lwindow", ex_cwindow
,
581 RANGE
|NOTADR
|COUNT
|TRLBAR
),
582 EX(CMD_ls
, "ls", buflist_list
,
584 EX(CMD_move
, "move", ex_copymove
,
585 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
|MODIFY
),
586 EX(CMD_mark
, "mark", ex_mark
,
587 RANGE
|WORD1
|TRLBAR
|SBOXOK
|CMDWIN
),
588 EX(CMD_make
, "make", ex_make
,
589 BANG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
590 EX(CMD_map
, "map", ex_map
,
591 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
592 EX(CMD_mapclear
, "mapclear", ex_mapclear
,
593 EXTRA
|BANG
|TRLBAR
|CMDWIN
),
594 EX(CMD_marks
, "marks", do_marks
,
595 EXTRA
|TRLBAR
|CMDWIN
),
596 EX(CMD_match
, "match", ex_match
,
597 RANGE
|NOTADR
|EXTRA
|CMDWIN
),
598 EX(CMD_macaction
, "macaction", ex_macaction
,
599 EXTRA
|NOSPC
|NEEDARG
),
600 EX(CMD_macmenukey
, "macmenukey", ex_macmenukey
,
601 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
602 EX(CMD_menu
, "menu", ex_menu
,
603 RANGE
|NOTADR
|ZEROR
|BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
604 EX(CMD_menutranslate
, "menutranslate", ex_menutranslate
,
605 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
606 EX(CMD_messages
, "messages", ex_messages
,
608 EX(CMD_mkexrc
, "mkexrc", ex_mkrc
,
609 BANG
|FILE1
|TRLBAR
|CMDWIN
),
610 EX(CMD_mksession
, "mksession", ex_mkrc
,
612 EX(CMD_mkspell
, "mkspell", ex_mkspell
,
613 BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
614 EX(CMD_mkvimrc
, "mkvimrc", ex_mkrc
,
615 BANG
|FILE1
|TRLBAR
|CMDWIN
),
616 EX(CMD_mkview
, "mkview", ex_mkrc
,
618 EX(CMD_mode
, "mode", ex_mode
,
619 WORD1
|TRLBAR
|CMDWIN
),
620 EX(CMD_mzscheme
, "mzscheme", ex_mzscheme
,
621 RANGE
|EXTRA
|DFLALL
|NEEDARG
|CMDWIN
|SBOXOK
),
622 EX(CMD_mzfile
, "mzfile", ex_mzfile
,
623 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
624 EX(CMD_next
, "next", ex_next
,
625 RANGE
|NOTADR
|BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
),
626 EX(CMD_nbkey
, "nbkey", ex_nbkey
,
627 EXTRA
|NOTADR
|NEEDARG
),
628 EX(CMD_new
, "new", ex_splitview
,
629 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
630 EX(CMD_nmap
, "nmap", ex_map
,
631 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
632 EX(CMD_nmapclear
, "nmapclear", ex_mapclear
,
633 EXTRA
|TRLBAR
|CMDWIN
),
634 EX(CMD_nmenu
, "nmenu", ex_menu
,
635 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
636 EX(CMD_nnoremap
, "nnoremap", ex_map
,
637 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
638 EX(CMD_nnoremenu
, "nnoremenu", ex_menu
,
639 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
640 EX(CMD_noremap
, "noremap", ex_map
,
641 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
642 EX(CMD_nohlsearch
, "nohlsearch", ex_nohlsearch
,
643 TRLBAR
|SBOXOK
|CMDWIN
),
644 EX(CMD_noreabbrev
, "noreabbrev", ex_abbreviate
,
645 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
646 EX(CMD_noremenu
, "noremenu", ex_menu
,
647 RANGE
|NOTADR
|ZEROR
|BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
648 EX(CMD_normal
, "normal", ex_normal
,
649 RANGE
|BANG
|EXTRA
|NEEDARG
|NOTRLCOM
|USECTRLV
|SBOXOK
|CMDWIN
),
650 EX(CMD_number
, "number", ex_print
,
651 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
652 EX(CMD_nunmap
, "nunmap", ex_unmap
,
653 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
654 EX(CMD_nunmenu
, "nunmenu", ex_menu
,
655 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
656 EX(CMD_open
, "open", ex_open
,
658 EX(CMD_omap
, "omap", ex_map
,
659 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
660 EX(CMD_omapclear
, "omapclear", ex_mapclear
,
661 EXTRA
|TRLBAR
|CMDWIN
),
662 EX(CMD_omenu
, "omenu", ex_menu
,
663 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
664 EX(CMD_only
, "only", ex_only
,
666 EX(CMD_onoremap
, "onoremap", ex_map
,
667 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
668 EX(CMD_onoremenu
, "onoremenu", ex_menu
,
669 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
670 EX(CMD_options
, "options", ex_options
,
672 EX(CMD_ounmap
, "ounmap", ex_unmap
,
673 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
674 EX(CMD_ounmenu
, "ounmenu", ex_menu
,
675 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
676 EX(CMD_print
, "print", ex_print
,
677 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|SBOXOK
),
678 EX(CMD_pclose
, "pclose", ex_pclose
,
680 EX(CMD_perl
, "perl", ex_perl
,
681 RANGE
|EXTRA
|DFLALL
|NEEDARG
|SBOXOK
|CMDWIN
),
682 EX(CMD_perldo
, "perldo", ex_perldo
,
683 RANGE
|EXTRA
|DFLALL
|NEEDARG
|CMDWIN
),
684 EX(CMD_pedit
, "pedit", ex_pedit
,
685 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
686 EX(CMD_pop
, "pop", ex_tag
,
687 RANGE
|NOTADR
|BANG
|COUNT
|TRLBAR
|ZEROR
),
688 EX(CMD_popup
, "popup", ex_popup
,
689 NEEDARG
|EXTRA
|BANG
|TRLBAR
|NOTRLCOM
|CMDWIN
),
690 EX(CMD_ppop
, "ppop", ex_ptag
,
691 RANGE
|NOTADR
|BANG
|COUNT
|TRLBAR
|ZEROR
),
692 EX(CMD_preserve
, "preserve", ex_preserve
,
694 EX(CMD_previous
, "previous", ex_previous
,
695 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
696 EX(CMD_promptfind
, "promptfind", gui_mch_find_dialog
,
697 EXTRA
|NOTRLCOM
|CMDWIN
),
698 EX(CMD_promptrepl
, "promptrepl", gui_mch_replace_dialog
,
699 EXTRA
|NOTRLCOM
|CMDWIN
),
700 EX(CMD_profile
, "profile", ex_profile
,
701 BANG
|EXTRA
|TRLBAR
|CMDWIN
),
702 EX(CMD_profdel
, "profdel", ex_breakdel
,
703 EXTRA
|TRLBAR
|CMDWIN
),
704 EX(CMD_psearch
, "psearch", ex_psearch
,
705 BANG
|RANGE
|WHOLEFOLD
|DFLALL
|EXTRA
),
706 EX(CMD_ptag
, "ptag", ex_ptag
,
707 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
708 EX(CMD_ptNext
, "ptNext", ex_ptag
,
709 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
710 EX(CMD_ptfirst
, "ptfirst", ex_ptag
,
711 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
712 EX(CMD_ptjump
, "ptjump", ex_ptag
,
714 EX(CMD_ptlast
, "ptlast", ex_ptag
,
716 EX(CMD_ptnext
, "ptnext", ex_ptag
,
717 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
718 EX(CMD_ptprevious
, "ptprevious", ex_ptag
,
719 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
720 EX(CMD_ptrewind
, "ptrewind", ex_ptag
,
721 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
722 EX(CMD_ptselect
, "ptselect", ex_ptag
,
724 EX(CMD_put
, "put", ex_put
,
725 RANGE
|WHOLEFOLD
|BANG
|REGSTR
|TRLBAR
|ZEROR
|CMDWIN
|MODIFY
),
726 EX(CMD_pwd
, "pwd", ex_pwd
,
728 EX(CMD_python
, "python", ex_python
,
729 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
730 EX(CMD_pyfile
, "pyfile", ex_pyfile
,
731 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
732 EX(CMD_quit
, "quit", ex_quit
,
734 EX(CMD_quitall
, "quitall", ex_quit_all
,
736 EX(CMD_qall
, "qall", ex_quit_all
,
738 EX(CMD_read
, "read", ex_read
,
739 BANG
|RANGE
|WHOLEFOLD
|FILE1
|ARGOPT
|TRLBAR
|ZEROR
|CMDWIN
|MODIFY
),
740 EX(CMD_recover
, "recover", ex_recover
,
742 EX(CMD_redo
, "redo", ex_redo
,
744 EX(CMD_redir
, "redir", ex_redir
,
745 BANG
|FILES
|TRLBAR
|CMDWIN
),
746 EX(CMD_redraw
, "redraw", ex_redraw
,
748 EX(CMD_redrawstatus
, "redrawstatus", ex_redrawstatus
,
750 EX(CMD_registers
, "registers", ex_display
,
751 EXTRA
|NOTRLCOM
|TRLBAR
|CMDWIN
),
752 EX(CMD_resize
, "resize", ex_resize
,
753 RANGE
|NOTADR
|TRLBAR
|WORD1
),
754 EX(CMD_retab
, "retab", ex_retab
,
755 TRLBAR
|RANGE
|WHOLEFOLD
|DFLALL
|BANG
|WORD1
|CMDWIN
|MODIFY
),
756 EX(CMD_return
, "return", ex_return
,
757 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
758 EX(CMD_rewind
, "rewind", ex_rewind
,
759 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
760 EX(CMD_right
, "right", ex_align
,
761 TRLBAR
|RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
762 EX(CMD_rightbelow
, "rightbelow", ex_wrongmodifier
,
763 NEEDARG
|EXTRA
|NOTRLCOM
),
764 EX(CMD_runtime
, "runtime", ex_runtime
,
765 BANG
|NEEDARG
|FILES
|TRLBAR
|SBOXOK
|CMDWIN
),
766 EX(CMD_ruby
, "ruby", ex_ruby
,
767 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
768 EX(CMD_rubydo
, "rubydo", ex_rubydo
,
769 RANGE
|DFLALL
|EXTRA
|NEEDARG
|CMDWIN
),
770 EX(CMD_rubyfile
, "rubyfile", ex_rubyfile
,
771 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
772 EX(CMD_rviminfo
, "rviminfo", ex_viminfo
,
773 BANG
|FILE1
|TRLBAR
|CMDWIN
),
774 EX(CMD_substitute
, "substitute", do_sub
,
775 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
776 EX(CMD_sNext
, "sNext", ex_previous
,
777 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
778 EX(CMD_sargument
, "sargument", ex_argument
,
779 BANG
|RANGE
|NOTADR
|COUNT
|EXTRA
|EDITCMD
|ARGOPT
|TRLBAR
),
780 EX(CMD_sall
, "sall", ex_all
,
781 RANGE
|NOTADR
|COUNT
|TRLBAR
),
782 EX(CMD_sandbox
, "sandbox", ex_wrongmodifier
,
783 NEEDARG
|EXTRA
|NOTRLCOM
),
784 EX(CMD_saveas
, "saveas", ex_write
,
785 BANG
|DFLALL
|FILE1
|ARGOPT
|CMDWIN
|TRLBAR
),
786 EX(CMD_sbuffer
, "sbuffer", ex_buffer
,
787 BANG
|RANGE
|NOTADR
|BUFNAME
|BUFUNL
|COUNT
|EXTRA
|TRLBAR
),
788 EX(CMD_sbNext
, "sbNext", ex_bprevious
,
789 RANGE
|NOTADR
|COUNT
|TRLBAR
),
790 EX(CMD_sball
, "sball", ex_buffer_all
,
791 RANGE
|NOTADR
|COUNT
|TRLBAR
),
792 EX(CMD_sbfirst
, "sbfirst", ex_brewind
,
794 EX(CMD_sblast
, "sblast", ex_blast
,
796 EX(CMD_sbmodified
, "sbmodified", ex_bmodified
,
797 RANGE
|NOTADR
|COUNT
|TRLBAR
),
798 EX(CMD_sbnext
, "sbnext", ex_bnext
,
799 RANGE
|NOTADR
|COUNT
|TRLBAR
),
800 EX(CMD_sbprevious
, "sbprevious", ex_bprevious
,
801 RANGE
|NOTADR
|COUNT
|TRLBAR
),
802 EX(CMD_sbrewind
, "sbrewind", ex_brewind
,
804 EX(CMD_scriptnames
, "scriptnames", ex_scriptnames
,
806 EX(CMD_scriptencoding
, "scriptencoding", ex_scriptencoding
,
807 WORD1
|TRLBAR
|CMDWIN
),
808 EX(CMD_scscope
, "scscope", do_scscope
,
809 EXTRA
|NOTRLCOM
|SBOXOK
),
810 EX(CMD_set
, "set", ex_set
,
811 TRLBAR
|EXTRA
|CMDWIN
|SBOXOK
),
812 EX(CMD_setfiletype
, "setfiletype", ex_setfiletype
,
813 TRLBAR
|EXTRA
|NEEDARG
|CMDWIN
),
814 EX(CMD_setglobal
, "setglobal", ex_set
,
815 TRLBAR
|EXTRA
|CMDWIN
),
816 EX(CMD_setlocal
, "setlocal", ex_set
,
817 TRLBAR
|EXTRA
|CMDWIN
),
818 EX(CMD_sfind
, "sfind", ex_splitview
,
819 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
820 EX(CMD_sfirst
, "sfirst", ex_rewind
,
821 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
822 EX(CMD_shell
, "shell", ex_shell
,
824 EX(CMD_simalt
, "simalt", ex_simalt
,
825 NEEDARG
|WORD1
|TRLBAR
|CMDWIN
),
826 EX(CMD_sign
, "sign", ex_sign
,
827 NEEDARG
|RANGE
|NOTADR
|EXTRA
|CMDWIN
),
828 EX(CMD_silent
, "silent", ex_wrongmodifier
,
829 NEEDARG
|EXTRA
|BANG
|NOTRLCOM
|SBOXOK
|CMDWIN
),
830 EX(CMD_sleep
, "sleep", ex_sleep
,
831 RANGE
|NOTADR
|COUNT
|EXTRA
|TRLBAR
|CMDWIN
),
832 EX(CMD_slast
, "slast", ex_last
,
833 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
834 EX(CMD_smagic
, "smagic", ex_submagic
,
835 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
836 EX(CMD_smap
, "smap", ex_map
,
837 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
838 EX(CMD_smapclear
, "smapclear", ex_mapclear
,
839 EXTRA
|TRLBAR
|CMDWIN
),
840 EX(CMD_smenu
, "smenu", ex_menu
,
841 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
842 EX(CMD_snext
, "snext", ex_next
,
843 RANGE
|NOTADR
|BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
),
844 EX(CMD_sniff
, "sniff", ex_sniff
,
846 EX(CMD_snomagic
, "snomagic", ex_submagic
,
847 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
848 EX(CMD_snoremap
, "snoremap", ex_map
,
849 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
850 EX(CMD_snoremenu
, "snoremenu", ex_menu
,
851 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
852 EX(CMD_source
, "source", ex_source
,
853 BANG
|FILE1
|TRLBAR
|SBOXOK
|CMDWIN
),
854 EX(CMD_sort
, "sort", ex_sort
,
855 RANGE
|DFLALL
|WHOLEFOLD
|BANG
|EXTRA
|NOTRLCOM
|MODIFY
),
856 EX(CMD_split
, "split", ex_splitview
,
857 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
858 EX(CMD_spellgood
, "spellgood", ex_spell
,
859 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
860 EX(CMD_spelldump
, "spelldump", ex_spelldump
,
862 EX(CMD_spellinfo
, "spellinfo", ex_spellinfo
,
864 EX(CMD_spellrepall
, "spellrepall", ex_spellrepall
,
866 EX(CMD_spellundo
, "spellundo", ex_spell
,
867 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
868 EX(CMD_spellwrong
, "spellwrong", ex_spell
,
869 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
870 EX(CMD_sprevious
, "sprevious", ex_previous
,
871 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
872 EX(CMD_srewind
, "srewind", ex_rewind
,
873 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
874 EX(CMD_stop
, "stop", ex_stop
,
876 EX(CMD_stag
, "stag", ex_stag
,
877 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
878 EX(CMD_startinsert
, "startinsert", ex_startinsert
,
880 EX(CMD_startgreplace
, "startgreplace", ex_startinsert
,
882 EX(CMD_startreplace
, "startreplace", ex_startinsert
,
884 EX(CMD_stopinsert
, "stopinsert", ex_stopinsert
,
886 EX(CMD_stjump
, "stjump", ex_stag
,
888 EX(CMD_stselect
, "stselect", ex_stag
,
890 EX(CMD_sunhide
, "sunhide", ex_buffer_all
,
891 RANGE
|NOTADR
|COUNT
|TRLBAR
),
892 EX(CMD_sunmap
, "sunmap", ex_unmap
,
893 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
894 EX(CMD_sunmenu
, "sunmenu", ex_menu
,
895 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
896 EX(CMD_suspend
, "suspend", ex_stop
,
898 EX(CMD_sview
, "sview", ex_splitview
,
899 NEEDARG
|RANGE
|NOTADR
|BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
900 EX(CMD_swapname
, "swapname", ex_swapname
,
902 EX(CMD_syntax
, "syntax", ex_syntax
,
903 EXTRA
|NOTRLCOM
|CMDWIN
),
904 EX(CMD_syncbind
, "syncbind", ex_syncbind
,
906 EX(CMD_t
, "t", ex_copymove
,
907 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
|MODIFY
),
908 EX(CMD_tNext
, "tNext", ex_tag
,
909 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
910 EX(CMD_tag
, "tag", ex_tag
,
911 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
912 EX(CMD_tags
, "tags", do_tags
,
914 EX(CMD_tab
, "tab", ex_wrongmodifier
,
915 NEEDARG
|EXTRA
|NOTRLCOM
),
916 EX(CMD_tabclose
, "tabclose", ex_tabclose
,
917 RANGE
|NOTADR
|COUNT
|BANG
|TRLBAR
|CMDWIN
),
918 EX(CMD_tabdo
, "tabdo", ex_listdo
,
919 NEEDARG
|EXTRA
|NOTRLCOM
),
920 EX(CMD_tabedit
, "tabedit", ex_splitview
,
921 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|TRLBAR
),
922 EX(CMD_tabfind
, "tabfind", ex_splitview
,
923 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|NEEDARG
|TRLBAR
),
924 EX(CMD_tabfirst
, "tabfirst", ex_tabnext
,
926 EX(CMD_tabmove
, "tabmove", ex_tabmove
,
927 RANGE
|NOTADR
|ZEROR
|COUNT
|TRLBAR
|ZEROR
),
928 EX(CMD_tablast
, "tablast", ex_tabnext
,
930 EX(CMD_tabnext
, "tabnext", ex_tabnext
,
931 RANGE
|NOTADR
|COUNT
|TRLBAR
),
932 EX(CMD_tabnew
, "tabnew", ex_splitview
,
933 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|TRLBAR
),
934 EX(CMD_tabonly
, "tabonly", ex_tabonly
,
936 EX(CMD_tabprevious
, "tabprevious", ex_tabnext
,
937 RANGE
|NOTADR
|COUNT
|TRLBAR
),
938 EX(CMD_tabNext
, "tabNext", ex_tabnext
,
939 RANGE
|NOTADR
|COUNT
|TRLBAR
),
940 EX(CMD_tabrewind
, "tabrewind", ex_tabnext
,
942 EX(CMD_tabs
, "tabs", ex_tabs
,
944 EX(CMD_tcl
, "tcl", ex_tcl
,
945 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
946 EX(CMD_tcldo
, "tcldo", ex_tcldo
,
947 RANGE
|DFLALL
|EXTRA
|NEEDARG
|CMDWIN
),
948 EX(CMD_tclfile
, "tclfile", ex_tclfile
,
949 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
950 EX(CMD_tearoff
, "tearoff", ex_tearoff
,
951 NEEDARG
|EXTRA
|TRLBAR
|NOTRLCOM
|CMDWIN
),
952 EX(CMD_tfirst
, "tfirst", ex_tag
,
953 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
954 EX(CMD_throw
, "throw", ex_throw
,
955 EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
956 EX(CMD_tjump
, "tjump", ex_tag
,
958 EX(CMD_tlast
, "tlast", ex_tag
,
960 EX(CMD_tmenu
, "tmenu", ex_menu
,
961 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
962 EX(CMD_tnext
, "tnext", ex_tag
,
963 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
964 EX(CMD_topleft
, "topleft", ex_wrongmodifier
,
965 NEEDARG
|EXTRA
|NOTRLCOM
),
966 EX(CMD_tprevious
, "tprevious", ex_tag
,
967 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
968 EX(CMD_trewind
, "trewind", ex_tag
,
969 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
970 EX(CMD_try
, "try", ex_try
,
971 TRLBAR
|SBOXOK
|CMDWIN
),
972 EX(CMD_tselect
, "tselect", ex_tag
,
974 EX(CMD_tunmenu
, "tunmenu", ex_menu
,
975 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
976 EX(CMD_undo
, "undo", ex_undo
,
977 RANGE
|NOTADR
|COUNT
|ZEROR
|TRLBAR
|CMDWIN
),
978 EX(CMD_undojoin
, "undojoin", ex_undojoin
,
980 EX(CMD_undolist
, "undolist", ex_undolist
,
982 EX(CMD_unabbreviate
, "unabbreviate", ex_abbreviate
,
983 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
984 EX(CMD_unhide
, "unhide", ex_buffer_all
,
985 RANGE
|NOTADR
|COUNT
|TRLBAR
),
986 EX(CMD_unlet
, "unlet", ex_unlet
,
987 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
988 EX(CMD_unlockvar
, "unlockvar", ex_lockvar
,
989 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
990 EX(CMD_unmap
, "unmap", ex_unmap
,
991 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
992 EX(CMD_unmenu
, "unmenu", ex_menu
,
993 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
994 EX(CMD_update
, "update", ex_update
,
995 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
996 EX(CMD_vglobal
, "vglobal", ex_global
,
997 RANGE
|WHOLEFOLD
|EXTRA
|DFLALL
|CMDWIN
),
998 EX(CMD_version
, "version", ex_version
,
999 EXTRA
|TRLBAR
|CMDWIN
),
1000 EX(CMD_verbose
, "verbose", ex_wrongmodifier
,
1001 NEEDARG
|RANGE
|NOTADR
|EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
1002 EX(CMD_vertical
, "vertical", ex_wrongmodifier
,
1003 NEEDARG
|EXTRA
|NOTRLCOM
),
1004 EX(CMD_visual
, "visual", ex_edit
,
1005 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
1006 EX(CMD_view
, "view", ex_edit
,
1007 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
1008 EX(CMD_vimgrep
, "vimgrep", ex_vimgrep
,
1009 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
1010 EX(CMD_vimgrepadd
, "vimgrepadd", ex_vimgrep
,
1011 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
1012 EX(CMD_viusage
, "viusage", ex_viusage
,
1014 EX(CMD_vmap
, "vmap", ex_map
,
1015 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1016 EX(CMD_vmapclear
, "vmapclear", ex_mapclear
,
1017 EXTRA
|TRLBAR
|CMDWIN
),
1018 EX(CMD_vmenu
, "vmenu", ex_menu
,
1019 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1020 EX(CMD_vnoremap
, "vnoremap", ex_map
,
1021 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1022 EX(CMD_vnew
, "vnew", ex_splitview
,
1023 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
1024 EX(CMD_vnoremenu
, "vnoremenu", ex_menu
,
1025 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1026 EX(CMD_vsplit
, "vsplit", ex_splitview
,
1027 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
1028 EX(CMD_vunmap
, "vunmap", ex_unmap
,
1029 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1030 EX(CMD_vunmenu
, "vunmenu", ex_menu
,
1031 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1032 EX(CMD_write
, "write", ex_write
,
1033 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
|CMDWIN
),
1034 EX(CMD_wNext
, "wNext", ex_wnext
,
1035 RANGE
|WHOLEFOLD
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1036 EX(CMD_wall
, "wall", do_wqall
,
1037 BANG
|TRLBAR
|CMDWIN
),
1038 EX(CMD_while
, "while", ex_while
,
1039 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
1040 EX(CMD_winsize
, "winsize", ex_winsize
,
1041 EXTRA
|NEEDARG
|TRLBAR
),
1042 EX(CMD_wincmd
, "wincmd", ex_wincmd
,
1043 NEEDARG
|WORD1
|RANGE
|NOTADR
),
1044 EX(CMD_windo
, "windo", ex_listdo
,
1045 BANG
|NEEDARG
|EXTRA
|NOTRLCOM
),
1046 EX(CMD_winpos
, "winpos", ex_winpos
,
1047 EXTRA
|TRLBAR
|CMDWIN
),
1048 EX(CMD_wnext
, "wnext", ex_wnext
,
1049 RANGE
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1050 EX(CMD_wprevious
, "wprevious", ex_wnext
,
1051 RANGE
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1052 EX(CMD_wq
, "wq", ex_exit
,
1053 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
1054 EX(CMD_wqall
, "wqall", do_wqall
,
1055 BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
1056 EX(CMD_wsverb
, "wsverb", ex_wsverb
,
1057 EXTRA
|NOTADR
|NEEDARG
),
1058 EX(CMD_wviminfo
, "wviminfo", ex_viminfo
,
1059 BANG
|FILE1
|TRLBAR
|CMDWIN
),
1060 EX(CMD_xit
, "xit", ex_exit
,
1061 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
|CMDWIN
),
1062 EX(CMD_xall
, "xall", do_wqall
,
1064 EX(CMD_xmap
, "xmap", ex_map
,
1065 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1066 EX(CMD_xmapclear
, "xmapclear", ex_mapclear
,
1067 EXTRA
|TRLBAR
|CMDWIN
),
1068 EX(CMD_xmenu
, "xmenu", ex_menu
,
1069 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1070 EX(CMD_xnoremap
, "xnoremap", ex_map
,
1071 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1072 EX(CMD_xnoremenu
, "xnoremenu", ex_menu
,
1073 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1074 EX(CMD_xunmap
, "xunmap", ex_unmap
,
1075 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1076 EX(CMD_xunmenu
, "xunmenu", ex_menu
,
1077 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1078 EX(CMD_yank
, "yank", ex_operators
,
1079 RANGE
|WHOLEFOLD
|REGSTR
|COUNT
|TRLBAR
|CMDWIN
),
1080 EX(CMD_z
, "z", ex_z
,
1081 RANGE
|WHOLEFOLD
|EXTRA
|EXFLAGS
|TRLBAR
|CMDWIN
),
1083 /* commands that don't start with a lowercase letter */
1084 EX(CMD_bang
, "!", ex_bang
,
1085 RANGE
|WHOLEFOLD
|BANG
|FILES
|CMDWIN
),
1086 EX(CMD_pound
, "#", ex_print
,
1087 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
1088 EX(CMD_and
, "&", do_sub
,
1089 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
1090 EX(CMD_star
, "*", ex_at
,
1091 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
),
1092 EX(CMD_lshift
, "<", ex_operators
,
1093 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
1094 EX(CMD_equal
, "=", ex_equal
,
1095 RANGE
|TRLBAR
|DFLALL
|EXFLAGS
|CMDWIN
),
1096 EX(CMD_rshift
, ">", ex_operators
,
1097 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
1098 EX(CMD_at
, "@", ex_at
,
1099 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
),
1100 EX(CMD_Next
, "Next", ex_previous
,
1101 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
1102 EX(CMD_Print
, "Print", ex_print
,
1103 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
1104 EX(CMD_X
, "X", ex_X
,
1106 EX(CMD_tilde
, "~", do_sub
,
1107 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
1109 #ifndef DO_DECLARE_EXCMD
1110 #ifdef FEAT_USR_CMDS
1111 CMD_SIZE
, /* MUST be after all real commands! */
1112 CMD_USER
= -1, /* User-defined command */
1113 CMD_USER_BUF
= -2 /* User-defined command local to buffer */
1115 CMD_SIZE
/* MUST be the last one! */
1120 #define USER_CMDIDX(idx) ((int)(idx) < 0)
1122 #ifndef DO_DECLARE_EXCMD
1123 typedef enum CMD_index cmdidx_T
;
1126 * Arguments used for Ex commands.
1130 char_u
*arg
; /* argument of the command */
1131 char_u
*nextcmd
; /* next command (NULL if none) */
1132 char_u
*cmd
; /* the name of the command (except for :make) */
1133 char_u
**cmdlinep
; /* pointer to pointer of allocated cmdline */
1134 cmdidx_T cmdidx
; /* the index for the command */
1135 long argt
; /* flags for the command */
1136 int skip
; /* don't execute the command, only parse it */
1137 int forceit
; /* TRUE if ! present */
1138 int addr_count
; /* the number of addresses given */
1139 linenr_T line1
; /* the first line number */
1140 linenr_T line2
; /* the second line number or count */
1141 int flags
; /* extra flags after count: EXFLAG_ */
1142 char_u
*do_ecmd_cmd
; /* +command arg to be used in edited file */
1143 linenr_T do_ecmd_lnum
; /* the line number in an edited file */
1144 int append
; /* TRUE with ":w >>file" command */
1145 int usefilter
; /* TRUE with ":w !command" and ":r!command" */
1146 int amount
; /* number of '>' or '<' for shift command */
1147 int regname
; /* register name (NUL if none) */
1148 int force_bin
; /* 0, FORCE_BIN or FORCE_NOBIN */
1149 int read_edit
; /* ++edit argument */
1150 int force_ff
; /* ++ff= argument (index in cmd[]) */
1152 int force_enc
; /* ++enc= argument (index in cmd[]) */
1153 int bad_char
; /* ++bad= argument (index in cmd[]) */
1155 #ifdef FEAT_USR_CMDS
1156 int useridx
; /* user command index */
1158 char_u
*errmsg
; /* returned error message */
1159 char_u
*(*getline
) __ARGS((int, void *, int));
1160 void *cookie
; /* argument for getline() */
1162 struct condstack
*cstack
; /* condition stack for ":if" etc. */
1166 #define FORCE_BIN 1 /* ":edit ++bin file" */
1167 #define FORCE_NOBIN 2 /* ":edit ++nobin file" */
1169 /* Values for "flags" */
1170 #define EXFLAG_LIST 0x01 /* 'l': list */
1171 #define EXFLAG_NR 0x02 /* '#': number */
1172 #define EXFLAG_PRINT 0x04 /* 'p': print */