function! has#colorscheme(name) abort let pat = 'colors/'.a:name.'.vim' return !empty(globpath(&rtp, pat)) endfunction