Lines Matching refs:arg
237 char_u *arg = arg_in; in set_context_in_user_cmd() local
241 while (*arg == '-') in set_context_in_user_cmd()
243 arg++; // Skip "-" in set_context_in_user_cmd()
244 p = skiptowhite(arg); in set_context_in_user_cmd()
248 p = vim_strchr(arg, '='); in set_context_in_user_cmd()
253 xp->xp_pattern = arg; in set_context_in_user_cmd()
259 if (STRNICMP(arg, "complete", p - arg) == 0) in set_context_in_user_cmd()
265 else if (STRNICMP(arg, "nargs", p - arg) == 0) in set_context_in_user_cmd()
271 else if (STRNICMP(arg, "addr", p - arg) == 0) in set_context_in_user_cmd()
279 arg = skipwhite(p); in set_context_in_user_cmd()
283 p = skiptowhite(arg); in set_context_in_user_cmd()
287 xp->xp_pattern = arg; in set_context_in_user_cmd()
643 char_u *arg = NULL; in parse_compl_arg() local
655 arg = &value[i + 1]; in parse_compl_arg()
687 && arg != NULL) in parse_compl_arg()
689 if (arg != NULL) in parse_compl_arg()
698 && arg == NULL) in parse_compl_arg()
704 if (arg != NULL) in parse_compl_arg()
705 *compl_arg = vim_strnsave(arg, arglen); in parse_compl_arg()
1013 if (*p == '{' && ends_excmd2(eap->arg, skipwhite(p + 1)) in may_get_cmd_block()
1065 int has_attr = (eap->arg[0] == '-'); in ex_command()
1068 p = eap->arg; in ex_command()
1086 if (!ends_excmd2(eap->arg, p) && !VIM_ISWHITE(*p)) in ex_command()
1097 if (!has_attr && ends_excmd2(eap->arg, p)) in ex_command()
1171 char_u *arg = eap->arg; in ex_delcommand() local
1174 if (STRNCMP(arg, "-buffer", 7) == 0 && VIM_ISWHITE(arg[7])) in ex_delcommand()
1177 arg = skipwhite(arg + 7); in ex_delcommand()
1186 res = STRCMP(arg, cmd->uc_name); in ex_delcommand()
1199 : e_no_such_user_defined_command_str), arg); in ex_delcommand()
1219 uc_split_args(char_u *arg, size_t *lenp) in uc_split_args() argument
1227 p = arg; in uc_split_args()
1270 p = arg; in uc_split_args()
1500 if (*eap->arg == NUL) in uc_check_code()
1521 result = STRLEN(eap->arg); in uc_check_code()
1523 STRCPY(buf, eap->arg); in uc_check_code()
1526 result = STRLEN(eap->arg) + 2; in uc_check_code()
1527 for (p = eap->arg; *p; ++p) in uc_check_code()
1541 for (p = eap->arg; *p; ++p) in uc_check_code()
1559 *split_buf = uc_split_args(eap->arg, split_len); in uc_check_code()