Lines Matching refs:new_rtp
483 char_u *new_rtp; in add_pack_dir_to_rtp() local
566 new_rtp = alloc(oldlen + addlen + afterlen + 1); // add one for NUL in add_pack_dir_to_rtp()
567 if (new_rtp == NULL) in add_pack_dir_to_rtp()
573 mch_memmove(new_rtp, p_rtp, keep); in add_pack_dir_to_rtp()
576 new_rtp[new_rtp_len++] = ','; // add comma before in add_pack_dir_to_rtp()
577 mch_memmove(new_rtp + new_rtp_len, fname, addlen - 1); in add_pack_dir_to_rtp()
580 new_rtp[new_rtp_len++] = ','; // add comma after in add_pack_dir_to_rtp()
587 mch_memmove(new_rtp + new_rtp_len, p_rtp + keep, in add_pack_dir_to_rtp()
590 mch_memmove(new_rtp + new_rtp_len, afterdir, afterlen - 1); in add_pack_dir_to_rtp()
592 new_rtp[new_rtp_len++] = ','; in add_pack_dir_to_rtp()
598 mch_memmove(new_rtp + new_rtp_len, p_rtp + keep, oldlen - keep + 1); in add_pack_dir_to_rtp()
600 new_rtp[new_rtp_len] = NUL; in add_pack_dir_to_rtp()
606 STRCAT(new_rtp, ","); in add_pack_dir_to_rtp()
607 STRCAT(new_rtp, afterdir); in add_pack_dir_to_rtp()
610 set_option_value((char_u *)"rtp", 0L, new_rtp, 0); in add_pack_dir_to_rtp()
611 vim_free(new_rtp); in add_pack_dir_to_rtp()