| /vim-8.2.3635/src/testdir/ |
| H A D | test_channel.py | 77 cmd = '"unterminated string' 85 cmd = '["ex","missing ]"' 93 cmd = '["ex","let ' 97 cmd = 'g:split = 123"]' 123 cmd = '["ex","foo bar"]' 153 cmd = '["expr","xxx", -4]' 166 cmd = '["expr","xxx"]' 182 cmd = '["redraw",""]' 187 cmd = '["redraw","force"]' 192 cmd = '[]' [all …]
|
| H A D | shared.vim | 49 exe 'silent !start cmd /c start "test_channel" ' . a:cmd 117 let cmd = substitute(a:cmd, ".py", '', '') 264 let cmd = substitute(cmd, '-u \f\+', '-u ' . name, '') 266 let cmd = cmd . ' -u ' . name 269 let cmd = substitute(cmd, 'VIMRUNTIME=\S\+', '', '') 277 return cmd 283 let cmd = substitute(cmd, '-u NONE', '--clean', '') 284 let cmd = substitute(cmd, '--not-a-term', '', '') 287 let cmd ..= ' --cmd "set enc=utf8" ' 292 return cmd [all …]
|
| H A D | test_system.vim | 59 let a = system(GetVimCommand() . cmd) 67 let a = system(GetVimCommand() . cmd) 71 let cmd = ' -es -c "source Xscript" +q' 72 let a = system(GetVimCommand() . cmd) 77 let cmd = ' -es -c "call doesnotexist()" +q; echo $?' 78 let a = system(GetVimCommand() . cmd) 82 let cmd = ' -es -c "call doesnotexist()" +q' 83 let a = system(GetVimCommand(). cmd) 88 let a = system(GetVimCommand() . cmd) 92 let cmd = ' -es -c "call doesnotexist()|let a=1" +q' [all …]
|
| H A D | test_sort.vim | 90 \ 'cmd' : '%sort', 126 \ 'cmd' : '%sort n', 170 \ 'cmd' : '%sort x', 206 \ 'cmd' : '%sort u', 241 \ 'cmd' : '%sort!', 313 \ 'cmd' : 'sort! u', 348 \ 'cmd' : 'sort o', 388 \ 'cmd' : 'sort! x', 1186 \ 'cmd' : 'sort', 1215 \ 'cmd' : 'sort', [all …]
|
| H A D | test_terminal.vim | 242 let buf = term_start(cmd) 320 let cmd = 'cmd /c "type Xtext"' 322 let cmd = "cat Xtext" 324 let buf = term_start(cmd) 553 let cmd = 'sleep 1' 556 return [cmd, waittime] 631 let cmd = 'cmd /c cd' 634 let cmd = 'pwd' 975 let cmd = "cmd /K chcp 65001" 978 let cmd = &shell [all …]
|
| H A D | test_substitute.vim | 53 \ { 'cmd': ':s/foo/bar/ce', 'exp': ln }, 58 \ { 'cmd': ':s/t/r/cn', 'exp': ln }, 63 \ { 'cmd': ':s/foo/bar/ge', 'exp': ln }, 67 \ { 'cmd': ':s/t/r/gn', 'exp': ln }, 72 \ { 'cmd': ':s/foo/bar/ie', 'exp': ln }, 75 \ { 'cmd': ':s/t/r/in', 'exp': ln }, 79 \ { 'cmd': ':s/foo/bar/Ie', 'exp': ln }, 99 let cmd = var.cmd 100 if run == 2 && cmd =~ "/.*/.*/." 102 let cmd = substitute(cmd, '/.*/', '', '') [all …]
|
| H A D | test_clientserver.vim | 30 let cmd = GetVimCommand() 31 if cmd == '' 37 let cmd .= ' --servername ' . name 85 call system(cmd) 89 call system(cmd) 129 let cmd = GetVimProg() .. ' --servername ' .. name 133 call system(cmd .. ' --remote-send ":new Xfile<CR>"') 140 let l = system(cmd .. ' --remote-expr "2 + 2"') 144 call system(cmd .. ' --remote Xfile1 Xfile2 Xfile3') 156 call system(cmd .. ' --remote-wait +enew Xfile1') [all …]
|
| H A D | test_shell.vim | 26 let shells += [['cmd', '/c', '>%s 2>&1', '', '>%s 2>&1', '"&|<>()@^', ''], 27 \ ['cmd.exe', '/c', '>%s 2>&1', '', '>%s 2>&1', '"&|<>()@^', '('], 55 if RunVim([], after, '--cmd "set shell=' .. e[0] .. '"') 64 let str1 = "'cmd \"arg1\" '\\''arg2'\\'' \\!%# \\'\\'' \\\\! \\% \\#'" 68 let str1 = "'cmd \"arg1\" ''arg2'' !%# \\'' \\! \\% \\#'" 69 let str2 = "'cmd \"arg1\" ''arg2'' \\!\\%\\# \\'' \\\\! \\\\% \\\\#'" 71 let str1 = "'cmd \"arg1\" '\\''arg2'\\'' !%# \\\\'\\'' \\\\! \\\\% \\\\#'" 74 let str1 = "'cmd \"arg1\" '\\''arg2'\\'' !%# \\'\\'' \\! \\% \\#'" 163 let shells = [['cmd', '/c', '\\', '/'], 224 let $SHELL = 'C:\with space\cmd.exe' [all …]
|
| H A D | test_prompt_buffer.vim | 47 \ 'eval bufnr("")->prompt_setprompt("cmd: ")', 58 call WaitForAssert({-> assert_equal('cmd:', term_getline(buf, 1))}) 61 call WaitForAssert({-> assert_equal('cmd: hello', term_getline(buf, 1))}) 78 call WaitForAssert({-> assert_equal('cmd:', term_getline(buf, 1))}) 82 call WaitForAssert({-> assert_equal('cmd: hel', term_getline(buf, 1))}) 86 call WaitForAssert({-> assert_equal('cmd: -hel', term_getline(buf, 1))}) 89 call WaitForAssert({-> assert_equal('cmd: -hzel', term_getline(buf, 1))}) 93 call WaitForAssert({-> assert_equal('cmd: -hzelx', term_getline(buf, 1))}) 207 call prompt_setprompt( bufnr(), 'cmd:' ) 218 call WaitForAssert({-> assert_equal('cmd:', term_getline(buf, 1))}) [all …]
|
| H A D | test_cscope.vim | 43 let a = execute(cmd) 51 for cmd in ['cs find g test_mf_hash', 54 exe cmd 60 let a = execute(cmd) 67 let a = execute(cmd) 74 let a = execute(cmd) 82 let a = execute(cmd) 105 let a = execute(cmd) 113 let a = execute(cmd) 133 let a = execute(cmd) [all …]
|
| H A D | test_taglist.vim | 27 call assert_equal('3', kindly[0]['cmd']) 35 let cmd = taglist("Command") 36 call assert_equal(1, len(cmd)) 37 call assert_equal('d', cmd[0]['kind']) 38 call assert_equal('call cursor(3, 4)', cmd[0]['cmd']) 60 \ map(taglist('set_signals'), {i, v -> [v.name, v.cmd]})) 79 \ map(taglist('set_signals'), {i, v -> [v.name, v.cmd]})) 154 \ 'cmd' : 'call cursor(3, 4)', 173 \ 'cmd' : '4', 193 \ 'cmd' : '6;/^Func1/',
|
| /vim-8.2.3635/src/ |
| H A D | ex_docmd.c | 1820 cmd = ea.cmd; in do_one_cmd() 1844 if (ea.cmd == cmd + 1 && *cmd == '$') in do_one_cmd() 1945 ea.cmd = cmd; in do_one_cmd() 1961 ea.cmd = skipwhite(ea.cmd); in do_one_cmd() 1963 ea.cmd = skipwhite(ea.cmd + 1); in do_one_cmd() 3763 char_u *cmd = vim_strnsave(eap->cmd, p - eap->cmd); in find_ex_command() local 3956 if (cmd[1] == '?' || cmd[1] == '/' || cmd[1] == '&') in skip_range() 3981 cmd = skipwhite(cmd + 1); in skip_range() 3985 cmd = skipwhite(cmd + 1); in skip_range() 4330 cmd = skipwhite(cmd); in get_address() [all …]
|
| H A D | usercmd.c | 154 cp = eap->cmd; in find_ucmd() 417 ucmd_T *cmd; in uc_list() local 893 ucmd_T *cmd = NULL; in uc_add_command() local 974 mch_memmove(cmd + 1, cmd, (gap->ga_len - i) * sizeof(ucmd_T)); in uc_add_command() 978 cmd->uc_name = p; in uc_add_command() 983 cmd->uc_def = def; in uc_add_command() 1147 ucmd_T *cmd; in uc_clear() local 1153 vim_free(cmd->uc_rep); in uc_clear() 1168 ucmd_T *cmd = NULL; in ex_delcommand() local 1212 mch_memmove(cmd, cmd + 1, (gap->ga_len - i) * sizeof(ucmd_T)); in ex_delcommand() [all …]
|
| H A D | link.sh | 16 echo "$LINK " >link.cmd 21 cat link.cmd 22 if sh link.cmd; then 52 cat link.cmd 53 if sh link.cmd; then 55 cp link.cmd linkit.sh 81 cp link.cmd linkit.sh 85 cp link.cmd linkit.sh 89 cp link.cmd linkit.sh 126 cat link.cmd [all …]
|
| H A D | netbeans.c | 446 nb_parse_cmd(char_u *cmd) in nb_parse_cmd() argument 463 if (STRCMP(cmd, "DETACH") == 0) in nb_parse_cmd() 983 char_u *cmd, in nb_do_cmd() argument 1621 if (*cmd != 'p') in nb_do_cmd() 1695 exarg.cmd = (char_u *)"goto"; in nb_do_cmd() 2044 else if (streq((char *)cmd, "guard") || streq((char *)cmd, "unguard")) in nb_do_cmd() 2050 int un = (cmd[0] == 'u'); in nb_do_cmd() 2090 cmd, off + len - 1)); in nb_do_cmd() 2269 coloncmd(char *cmd, ...) in coloncmd() argument 2274 va_start(ap, cmd); in coloncmd() [all …]
|
| H A D | ex_cmds.c | 3725 if (eap->cmd[0] == 's' && *cmd != NUL && !VIM_ISWHITE(*cmd) in ex_substitute() 3771 cmd = skip_substitute(cmd, delimiter); in ex_substitute() 3814 && (*cmd == NUL || (cmd[1] == NUL && (*cmd == 'g' || *cmd == 'l' in ex_substitute() 3815 || *cmd == 'p' || *cmd == '#')))) in ex_substitute() 3855 ++cmd; in ex_substitute() 3916 ++cmd; in ex_substitute() 3927 cmd = skipwhite(cmd); in ex_substitute() 3945 cmd = skipwhite(cmd); in ex_substitute() 4858 if (*cmd == NUL || *cmd == '\n') in global_exe_one() 4923 ++cmd; in ex_global() [all …]
|
| H A D | autocmd.c | 882 cmd = pat; in do_autocmd() 883 while (*cmd && (!VIM_ISWHITE(*cmd) || cmd[-1] == '\\')) in do_autocmd() 884 cmd++; in do_autocmd() 885 if (*cmd) in do_autocmd() 905 cmd = skipwhite(cmd); in do_autocmd() 916 cmd = skipwhite(cmd + 6); in do_autocmd() 925 cmd = skipwhite(cmd + 8); in do_autocmd() 934 cmd = skipwhite(cmd + 6); in do_autocmd() 947 cmd = may_get_cmd_block(eap, cmd, &tofree, &flags); in do_autocmd() 949 cmd = expand_sfile(cmd); in do_autocmd() [all …]
|
| H A D | vimrun.c | 30 wchar_t *cmd; in main() local 75 cmd = NULL; in main() 80 cmd = malloc(cmdlen * sizeof(wchar_t)); in main() 81 if (cmd == NULL) in main() 86 _snwprintf(cmd, cmdlen, L"(%s)", p); in main() 87 p = cmd; in main() 95 if (cmd) in main() 96 free(cmd); in main()
|
| H A D | cmdexpand.c | 986 for (cmd = buff; vim_strchr((char_u *)" \t:|", *cmd) != NULL; cmd++) in set_one_cmd_context() 999 cmd = skip_range(cmd, TRUE, &xp->xp_context); in set_one_cmd_context() 1009 if (*cmd == '|' || *cmd == '\n') in set_one_cmd_context() 1017 if (*cmd == 'k' && cmd[1] != 'e') in set_one_cmd_context() 1020 p = cmd + 1; in set_one_cmd_context() 1024 p = cmd; in set_one_cmd_context() 1029 if (ASCII_ISUPPER(cmd[0]) || STRNCMP("vim9", cmd, 4) == 0) in set_one_cmd_context() 1033 if (cmd[0] == 'p' && cmd[1] == 'y' && p == cmd + 2 && *p == '3') in set_one_cmd_context() 1052 if (cmd[0] >= 'A' && cmd[0] <= 'Z') in set_one_cmd_context() 1069 else if (cmd[0] >= 'A' && cmd[0] <= 'Z') in set_one_cmd_context() [all …]
|
| H A D | vim9script.c | 180 char_u *cmd = eap->cmd; in ex_incdec() local 182 size_t len = STRLEN(eap->cmd) + 8; in ex_incdec() 184 if (VIM_ISWHITE(cmd[2])) in ex_incdec() 193 eap->cmd = alloc(len); in ex_incdec() 194 if (eap->cmd == NULL) in ex_incdec() 196 vim_snprintf((char *)eap->cmd, len, "%s %c= 1 |", cmd + 2, in ex_incdec() 198 eap->arg = eap->cmd; in ex_incdec() 202 vim_free(eap->cmd); in ex_incdec() 203 eap->cmd = cmd; in ex_incdec() 222 eap->cmd = eap->arg; in ex_export() [all …]
|
| H A D | terminal.c | 578 char_u *cmd, *p; in term_start() local 652 if (cmd != NULL && STRCMP(cmd, p_sh) != 0) in term_start() 763 char_u *cmd; in ex_terminal() local 768 cmd = eap->arg; in ex_terminal() 769 while (*cmd == '+' && *(cmd + 1) == '+') in ex_terminal() 773 cmd += 2; in ex_terminal() 845 else if ((int)(p - cmd) == 4 && STRNICMP(cmd, "type", 4) == 0 in ex_terminal() 918 cmd = newcmd; in ex_terminal() 6319 char_u *cmd; in f_term_setrestore() local 6612 if (cmd == NULL || *cmd == NUL) in conpty_term_and_job_init() [all …]
|
| H A D | if_cscope.c | 711 char *cmd; in cs_create_cmd() local 762 return cmd; in cs_create_cmd() 912 (void)strcat(cmd, " -P"); in cs_create_connection() 917 (void)strcat(cmd, " "); in cs_create_connection() 970 vim_free(cmd); in cs_create_connection() 1060 char *cmd; in cs_find_common() local 1126 if (cmd == NULL) in cs_find_common() 1132 vim_free(cmd); in cs_find_common() 1158 vim_free(cmd); in cs_find_common() 1617 mcmd_e cmd) in cs_manage_matches() argument [all …]
|
| /vim-8.2.3635/runtime/autoload/ |
| H A D | gzip.vim | 8 " The result is cached in s:have_"cmd" for speed. 9 fun s:check(cmd) argument 45 fun gzip#read(cmd) argument 47 if !s:check(a:cmd) 53 if a:cmd[0] == 'g' 89 call system(a:cmd . " " . s:escape(tmpe)) 154 fun gzip#write(cmd) argument 158 elseif s:check(a:cmd) 174 fun gzip#appre(cmd) argument 176 if s:check(a:cmd) [all …]
|
| /vim-8.2.3635/src/proto/ |
| H A D | ex_docmd.pro | 3 int do_cmdline_cmd(char_u *cmd); 10 int checkforcmd(char_u **pp, char *cmd, int len); 11 int checkforcmd_noparen(char_u **pp, char *cmd, int len); 19 char_u *find_ex_command(exarg_T *eap, int *full, int (*lookup)(char_u *, size_t, int cmd, cctx_T *)… 20 int modifier_len(char_u *cmd); 23 cmdidx_T excmd_get_cmdidx(char_u *cmd, int len); 25 char_u *skip_range(char_u *cmd, int skip_star, int *ctx); 32 int ends_excmd2(char_u *cmd_start, char_u *cmd); 60 void exec_normal_cmd(char_u *cmd, int remap, int silent);
|
| /vim-8.2.3635/runtime/doc/ |
| H A D | windows.txt | 217 loaded |+cmd|. 251 :vert[ical] {cmd} 273 :to[pleft] {cmd} 281 :bo[tright] {cmd} 749 :{cmd} 751 :{cmd} 770 :{cmd} 772 :{cmd} 1206 Also see |+cmd|. 1218 Also see |+cmd|. [all …]
|