From a880b60cb82f73abf02597c6603f3d2d5efcf0a0 Mon Sep 17 00:00:00 2001 From: Leonardo Valeri Manera Date: Sat, 27 May 2017 11:58:37 +0200 Subject: [PATCH] Add support for a custom command instead of :colorscheme --- autoload/ctrlp/colorscheme.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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