implement vim_name_to_color function