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
),
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
),
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
|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_ecl
, "ecl", ex_ecl
,
351 RANGE
|EXTRA
|ARGOPT
|CMDWIN
),
352 EX(CMD_else
, "else", ex_else
,
353 TRLBAR
|SBOXOK
|CMDWIN
),
354 EX(CMD_elseif
, "elseif", ex_else
,
355 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
356 EX(CMD_emenu
, "emenu", ex_emenu
,
357 NEEDARG
|EXTRA
|TRLBAR
|NOTRLCOM
|RANGE
|NOTADR
|CMDWIN
),
358 EX(CMD_endif
, "endif", ex_endif
,
359 TRLBAR
|SBOXOK
|CMDWIN
),
360 EX(CMD_endfunction
, "endfunction", ex_endfunction
,
362 EX(CMD_endfor
, "endfor", ex_endwhile
,
363 TRLBAR
|SBOXOK
|CMDWIN
),
364 EX(CMD_endtry
, "endtry", ex_endtry
,
365 TRLBAR
|SBOXOK
|CMDWIN
),
366 EX(CMD_endwhile
, "endwhile", ex_endwhile
,
367 TRLBAR
|SBOXOK
|CMDWIN
),
368 EX(CMD_enew
, "enew", ex_edit
,
370 EX(CMD_ex
, "ex", ex_edit
,
371 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
372 EX(CMD_execute
, "execute", ex_execute
,
373 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
374 EX(CMD_exit
, "exit", ex_exit
,
375 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
|CMDWIN
),
376 EX(CMD_exusage
, "exusage", ex_exusage
,
378 EX(CMD_file
, "file", ex_file
,
379 RANGE
|NOTADR
|ZEROR
|BANG
|FILE1
|TRLBAR
),
380 EX(CMD_files
, "files", buflist_list
,
382 EX(CMD_filetype
, "filetype", ex_filetype
,
383 EXTRA
|TRLBAR
|CMDWIN
),
384 EX(CMD_find
, "find", ex_find
,
385 RANGE
|NOTADR
|BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
386 EX(CMD_finally
, "finally", ex_finally
,
387 TRLBAR
|SBOXOK
|CMDWIN
),
388 EX(CMD_finish
, "finish", ex_finish
,
389 TRLBAR
|SBOXOK
|CMDWIN
),
390 EX(CMD_first
, "first", ex_rewind
,
391 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
392 EX(CMD_fixdel
, "fixdel", do_fixdel
,
394 EX(CMD_fold
, "fold", ex_fold
,
395 RANGE
|WHOLEFOLD
|TRLBAR
|SBOXOK
|CMDWIN
),
396 EX(CMD_foldclose
, "foldclose", ex_foldopen
,
397 RANGE
|BANG
|WHOLEFOLD
|TRLBAR
|SBOXOK
|CMDWIN
),
398 EX(CMD_folddoopen
, "folddoopen", ex_folddo
,
399 RANGE
|DFLALL
|NEEDARG
|EXTRA
|NOTRLCOM
),
400 EX(CMD_folddoclosed
, "folddoclosed", ex_folddo
,
401 RANGE
|DFLALL
|NEEDARG
|EXTRA
|NOTRLCOM
),
402 EX(CMD_foldopen
, "foldopen", ex_foldopen
,
403 RANGE
|BANG
|WHOLEFOLD
|TRLBAR
|SBOXOK
|CMDWIN
),
404 EX(CMD_for
, "for", ex_while
,
405 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
406 EX(CMD_function
, "function", ex_function
,
408 EX(CMD_global
, "global", ex_global
,
409 RANGE
|WHOLEFOLD
|BANG
|EXTRA
|DFLALL
|SBOXOK
|CMDWIN
),
410 EX(CMD_goto
, "goto", ex_goto
,
411 RANGE
|NOTADR
|COUNT
|TRLBAR
|SBOXOK
|CMDWIN
),
412 EX(CMD_grep
, "grep", ex_make
,
413 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
414 EX(CMD_grepadd
, "grepadd", ex_make
,
415 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
416 EX(CMD_gui
, "gui", ex_gui
,
417 BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
|CMDWIN
),
418 EX(CMD_gvim
, "gvim", ex_gui
,
419 BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
|CMDWIN
),
420 EX(CMD_help
, "help", ex_help
,
421 BANG
|EXTRA
|NOTRLCOM
),
422 EX(CMD_helpfind
, "helpfind", ex_helpfind
,
424 EX(CMD_helpgrep
, "helpgrep", ex_helpgrep
,
425 EXTRA
|NOTRLCOM
|NEEDARG
),
426 EX(CMD_helptags
, "helptags", ex_helptags
,
427 NEEDARG
|FILES
|TRLBAR
|CMDWIN
),
428 EX(CMD_hardcopy
, "hardcopy", ex_hardcopy
,
429 RANGE
|COUNT
|EXTRA
|TRLBAR
|DFLALL
|BANG
),
430 EX(CMD_highlight
, "highlight", ex_highlight
,
431 BANG
|EXTRA
|TRLBAR
|SBOXOK
|CMDWIN
),
432 EX(CMD_hide
, "hide", ex_hide
,
433 BANG
|EXTRA
|NOTRLCOM
),
434 EX(CMD_history
, "history", ex_history
,
435 EXTRA
|TRLBAR
|CMDWIN
),
436 EX(CMD_insert
, "insert", ex_append
,
437 BANG
|RANGE
|TRLBAR
|CMDWIN
|MODIFY
),
438 EX(CMD_iabbrev
, "iabbrev", ex_abbreviate
,
439 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
440 EX(CMD_iabclear
, "iabclear", ex_abclear
,
441 EXTRA
|TRLBAR
|CMDWIN
),
442 EX(CMD_if
, "if", ex_if
,
443 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
444 EX(CMD_ijump
, "ijump", ex_findpat
,
445 BANG
|RANGE
|DFLALL
|WHOLEFOLD
|EXTRA
),
446 EX(CMD_ilist
, "ilist", ex_findpat
,
447 BANG
|RANGE
|DFLALL
|WHOLEFOLD
|EXTRA
|CMDWIN
),
448 EX(CMD_imap
, "imap", ex_map
,
449 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
450 EX(CMD_imapclear
, "imapclear", ex_mapclear
,
451 EXTRA
|TRLBAR
|CMDWIN
),
452 EX(CMD_imenu
, "imenu", ex_menu
,
453 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
454 EX(CMD_inoremap
, "inoremap", ex_map
,
455 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
456 EX(CMD_inoreabbrev
, "inoreabbrev", ex_abbreviate
,
457 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
458 EX(CMD_inoremenu
, "inoremenu", ex_menu
,
459 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
460 EX(CMD_intro
, "intro", ex_intro
,
462 EX(CMD_isearch
, "isearch", ex_findpat
,
463 BANG
|RANGE
|DFLALL
|WHOLEFOLD
|EXTRA
|CMDWIN
),
464 EX(CMD_isplit
, "isplit", ex_findpat
,
465 BANG
|RANGE
|DFLALL
|WHOLEFOLD
|EXTRA
),
466 EX(CMD_iunmap
, "iunmap", ex_unmap
,
467 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
468 EX(CMD_iunabbrev
, "iunabbrev", ex_abbreviate
,
469 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
470 EX(CMD_iunmenu
, "iunmenu", ex_menu
,
471 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
472 EX(CMD_join
, "join", ex_join
,
473 BANG
|RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
474 EX(CMD_jumps
, "jumps", ex_jumps
,
476 EX(CMD_k
, "k", ex_mark
,
477 RANGE
|WORD1
|TRLBAR
|SBOXOK
|CMDWIN
),
478 EX(CMD_keepmarks
, "keepmarks", ex_wrongmodifier
,
479 NEEDARG
|EXTRA
|NOTRLCOM
),
480 EX(CMD_keepjumps
, "keepjumps", ex_wrongmodifier
,
481 NEEDARG
|EXTRA
|NOTRLCOM
),
482 EX(CMD_keepalt
, "keepalt", ex_wrongmodifier
,
483 NEEDARG
|EXTRA
|NOTRLCOM
),
484 EX(CMD_list
, "list", ex_print
,
485 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
486 EX(CMD_lNext
, "lNext", ex_cnext
,
487 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
488 EX(CMD_lNfile
, "lNfile", ex_cnext
,
489 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
490 EX(CMD_last
, "last", ex_last
,
491 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
492 EX(CMD_language
, "language", ex_language
,
493 EXTRA
|TRLBAR
|CMDWIN
),
494 EX(CMD_laddexpr
, "laddexpr", ex_cexpr
,
495 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
),
496 EX(CMD_laddbuffer
, "laddbuffer", ex_cbuffer
,
497 RANGE
|NOTADR
|WORD1
|TRLBAR
),
498 EX(CMD_laddfile
, "laddfile", ex_cfile
,
500 EX(CMD_later
, "later", ex_later
,
501 TRLBAR
|EXTRA
|NOSPC
|CMDWIN
),
502 EX(CMD_lbuffer
, "lbuffer", ex_cbuffer
,
503 BANG
|RANGE
|NOTADR
|WORD1
|TRLBAR
),
504 EX(CMD_lcd
, "lcd", ex_cd
,
505 BANG
|FILE1
|TRLBAR
|CMDWIN
),
506 EX(CMD_lchdir
, "lchdir", ex_cd
,
507 BANG
|FILE1
|TRLBAR
|CMDWIN
),
508 EX(CMD_lclose
, "lclose", ex_cclose
,
509 RANGE
|NOTADR
|COUNT
|TRLBAR
),
510 EX(CMD_lcscope
, "lcscope", do_cscope
,
511 EXTRA
|NOTRLCOM
|XFILE
),
512 EX(CMD_left
, "left", ex_align
,
513 TRLBAR
|RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
514 EX(CMD_leftabove
, "leftabove", ex_wrongmodifier
,
515 NEEDARG
|EXTRA
|NOTRLCOM
),
516 EX(CMD_let
, "let", ex_let
,
517 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
518 EX(CMD_lexpr
, "lexpr", ex_cexpr
,
519 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
|BANG
),
520 EX(CMD_lfile
, "lfile", ex_cfile
,
522 EX(CMD_lfirst
, "lfirst", ex_cc
,
523 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
524 EX(CMD_lgetfile
, "lgetfile", ex_cfile
,
526 EX(CMD_lgetbuffer
, "lgetbuffer", ex_cbuffer
,
527 RANGE
|NOTADR
|WORD1
|TRLBAR
),
528 EX(CMD_lgetexpr
, "lgetexpr", ex_cexpr
,
529 NEEDARG
|WORD1
|NOTRLCOM
|TRLBAR
),
530 EX(CMD_lgrep
, "lgrep", ex_make
,
531 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
532 EX(CMD_lgrepadd
, "lgrepadd", ex_make
,
533 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
534 EX(CMD_lhelpgrep
, "lhelpgrep", ex_helpgrep
,
535 EXTRA
|NOTRLCOM
|NEEDARG
),
536 EX(CMD_ll
, "ll", ex_cc
,
537 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
538 EX(CMD_llast
, "llast", ex_cc
,
539 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
540 EX(CMD_llist
, "llist", qf_list
,
541 BANG
|EXTRA
|TRLBAR
|CMDWIN
),
542 EX(CMD_lmap
, "lmap", ex_map
,
543 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
544 EX(CMD_lmapclear
, "lmapclear", ex_mapclear
,
545 EXTRA
|TRLBAR
|CMDWIN
),
546 EX(CMD_lmake
, "lmake", ex_make
,
547 BANG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
548 EX(CMD_lnoremap
, "lnoremap", ex_map
,
549 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
550 EX(CMD_lnext
, "lnext", ex_cnext
,
551 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
552 EX(CMD_lnewer
, "lnewer", qf_age
,
553 RANGE
|NOTADR
|COUNT
|TRLBAR
),
554 EX(CMD_lnfile
, "lnfile", ex_cnext
,
555 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
556 EX(CMD_loadview
, "loadview", ex_loadview
,
558 EX(CMD_loadkeymap
, "loadkeymap", ex_loadkeymap
,
560 EX(CMD_lockmarks
, "lockmarks", ex_wrongmodifier
,
561 NEEDARG
|EXTRA
|NOTRLCOM
),
562 EX(CMD_lockvar
, "lockvar", ex_lockvar
,
563 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
564 EX(CMD_lolder
, "lolder", qf_age
,
565 RANGE
|NOTADR
|COUNT
|TRLBAR
),
566 EX(CMD_lopen
, "lopen", ex_copen
,
567 RANGE
|NOTADR
|COUNT
|TRLBAR
),
568 EX(CMD_lprevious
, "lprevious", ex_cnext
,
569 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
570 EX(CMD_lpfile
, "lpfile", ex_cnext
,
571 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
572 EX(CMD_lrewind
, "lrewind", ex_cc
,
573 RANGE
|NOTADR
|COUNT
|TRLBAR
|BANG
),
574 EX(CMD_ltag
, "ltag", ex_tag
,
575 NOTADR
|TRLBAR
|BANG
|WORD1
),
576 EX(CMD_lunmap
, "lunmap", ex_unmap
,
577 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
578 EX(CMD_lvimgrep
, "lvimgrep", ex_vimgrep
,
579 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
580 EX(CMD_lvimgrepadd
, "lvimgrepadd", ex_vimgrep
,
581 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
582 EX(CMD_lwindow
, "lwindow", ex_cwindow
,
583 RANGE
|NOTADR
|COUNT
|TRLBAR
),
584 EX(CMD_ls
, "ls", buflist_list
,
586 EX(CMD_move
, "move", ex_copymove
,
587 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
|MODIFY
),
588 EX(CMD_mark
, "mark", ex_mark
,
589 RANGE
|WORD1
|TRLBAR
|SBOXOK
|CMDWIN
),
590 EX(CMD_make
, "make", ex_make
,
591 BANG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
592 EX(CMD_map
, "map", ex_map
,
593 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
594 EX(CMD_mapclear
, "mapclear", ex_mapclear
,
595 EXTRA
|BANG
|TRLBAR
|CMDWIN
),
596 EX(CMD_marks
, "marks", do_marks
,
597 EXTRA
|TRLBAR
|CMDWIN
),
598 EX(CMD_match
, "match", ex_match
,
599 RANGE
|NOTADR
|EXTRA
|CMDWIN
),
600 EX(CMD_menu
, "menu", ex_menu
,
601 RANGE
|NOTADR
|ZEROR
|BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
602 EX(CMD_menutranslate
, "menutranslate", ex_menutranslate
,
603 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
604 EX(CMD_messages
, "messages", ex_messages
,
606 EX(CMD_mkexrc
, "mkexrc", ex_mkrc
,
607 BANG
|FILE1
|TRLBAR
|CMDWIN
),
608 EX(CMD_mksession
, "mksession", ex_mkrc
,
610 EX(CMD_mkspell
, "mkspell", ex_mkspell
,
611 BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
612 EX(CMD_mkvimrc
, "mkvimrc", ex_mkrc
,
613 BANG
|FILE1
|TRLBAR
|CMDWIN
),
614 EX(CMD_mkview
, "mkview", ex_mkrc
,
616 EX(CMD_mode
, "mode", ex_mode
,
617 WORD1
|TRLBAR
|CMDWIN
),
618 EX(CMD_mzscheme
, "mzscheme", ex_mzscheme
,
619 RANGE
|EXTRA
|DFLALL
|NEEDARG
|CMDWIN
|SBOXOK
),
620 EX(CMD_mzfile
, "mzfile", ex_mzfile
,
621 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
622 EX(CMD_next
, "next", ex_next
,
623 RANGE
|NOTADR
|BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
),
624 EX(CMD_nbkey
, "nbkey", ex_nbkey
,
625 EXTRA
|NOTADR
|NEEDARG
),
626 EX(CMD_new
, "new", ex_splitview
,
627 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
628 EX(CMD_nmap
, "nmap", ex_map
,
629 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
630 EX(CMD_nmapclear
, "nmapclear", ex_mapclear
,
631 EXTRA
|TRLBAR
|CMDWIN
),
632 EX(CMD_nmenu
, "nmenu", ex_menu
,
633 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
634 EX(CMD_nnoremap
, "nnoremap", ex_map
,
635 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
636 EX(CMD_nnoremenu
, "nnoremenu", ex_menu
,
637 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
638 EX(CMD_noremap
, "noremap", ex_map
,
639 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
640 EX(CMD_noautocmd
, "noautocmd", ex_wrongmodifier
,
641 NEEDARG
|EXTRA
|NOTRLCOM
),
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_oldfiles
, "oldfiles", ex_oldfiles
,
659 BANG
|TRLBAR
|SBOXOK
|CMDWIN
),
660 EX(CMD_omap
, "omap", ex_map
,
661 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
662 EX(CMD_omapclear
, "omapclear", ex_mapclear
,
663 EXTRA
|TRLBAR
|CMDWIN
),
664 EX(CMD_omenu
, "omenu", ex_menu
,
665 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
666 EX(CMD_only
, "only", ex_only
,
668 EX(CMD_onoremap
, "onoremap", ex_map
,
669 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
670 EX(CMD_onoremenu
, "onoremenu", ex_menu
,
671 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
672 EX(CMD_options
, "options", ex_options
,
674 EX(CMD_ounmap
, "ounmap", ex_unmap
,
675 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
676 EX(CMD_ounmenu
, "ounmenu", ex_menu
,
677 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
678 EX(CMD_print
, "print", ex_print
,
679 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|SBOXOK
),
680 EX(CMD_pclose
, "pclose", ex_pclose
,
682 EX(CMD_perl
, "perl", ex_perl
,
683 RANGE
|EXTRA
|DFLALL
|NEEDARG
|SBOXOK
|CMDWIN
),
684 EX(CMD_perldo
, "perldo", ex_perldo
,
685 RANGE
|EXTRA
|DFLALL
|NEEDARG
|CMDWIN
),
686 EX(CMD_pedit
, "pedit", ex_pedit
,
687 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
688 EX(CMD_pop
, "pop", ex_tag
,
689 RANGE
|NOTADR
|BANG
|COUNT
|TRLBAR
|ZEROR
),
690 EX(CMD_popup
, "popup", ex_popup
,
691 NEEDARG
|EXTRA
|BANG
|TRLBAR
|NOTRLCOM
|CMDWIN
),
692 EX(CMD_ppop
, "ppop", ex_ptag
,
693 RANGE
|NOTADR
|BANG
|COUNT
|TRLBAR
|ZEROR
),
694 EX(CMD_preserve
, "preserve", ex_preserve
,
696 EX(CMD_previous
, "previous", ex_previous
,
697 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
698 EX(CMD_promptfind
, "promptfind", gui_mch_find_dialog
,
699 EXTRA
|NOTRLCOM
|CMDWIN
),
700 EX(CMD_promptrepl
, "promptrepl", gui_mch_replace_dialog
,
701 EXTRA
|NOTRLCOM
|CMDWIN
),
702 EX(CMD_profile
, "profile", ex_profile
,
703 BANG
|EXTRA
|TRLBAR
|CMDWIN
),
704 EX(CMD_profdel
, "profdel", ex_breakdel
,
705 EXTRA
|TRLBAR
|CMDWIN
),
706 EX(CMD_psearch
, "psearch", ex_psearch
,
707 BANG
|RANGE
|WHOLEFOLD
|DFLALL
|EXTRA
),
708 EX(CMD_ptag
, "ptag", ex_ptag
,
709 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
710 EX(CMD_ptNext
, "ptNext", ex_ptag
,
711 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
712 EX(CMD_ptfirst
, "ptfirst", ex_ptag
,
713 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
714 EX(CMD_ptjump
, "ptjump", ex_ptag
,
716 EX(CMD_ptlast
, "ptlast", ex_ptag
,
718 EX(CMD_ptnext
, "ptnext", ex_ptag
,
719 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
720 EX(CMD_ptprevious
, "ptprevious", ex_ptag
,
721 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
722 EX(CMD_ptrewind
, "ptrewind", ex_ptag
,
723 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
724 EX(CMD_ptselect
, "ptselect", ex_ptag
,
726 EX(CMD_put
, "put", ex_put
,
727 RANGE
|WHOLEFOLD
|BANG
|REGSTR
|TRLBAR
|ZEROR
|CMDWIN
|MODIFY
),
728 EX(CMD_pwd
, "pwd", ex_pwd
,
730 EX(CMD_python
, "python", ex_python
,
731 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
732 EX(CMD_pyfile
, "pyfile", ex_pyfile
,
733 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
734 EX(CMD_quit
, "quit", ex_quit
,
736 EX(CMD_quitall
, "quitall", ex_quit_all
,
738 EX(CMD_qall
, "qall", ex_quit_all
,
740 EX(CMD_read
, "read", ex_read
,
741 BANG
|RANGE
|WHOLEFOLD
|FILE1
|ARGOPT
|TRLBAR
|ZEROR
|CMDWIN
|MODIFY
),
742 EX(CMD_recover
, "recover", ex_recover
,
744 EX(CMD_redo
, "redo", ex_redo
,
746 EX(CMD_redir
, "redir", ex_redir
,
747 BANG
|FILES
|TRLBAR
|CMDWIN
),
748 EX(CMD_redraw
, "redraw", ex_redraw
,
750 EX(CMD_redrawstatus
, "redrawstatus", ex_redrawstatus
,
752 EX(CMD_registers
, "registers", ex_display
,
753 EXTRA
|NOTRLCOM
|TRLBAR
|CMDWIN
),
754 EX(CMD_resize
, "resize", ex_resize
,
755 RANGE
|NOTADR
|TRLBAR
|WORD1
),
756 EX(CMD_retab
, "retab", ex_retab
,
757 TRLBAR
|RANGE
|WHOLEFOLD
|DFLALL
|BANG
|WORD1
|CMDWIN
|MODIFY
),
758 EX(CMD_return
, "return", ex_return
,
759 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
760 EX(CMD_rewind
, "rewind", ex_rewind
,
761 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
762 EX(CMD_right
, "right", ex_align
,
763 TRLBAR
|RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
764 EX(CMD_rightbelow
, "rightbelow", ex_wrongmodifier
,
765 NEEDARG
|EXTRA
|NOTRLCOM
),
766 EX(CMD_runtime
, "runtime", ex_runtime
,
767 BANG
|NEEDARG
|FILES
|TRLBAR
|SBOXOK
|CMDWIN
),
768 EX(CMD_ruby
, "ruby", ex_ruby
,
769 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
770 EX(CMD_rubydo
, "rubydo", ex_rubydo
,
771 RANGE
|DFLALL
|EXTRA
|NEEDARG
|CMDWIN
),
772 EX(CMD_rubyfile
, "rubyfile", ex_rubyfile
,
773 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
774 EX(CMD_rviminfo
, "rviminfo", ex_viminfo
,
775 BANG
|FILE1
|TRLBAR
|CMDWIN
),
776 EX(CMD_substitute
, "substitute", do_sub
,
777 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
778 EX(CMD_sNext
, "sNext", ex_previous
,
779 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
780 EX(CMD_sargument
, "sargument", ex_argument
,
781 BANG
|RANGE
|NOTADR
|COUNT
|EXTRA
|EDITCMD
|ARGOPT
|TRLBAR
),
782 EX(CMD_sall
, "sall", ex_all
,
783 RANGE
|NOTADR
|COUNT
|TRLBAR
),
784 EX(CMD_sandbox
, "sandbox", ex_wrongmodifier
,
785 NEEDARG
|EXTRA
|NOTRLCOM
),
786 EX(CMD_saveas
, "saveas", ex_write
,
787 BANG
|DFLALL
|FILE1
|ARGOPT
|CMDWIN
|TRLBAR
),
788 EX(CMD_sbuffer
, "sbuffer", ex_buffer
,
789 BANG
|RANGE
|NOTADR
|BUFNAME
|BUFUNL
|COUNT
|EXTRA
|TRLBAR
),
790 EX(CMD_sbNext
, "sbNext", ex_bprevious
,
791 RANGE
|NOTADR
|COUNT
|TRLBAR
),
792 EX(CMD_sball
, "sball", ex_buffer_all
,
793 RANGE
|NOTADR
|COUNT
|TRLBAR
),
794 EX(CMD_sbfirst
, "sbfirst", ex_brewind
,
796 EX(CMD_sblast
, "sblast", ex_blast
,
798 EX(CMD_sbmodified
, "sbmodified", ex_bmodified
,
799 RANGE
|NOTADR
|COUNT
|TRLBAR
),
800 EX(CMD_sbnext
, "sbnext", ex_bnext
,
801 RANGE
|NOTADR
|COUNT
|TRLBAR
),
802 EX(CMD_sbprevious
, "sbprevious", ex_bprevious
,
803 RANGE
|NOTADR
|COUNT
|TRLBAR
),
804 EX(CMD_sbrewind
, "sbrewind", ex_brewind
,
806 EX(CMD_scriptnames
, "scriptnames", ex_scriptnames
,
808 EX(CMD_scriptencoding
, "scriptencoding", ex_scriptencoding
,
809 WORD1
|TRLBAR
|CMDWIN
),
810 EX(CMD_scscope
, "scscope", do_scscope
,
812 EX(CMD_set
, "set", ex_set
,
813 TRLBAR
|EXTRA
|CMDWIN
|SBOXOK
),
814 EX(CMD_setfiletype
, "setfiletype", ex_setfiletype
,
815 TRLBAR
|EXTRA
|NEEDARG
|CMDWIN
),
816 EX(CMD_setglobal
, "setglobal", ex_set
,
817 TRLBAR
|EXTRA
|CMDWIN
),
818 EX(CMD_setlocal
, "setlocal", ex_set
,
819 TRLBAR
|EXTRA
|CMDWIN
),
820 EX(CMD_sfind
, "sfind", ex_splitview
,
821 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
822 EX(CMD_sfirst
, "sfirst", ex_rewind
,
823 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
824 EX(CMD_shell
, "shell", ex_shell
,
826 EX(CMD_simalt
, "simalt", ex_simalt
,
827 NEEDARG
|WORD1
|TRLBAR
|CMDWIN
),
828 EX(CMD_sign
, "sign", ex_sign
,
829 NEEDARG
|RANGE
|NOTADR
|EXTRA
|CMDWIN
),
830 EX(CMD_silent
, "silent", ex_wrongmodifier
,
831 NEEDARG
|EXTRA
|BANG
|NOTRLCOM
|SBOXOK
|CMDWIN
),
832 EX(CMD_sleep
, "sleep", ex_sleep
,
833 RANGE
|NOTADR
|COUNT
|EXTRA
|TRLBAR
|CMDWIN
),
834 EX(CMD_slast
, "slast", ex_last
,
835 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
836 EX(CMD_smagic
, "smagic", ex_submagic
,
837 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
838 EX(CMD_smap
, "smap", ex_map
,
839 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
840 EX(CMD_smapclear
, "smapclear", ex_mapclear
,
841 EXTRA
|TRLBAR
|CMDWIN
),
842 EX(CMD_smenu
, "smenu", ex_menu
,
843 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
844 EX(CMD_snext
, "snext", ex_next
,
845 RANGE
|NOTADR
|BANG
|FILES
|EDITCMD
|ARGOPT
|TRLBAR
),
846 EX(CMD_sniff
, "sniff", ex_sniff
,
848 EX(CMD_snomagic
, "snomagic", ex_submagic
,
849 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
),
850 EX(CMD_snoremap
, "snoremap", ex_map
,
851 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
852 EX(CMD_snoremenu
, "snoremenu", ex_menu
,
853 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
854 EX(CMD_source
, "source", ex_source
,
855 BANG
|FILE1
|TRLBAR
|SBOXOK
|CMDWIN
),
856 EX(CMD_sort
, "sort", ex_sort
,
857 RANGE
|DFLALL
|WHOLEFOLD
|BANG
|EXTRA
|NOTRLCOM
|MODIFY
),
858 EX(CMD_split
, "split", ex_splitview
,
859 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
860 EX(CMD_spellgood
, "spellgood", ex_spell
,
861 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
862 EX(CMD_spelldump
, "spelldump", ex_spelldump
,
864 EX(CMD_spellinfo
, "spellinfo", ex_spellinfo
,
866 EX(CMD_spellrepall
, "spellrepall", ex_spellrepall
,
868 EX(CMD_spellundo
, "spellundo", ex_spell
,
869 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
870 EX(CMD_spellwrong
, "spellwrong", ex_spell
,
871 BANG
|RANGE
|NOTADR
|NEEDARG
|EXTRA
|TRLBAR
),
872 EX(CMD_sprevious
, "sprevious", ex_previous
,
873 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
874 EX(CMD_srewind
, "srewind", ex_rewind
,
875 EXTRA
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
876 EX(CMD_stop
, "stop", ex_stop
,
878 EX(CMD_stag
, "stag", ex_stag
,
879 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
880 EX(CMD_startinsert
, "startinsert", ex_startinsert
,
882 EX(CMD_startgreplace
, "startgreplace", ex_startinsert
,
884 EX(CMD_startreplace
, "startreplace", ex_startinsert
,
886 EX(CMD_stopinsert
, "stopinsert", ex_stopinsert
,
888 EX(CMD_stjump
, "stjump", ex_stag
,
890 EX(CMD_stselect
, "stselect", ex_stag
,
892 EX(CMD_sunhide
, "sunhide", ex_buffer_all
,
893 RANGE
|NOTADR
|COUNT
|TRLBAR
),
894 EX(CMD_sunmap
, "sunmap", ex_unmap
,
895 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
896 EX(CMD_sunmenu
, "sunmenu", ex_menu
,
897 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
898 EX(CMD_suspend
, "suspend", ex_stop
,
900 EX(CMD_sview
, "sview", ex_splitview
,
901 NEEDARG
|RANGE
|NOTADR
|BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
902 EX(CMD_swapname
, "swapname", ex_swapname
,
904 EX(CMD_syntax
, "syntax", ex_syntax
,
905 EXTRA
|NOTRLCOM
|CMDWIN
),
906 EX(CMD_syncbind
, "syncbind", ex_syncbind
,
908 EX(CMD_t
, "t", ex_copymove
,
909 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
|MODIFY
),
910 EX(CMD_tNext
, "tNext", ex_tag
,
911 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
912 EX(CMD_tag
, "tag", ex_tag
,
913 RANGE
|NOTADR
|BANG
|WORD1
|TRLBAR
|ZEROR
),
914 EX(CMD_tags
, "tags", do_tags
,
916 EX(CMD_tab
, "tab", ex_wrongmodifier
,
917 NEEDARG
|EXTRA
|NOTRLCOM
),
918 EX(CMD_tabclose
, "tabclose", ex_tabclose
,
919 RANGE
|NOTADR
|COUNT
|BANG
|TRLBAR
|CMDWIN
),
920 EX(CMD_tabdo
, "tabdo", ex_listdo
,
921 NEEDARG
|EXTRA
|NOTRLCOM
),
922 EX(CMD_tabedit
, "tabedit", ex_splitview
,
923 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|TRLBAR
),
924 EX(CMD_tabfind
, "tabfind", ex_splitview
,
925 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|NEEDARG
|TRLBAR
),
926 EX(CMD_tabfirst
, "tabfirst", ex_tabnext
,
928 EX(CMD_tabmove
, "tabmove", ex_tabmove
,
929 RANGE
|NOTADR
|ZEROR
|COUNT
|TRLBAR
|ZEROR
),
930 EX(CMD_tablast
, "tablast", ex_tabnext
,
932 EX(CMD_tabnext
, "tabnext", ex_tabnext
,
933 RANGE
|NOTADR
|COUNT
|TRLBAR
),
934 EX(CMD_tabnew
, "tabnew", ex_splitview
,
935 BANG
|FILE1
|RANGE
|NOTADR
|ZEROR
|EDITCMD
|ARGOPT
|TRLBAR
),
936 EX(CMD_tabonly
, "tabonly", ex_tabonly
,
938 EX(CMD_tabprevious
, "tabprevious", ex_tabnext
,
939 RANGE
|NOTADR
|COUNT
|TRLBAR
),
940 EX(CMD_tabNext
, "tabNext", ex_tabnext
,
941 RANGE
|NOTADR
|COUNT
|TRLBAR
),
942 EX(CMD_tabrewind
, "tabrewind", ex_tabnext
,
944 EX(CMD_tabs
, "tabs", ex_tabs
,
946 EX(CMD_tcl
, "tcl", ex_tcl
,
947 RANGE
|EXTRA
|NEEDARG
|CMDWIN
),
948 EX(CMD_tcldo
, "tcldo", ex_tcldo
,
949 RANGE
|DFLALL
|EXTRA
|NEEDARG
|CMDWIN
),
950 EX(CMD_tclfile
, "tclfile", ex_tclfile
,
951 RANGE
|FILE1
|NEEDARG
|CMDWIN
),
952 EX(CMD_tearoff
, "tearoff", ex_tearoff
,
953 NEEDARG
|EXTRA
|TRLBAR
|NOTRLCOM
|CMDWIN
),
954 EX(CMD_tfirst
, "tfirst", ex_tag
,
955 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
956 EX(CMD_throw
, "throw", ex_throw
,
957 EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
958 EX(CMD_tjump
, "tjump", ex_tag
,
960 EX(CMD_tlast
, "tlast", ex_tag
,
962 EX(CMD_tmenu
, "tmenu", ex_menu
,
963 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
964 EX(CMD_tnext
, "tnext", ex_tag
,
965 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
966 EX(CMD_topleft
, "topleft", ex_wrongmodifier
,
967 NEEDARG
|EXTRA
|NOTRLCOM
),
968 EX(CMD_tprevious
, "tprevious", ex_tag
,
969 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
970 EX(CMD_trewind
, "trewind", ex_tag
,
971 RANGE
|NOTADR
|BANG
|TRLBAR
|ZEROR
),
972 EX(CMD_try
, "try", ex_try
,
973 TRLBAR
|SBOXOK
|CMDWIN
),
974 EX(CMD_tselect
, "tselect", ex_tag
,
976 EX(CMD_tunmenu
, "tunmenu", ex_menu
,
977 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
978 EX(CMD_undo
, "undo", ex_undo
,
979 RANGE
|NOTADR
|COUNT
|ZEROR
|TRLBAR
|CMDWIN
),
980 EX(CMD_undojoin
, "undojoin", ex_undojoin
,
982 EX(CMD_undolist
, "undolist", ex_undolist
,
984 EX(CMD_unabbreviate
, "unabbreviate", ex_abbreviate
,
985 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
986 EX(CMD_unhide
, "unhide", ex_buffer_all
,
987 RANGE
|NOTADR
|COUNT
|TRLBAR
),
988 EX(CMD_unlet
, "unlet", ex_unlet
,
989 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
990 EX(CMD_unlockvar
, "unlockvar", ex_lockvar
,
991 BANG
|EXTRA
|NEEDARG
|SBOXOK
|CMDWIN
),
992 EX(CMD_unmap
, "unmap", ex_unmap
,
993 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
994 EX(CMD_unmenu
, "unmenu", ex_menu
,
995 BANG
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
996 EX(CMD_update
, "update", ex_update
,
997 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
998 EX(CMD_vglobal
, "vglobal", ex_global
,
999 RANGE
|WHOLEFOLD
|EXTRA
|DFLALL
|CMDWIN
),
1000 EX(CMD_version
, "version", ex_version
,
1001 EXTRA
|TRLBAR
|CMDWIN
),
1002 EX(CMD_verbose
, "verbose", ex_wrongmodifier
,
1003 NEEDARG
|RANGE
|NOTADR
|EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
1004 EX(CMD_vertical
, "vertical", ex_wrongmodifier
,
1005 NEEDARG
|EXTRA
|NOTRLCOM
),
1006 EX(CMD_visual
, "visual", ex_edit
,
1007 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
1008 EX(CMD_view
, "view", ex_edit
,
1009 BANG
|FILE1
|EDITCMD
|ARGOPT
|TRLBAR
),
1010 EX(CMD_vimgrep
, "vimgrep", ex_vimgrep
,
1011 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
1012 EX(CMD_vimgrepadd
, "vimgrepadd", ex_vimgrep
,
1013 RANGE
|NOTADR
|BANG
|NEEDARG
|EXTRA
|NOTRLCOM
|TRLBAR
|XFILE
),
1014 EX(CMD_viusage
, "viusage", ex_viusage
,
1016 EX(CMD_vmap
, "vmap", ex_map
,
1017 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1018 EX(CMD_vmapclear
, "vmapclear", ex_mapclear
,
1019 EXTRA
|TRLBAR
|CMDWIN
),
1020 EX(CMD_vmenu
, "vmenu", ex_menu
,
1021 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1022 EX(CMD_vnoremap
, "vnoremap", ex_map
,
1023 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1024 EX(CMD_vnew
, "vnew", ex_splitview
,
1025 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
1026 EX(CMD_vnoremenu
, "vnoremenu", ex_menu
,
1027 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1028 EX(CMD_vsplit
, "vsplit", ex_splitview
,
1029 BANG
|FILE1
|RANGE
|NOTADR
|EDITCMD
|ARGOPT
|TRLBAR
),
1030 EX(CMD_vunmap
, "vunmap", ex_unmap
,
1031 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1032 EX(CMD_vunmenu
, "vunmenu", ex_menu
,
1033 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1034 EX(CMD_write
, "write", ex_write
,
1035 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
|CMDWIN
),
1036 EX(CMD_wNext
, "wNext", ex_wnext
,
1037 RANGE
|WHOLEFOLD
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1038 EX(CMD_wall
, "wall", do_wqall
,
1039 BANG
|TRLBAR
|CMDWIN
),
1040 EX(CMD_while
, "while", ex_while
,
1041 EXTRA
|NOTRLCOM
|SBOXOK
|CMDWIN
),
1042 EX(CMD_winsize
, "winsize", ex_winsize
,
1043 EXTRA
|NEEDARG
|TRLBAR
),
1044 EX(CMD_wincmd
, "wincmd", ex_wincmd
,
1045 NEEDARG
|WORD1
|RANGE
|NOTADR
),
1046 EX(CMD_windo
, "windo", ex_listdo
,
1047 BANG
|NEEDARG
|EXTRA
|NOTRLCOM
),
1048 EX(CMD_winpos
, "winpos", ex_winpos
,
1049 EXTRA
|TRLBAR
|CMDWIN
),
1050 EX(CMD_wnext
, "wnext", ex_wnext
,
1051 RANGE
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1052 EX(CMD_wprevious
, "wprevious", ex_wnext
,
1053 RANGE
|NOTADR
|BANG
|FILE1
|ARGOPT
|TRLBAR
),
1054 EX(CMD_wq
, "wq", ex_exit
,
1055 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
1056 EX(CMD_wqall
, "wqall", do_wqall
,
1057 BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
),
1058 EX(CMD_wsverb
, "wsverb", ex_wsverb
,
1059 EXTRA
|NOTADR
|NEEDARG
),
1060 EX(CMD_wviminfo
, "wviminfo", ex_viminfo
,
1061 BANG
|FILE1
|TRLBAR
|CMDWIN
),
1062 EX(CMD_xit
, "xit", ex_exit
,
1063 RANGE
|WHOLEFOLD
|BANG
|FILE1
|ARGOPT
|DFLALL
|TRLBAR
|CMDWIN
),
1064 EX(CMD_xall
, "xall", do_wqall
,
1066 EX(CMD_xmap
, "xmap", ex_map
,
1067 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1068 EX(CMD_xmapclear
, "xmapclear", ex_mapclear
,
1069 EXTRA
|TRLBAR
|CMDWIN
),
1070 EX(CMD_xmenu
, "xmenu", ex_menu
,
1071 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1072 EX(CMD_xnoremap
, "xnoremap", ex_map
,
1073 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1074 EX(CMD_xnoremenu
, "xnoremenu", ex_menu
,
1075 RANGE
|NOTADR
|ZEROR
|EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1076 EX(CMD_xunmap
, "xunmap", ex_unmap
,
1077 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1078 EX(CMD_xunmenu
, "xunmenu", ex_menu
,
1079 EXTRA
|TRLBAR
|NOTRLCOM
|USECTRLV
|CMDWIN
),
1080 EX(CMD_yank
, "yank", ex_operators
,
1081 RANGE
|WHOLEFOLD
|REGSTR
|COUNT
|TRLBAR
|CMDWIN
),
1082 EX(CMD_z
, "z", ex_z
,
1083 RANGE
|WHOLEFOLD
|EXTRA
|EXFLAGS
|TRLBAR
|CMDWIN
),
1085 /* commands that don't start with a lowercase letter */
1086 EX(CMD_bang
, "!", ex_bang
,
1087 RANGE
|WHOLEFOLD
|BANG
|FILES
|CMDWIN
),
1088 EX(CMD_pound
, "#", ex_print
,
1089 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
1090 EX(CMD_and
, "&", do_sub
,
1091 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
1092 EX(CMD_star
, "*", ex_at
,
1093 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
),
1094 EX(CMD_lshift
, "<", ex_operators
,
1095 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
1096 EX(CMD_equal
, "=", ex_equal
,
1097 RANGE
|TRLBAR
|DFLALL
|EXFLAGS
|CMDWIN
),
1098 EX(CMD_rshift
, ">", ex_operators
,
1099 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
|MODIFY
),
1100 EX(CMD_at
, "@", ex_at
,
1101 RANGE
|WHOLEFOLD
|EXTRA
|TRLBAR
|CMDWIN
),
1102 EX(CMD_Next
, "Next", ex_previous
,
1103 EXTRA
|RANGE
|NOTADR
|COUNT
|BANG
|EDITCMD
|ARGOPT
|TRLBAR
),
1104 EX(CMD_Print
, "Print", ex_print
,
1105 RANGE
|WHOLEFOLD
|COUNT
|EXFLAGS
|TRLBAR
|CMDWIN
),
1106 EX(CMD_X
, "X", ex_X
,
1108 EX(CMD_tilde
, "~", do_sub
,
1109 RANGE
|WHOLEFOLD
|EXTRA
|CMDWIN
|MODIFY
),
1111 #ifndef DO_DECLARE_EXCMD
1112 #ifdef FEAT_USR_CMDS
1113 CMD_SIZE
, /* MUST be after all real commands! */
1114 CMD_USER
= -1, /* User-defined command */
1115 CMD_USER_BUF
= -2 /* User-defined command local to buffer */
1117 CMD_SIZE
/* MUST be the last one! */
1122 #define USER_CMDIDX(idx) ((int)(idx) < 0)
1124 #ifndef DO_DECLARE_EXCMD
1125 typedef enum CMD_index cmdidx_T
;
1128 * Arguments used for Ex commands.
1132 char_u
*arg
; /* argument of the command */
1133 char_u
*nextcmd
; /* next command (NULL if none) */
1134 char_u
*cmd
; /* the name of the command (except for :make) */
1135 char_u
**cmdlinep
; /* pointer to pointer of allocated cmdline */
1136 cmdidx_T cmdidx
; /* the index for the command */
1137 long argt
; /* flags for the command */
1138 int skip
; /* don't execute the command, only parse it */
1139 int forceit
; /* TRUE if ! present */
1140 int addr_count
; /* the number of addresses given */
1141 linenr_T line1
; /* the first line number */
1142 linenr_T line2
; /* the second line number or count */
1143 int flags
; /* extra flags after count: EXFLAG_ */
1144 char_u
*do_ecmd_cmd
; /* +command arg to be used in edited file */
1145 linenr_T do_ecmd_lnum
; /* the line number in an edited file */
1146 int append
; /* TRUE with ":w >>file" command */
1147 int usefilter
; /* TRUE with ":w !command" and ":r!command" */
1148 int amount
; /* number of '>' or '<' for shift command */
1149 int regname
; /* register name (NUL if none) */
1150 int force_bin
; /* 0, FORCE_BIN or FORCE_NOBIN */
1151 int read_edit
; /* ++edit argument */
1152 int force_ff
; /* ++ff= argument (index in cmd[]) */
1154 int force_enc
; /* ++enc= argument (index in cmd[]) */
1155 int bad_char
; /* ++bad= argument (index in cmd[]) */
1157 #ifdef FEAT_USR_CMDS
1158 int useridx
; /* user command index */
1160 char_u
*errmsg
; /* returned error message */
1161 char_u
*(*getline
) __ARGS((int, void *, int));
1162 void *cookie
; /* argument for getline() */
1164 struct condstack
*cstack
; /* condition stack for ":if" etc. */
1168 #define FORCE_BIN 1 /* ":edit ++bin file" */
1169 #define FORCE_NOBIN 2 /* ":edit ++nobin file" */
1171 /* Values for "flags" */
1172 #define EXFLAG_LIST 0x01 /* 'l': list */
1173 #define EXFLAG_NR 0x02 /* '#': number */
1174 #define EXFLAG_PRINT 0x04 /* 'p': print */