Lines Matching refs:rhs
212 char_u *rhs, in map_add() argument
241 mp->m_str = vim_strsave(rhs); in map_add()
335 char_u *rhs; in do_map() local
453 rhs = p; in do_map()
454 hasarg = (*rhs != NUL); in do_map()
487 orig_rhs = rhs; in do_map()
490 if (STRICMP(rhs, "<nop>") == 0) // "<Nop>" means nothing in do_map()
491 rhs = (char_u *)""; in do_map()
493 rhs = replace_termcodes(rhs, &arg_buf, in do_map()
760 char_u *newstr = vim_strsave(rhs); in do_map()
842 if (map_add(map_table, abbr_table, keys, rhs, orig_rhs, in do_map()
1031 char_u *rhs; in map_to_exists() local
1035 rhs = replace_termcodes(str, &buf, REPTERM_DO_LT, NULL); in map_to_exists()
1037 retval = map_to_exists_mode(rhs, mode_str2flags(modechars), abbr); in map_to_exists()
1049 map_to_exists_mode(char_u *rhs, int mode, int abbr) in map_to_exists_mode() argument
1078 && strstr((char *)mp->m_str, (char *)rhs) != NULL) in map_to_exists_mode()
2197 char_u *rhs; in get_maparg() local
2232 rhs = check_map(keys_simplified, mode, exact, FALSE, abbr, in get_maparg()
2242 rhs = check_map(alt_keys_buf, mode, exact, FALSE, abbr, &mp, in get_maparg()
2249 if (rhs != NULL) in get_maparg()
2251 if (*rhs == NUL) in get_maparg()
2254 rettv->vval.v_string = str2special_save(rhs, FALSE); in get_maparg()
2258 else if (rettv_dict_alloc(rettv) != FAIL && rhs != NULL) in get_maparg()
2339 char_u *rhs; in f_mapset() local
2376 rhs = dict_get_string(d, (char_u *)"rhs", FALSE); in f_mapset()
2377 if (lhs == NULL || lhsraw == NULL || rhs == NULL) in f_mapset()
2382 orig_rhs = rhs; in f_mapset()
2383 rhs = replace_termcodes(rhs, &arg_buf, in f_mapset()
2421 (void)map_add(map_table, abbr_table, lhsraw, rhs, orig_rhs, noremap, in f_mapset()
2424 (void)map_add(map_table, abbr_table, lhsrawalt, rhs, orig_rhs, noremap, in f_mapset()