Lines Matching refs:command
9 command! -nargs=* MyCmd let g:mods = '<mods>'
100 command! -nargs=* MyQCmd let g:mods .= '<q-mods> '
115 command -nargs=* TestFArgs call SaveCmdArgs(<f-args>)
136 command -nargs=* TestQArgs call SaveCmdArgs(<q-args>)
157 command -nargs=* -reg TestRegArg call SaveCmdArgs("<reg>", "<register>")
169 command -nargs=* TestNoArg call SaveCmdArgs("<args>", "<>", "<x>", "<lt>")
181 command -range TestRangeArg call SaveCmdArgs(<range>, <line1>, <line2>)
202 command Doit let g:didit = 'yes'
203 command Dothat let g:didthat = 'also'
221 call writefile(['command ExistingCommand echo "yes"'], 'Xcommandexists')
225 " Redefining a command when reloading a script is OK.
230 call writefile(['command ExistingCommand echo "yes"'], 'Xcommandexists2')
238 \ 'command ExistingCommand echo "yes"',
239 \ 'command ExistingCommand echo "no"',
250 au CmdUndefined Doit :command Doit let g:didit = 'yes'
334 call assert_equal('"com -complete=color command compiler', @:)
336 command! DoCmd1 :
337 command! DoCmd2 :
396 command! -nargs=* -complete=custom,CallExecute DoExec :
403 command! -addr=lines DoSomething let g:a1 = <line1> | let g:a2 = <line2>
408 command! -addr=arguments DoSomething let g:a1 = <line1> | let g:a2 = <line2>
414 command! -addr=buffers DoSomething let g:a1 = <line1> | let g:a2 = <line2>
424 command! -addr=loaded_buffers DoSomething let g:a1 = <line1> | let g:a2 = <line2>
439 command! -addr=windows DoSomething let g:a1 = <line1> | let g:a2 = <line2>
446 command! -addr=tabs DoSomething let g:a1 = <line1> | let g:a2 = <line2>
453 command! -addr=other DoSomething let g:a1 = <line1> | let g:a2 = <line2>
465 command! DoCmd :
468 \ execute('command DoCmd'))
471 command! -range DoCmd :
474 \ execute('command DoCmd'))
475 command! -range=% DoCmd :
478 \ execute('command! DoCmd'))
479 command! -range=2 DoCmd :
482 \ execute('command DoCmd'))
483 command! -count=2 DoCmd :
486 \ execute('command DoCmd'))
489 command! -addr=lines DoCmd :
492 \ execute('command DoCmd'))
493 command! -addr=arguments DoCmd :
496 \ execute('command DoCmd'))
497 command! -addr=buffers DoCmd :
500 \ execute('command DoCmd'))
501 command! -addr=loaded_buffers DoCmd :
504 \ execute('command DoCmd'))
505 command! -addr=windows DoCmd :
508 \ execute('command DoCmd'))
509 command! -addr=tabs DoCmd :
512 \ execute('command DoCmd'))
513 command! -addr=other DoCmd :
516 \ execute('command DoCmd'))
519 command! -nargs=1 -complete=arglist DoCmd :
522 \ execute('command DoCmd'))
523 command! -nargs=* -complete=augroup DoCmd :
526 \ execute('command DoCmd'))
527 command! -nargs=? -complete=custom,CustomComplete DoCmd :
530 \ execute('command DoCmd'))
531 command! -nargs=+ -complete=customlist,CustomComplete DoCmd :
534 \ execute('command DoCmd'))
537 command! -nargs=0 DoCmd :
540 \ execute('command DoCmd'))
541 command! -nargs=1 DoCmd :
544 \ execute('command DoCmd'))
545 command! -nargs=* DoCmd :
548 \ execute('command DoCmd'))
549 command! -nargs=? DoCmd :
552 \ execute('command DoCmd'))
553 command! -nargs=+ DoCmd :
556 \ execute('command DoCmd'))
559 command! -bang DoCmd :
562 \ execute('command DoCmd'))
563 command! -bar DoCmd :
566 \ execute('command DoCmd'))
567 command! -register DoCmd :
570 \ execute('command DoCmd'))
571 command! -buffer DoCmd :
575 \ execute('command DoCmd'))
579 …command! -bang -bar -register -buffer -nargs=+ -complete=environment -addr=windows -count=3 DoCmd :
582 \ execute('command DoCmd'))
585 " Test with special characters in command definition.
586 command! DoCmd :<cr><tab><c-d>
589 \ execute('command DoCmd'))
592 command! DoCmd :
597 \ execute('verbose command DoCmd'))
600 call assert_equal("\nNo user-defined commands found", execute(':command Xxx'))
601 call assert_equal("\nNo user-defined commands found", execute('command'))
609 command -nargs=* -complete=customlist,T1 TCmd1
618 command -nargs=* -complete=customlist,T2 TCmd2
626 command DoSomething {
638 command DoMap {
645 command DoesNotEnd {
651 command BarCommand {
660 command Global echo 'global'
661 command -buffer OneBuffer echo 'one'
663 command -buffer TwoBuffer echo 'two'