Lines Matching refs:cmd

22 static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, char_u *cmd, int do_in, int do_…
990 char_u *cmd = vim_strsave_escaped(prevcmd, (char_u *)"%#"); in do_bang() local
992 if (cmd != NULL) in do_bang()
994 AppendToRedobuffLit(cmd, -1); in do_bang()
995 vim_free(cmd); in do_bang()
1058 char_u *cmd, in do_filter() argument
1077 if (*cmd == NUL) // no filter command in do_filter()
1167 cmd_buf = make_filter_cmd(cmd, itmp, otmp); in do_filter()
1354 char_u *cmd, in do_shell() argument
1381 if (cmd != NULL) in do_shell()
1382 keep_termcap = winstart = (STRNICMP(cmd, "start ", 6) == 0); in do_shell()
1428 (void)call_shell(cmd, SHELL_COOKED | flags); in do_shell()
1460 if (cmd == NULL in do_shell()
1524 find_pipe(char_u *cmd) in find_pipe() argument
1529 for (p = cmd; *p != NUL; ++p) in find_pipe()
1549 char_u *cmd, // command in make_filter_cmd() argument
1567 len = (long_u)STRLEN(cmd) + 13; // "begin; " + "; end" + NUL in make_filter_cmd()
1570 len = (long_u)STRLEN(cmd) + 3; // "()" + NUL in make_filter_cmd()
1587 vim_snprintf((char *)buf, len, "begin; %s; end", (char *)cmd); in make_filter_cmd()
1589 vim_snprintf((char *)buf, len, "(%s)", (char *)cmd); in make_filter_cmd()
1592 STRCPY(buf, cmd); in make_filter_cmd()
1604 vim_snprintf((char *)buf, len, "(%s)", (char *)cmd); in make_filter_cmd()
1606 STRCPY(buf, cmd); in make_filter_cmd()
1615 STRCPY(buf, cmd); in make_filter_cmd()
1633 p = find_pipe(cmd); in make_filter_cmd()
2217 if (eap->cmd[1] == 'n') in ex_wnext()
3695 char_u *cmd; in ex_substitute() local
3711 cmd = eap->arg; in ex_substitute()
3725 if (eap->cmd[0] == 's' && *cmd != NUL && !VIM_ISWHITE(*cmd) in ex_substitute()
3726 && vim_strchr((char_u *)"0123456789cegriIp|\"", *cmd) == NULL) in ex_substitute()
3729 if (check_regexp_delim(*cmd) == FAIL) in ex_substitute()
3732 if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg) in ex_substitute()
3742 if (*cmd == '\\') in ex_substitute()
3744 ++cmd; in ex_substitute()
3745 if (vim_strchr((char_u *)"/?&", *cmd) == NULL) in ex_substitute()
3750 if (*cmd != '&') in ex_substitute()
3753 delimiter = *cmd++; // remember delimiter character in ex_substitute()
3758 delimiter = *cmd++; // remember delimiter character in ex_substitute()
3759 pat = cmd; // remember start of search pat in ex_substitute()
3760 cmd = skip_regexp_ex(cmd, delimiter, magic_isset(), in ex_substitute()
3762 if (cmd[0] == delimiter) // end delimiter found in ex_substitute()
3763 *cmd++ = NUL; // replace it with a NUL in ex_substitute()
3770 sub = cmd; // remember the start of the substitution 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()
3822 if (*cmd == 'l') in ex_substitute()
3824 else if (*cmd == '#') in ex_substitute()
3826 else if (*cmd == 'p') in ex_substitute()
3854 if (*cmd == '&') in ex_substitute()
3855 ++cmd; in ex_substitute()
3882 while (*cmd) in ex_substitute()
3888 if (*cmd == 'g') in ex_substitute()
3890 else if (*cmd == 'c') in ex_substitute()
3892 else if (*cmd == 'n') in ex_substitute()
3894 else if (*cmd == 'e') in ex_substitute()
3896 else if (*cmd == 'r') // use last used regexp in ex_substitute()
3898 else if (*cmd == 'p') in ex_substitute()
3900 else if (*cmd == '#') in ex_substitute()
3905 else if (*cmd == 'l') in ex_substitute()
3910 else if (*cmd == 'i') // ignore case in ex_substitute()
3912 else if (*cmd == 'I') // don't ignore case in ex_substitute()
3916 ++cmd; in ex_substitute()
3927 cmd = skipwhite(cmd); in ex_substitute()
3928 if (VIM_ISDIGIT(*cmd)) in ex_substitute()
3930 i = getdigits(&cmd); in ex_substitute()
3945 cmd = skipwhite(cmd); in ex_substitute()
3946 if (*cmd && *cmd != '"') // if not end-of-line or comment in ex_substitute()
3948 set_nextcmd(eap, cmd); in ex_substitute()
3951 semsg(_(e_trailing_arg), cmd); in ex_substitute()
4854 global_exe_one(char_u *cmd, linenr_T lnum) in global_exe_one() argument
4858 if (*cmd == NUL || *cmd == '\n') in global_exe_one()
4861 do_cmdline(cmd, NULL, NULL, DOCMD_NOWAIT); in global_exe_one()
4886 char_u *cmd; // command argument in ex_global() local
4907 type = *eap->cmd; in ex_global()
4908 cmd = eap->arg; in ex_global()
4912 if (in_vim9script() && check_global_and_subst(eap->cmd, eap->arg) == FAIL) in ex_global()
4921 if (*cmd == '\\') in ex_global()
4923 ++cmd; in ex_global()
4924 if (vim_strchr((char_u *)"/?&", *cmd) == NULL) in ex_global()
4929 if (*cmd == '&') in ex_global()
4933 ++cmd; in ex_global()
4936 else if (*cmd == NUL) in ex_global()
4941 else if (check_regexp_delim(*cmd) == FAIL) in ex_global()
4947 delim = *cmd; // get the delimiter in ex_global()
4949 ++cmd; // skip delimiter if there is one in ex_global()
4950 pat = cmd; // remember start of pattern in ex_global()
4951 cmd = skip_regexp_ex(cmd, delim, magic_isset(), &eap->arg, NULL, NULL); in ex_global()
4952 if (cmd[0] == delim) // end delimiter found in ex_global()
4953 *cmd++ = NUL; // replace it with a NUL in ex_global()
4968 global_exe_one(cmd, lnum); in ex_global()
5005 global_exe(cmd); in ex_global()
5021 global_exe(char_u *cmd) in global_exe() argument
5044 global_exe_one(cmd, lnum); in global_exe()
5296 eap->cmd[0] = 's'; in ex_drop()