diff --git a/autoload/ctrlp/colorscheme.vim b/autoload/ctrlp/colorscheme.vim index 3599daf..7ec893d 100644 --- a/autoload/ctrlp/colorscheme.vim +++ b/autoload/ctrlp/colorscheme.vim @@ -75,7 +75,11 @@ endfunction " function! ctrlp#colorscheme#accept(mode, str) call ctrlp#exit() - execute 'colorscheme' a:str + if exists('g:ctrlp_ext_color_command') + execute g:ctrlp_ext_color_command a:str + else + execute 'colorscheme' a:str + endif endfunction