From dc1662548c3fe65f5bd482c79f2893b19ee2492e Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Sun, 9 Jun 2019 22:33:46 +0800 Subject: [PATCH] Fix ctrlp config (#2879) * Fix ctrlp config * Disable merge --- autoload/SpaceVim/layers/ctrlp.vim | 2 +- config/plugins/ctrlp.vim | 23 +++++++++++------------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/autoload/SpaceVim/layers/ctrlp.vim b/autoload/SpaceVim/layers/ctrlp.vim index 9d136f1b1..4c1086b49 100644 --- a/autoload/SpaceVim/layers/ctrlp.vim +++ b/autoload/SpaceVim/layers/ctrlp.vim @@ -9,7 +9,7 @@ function! SpaceVim#layers#ctrlp#plugins() abort let plugins = [ \ ['ctrlpvim/ctrlp.vim', {'loadconf' : 1, 'merged' : 0}], - \ ['FelikZ/ctrlp-py-matcher'], + \ ['FelikZ/ctrlp-py-matcher', {'merged' : 0}], \ ['mattn/ctrlp-register', {'on_cmd' : 'CtrlPRegister'}], \ ['DeaR/ctrlp-jumps', {'on_cmd' : 'CtrlPJump'}], \ ['SpaceVim/vim-ctrlp-help', {'on_cmd' : 'CtrlPHelp'}], diff --git a/config/plugins/ctrlp.vim b/config/plugins/ctrlp.vim index fbaeff3c3..3df170356 100644 --- a/config/plugins/ctrlp.vim +++ b/config/plugins/ctrlp.vim @@ -1,3 +1,12 @@ +"============================================================================= +" ctrlp.vim --- ctrlp config +" Copyright (c) 2016-2019 Wang Shidong & Contributors +" Author: Wang Shidong < wsdjeg@outlook.com > +" URL: https://spacevim.org +" License: GPLv3 +"============================================================================= + + let s:SYS = SpaceVim#api#import('system') let g:ctrlp_map = get(g:,'ctrlp_map', '') @@ -33,11 +42,7 @@ endif if !exists('g:ctrlp_match_func') && (has('python') || has('python3')) let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' } endif -"nnoremap kk :CtrlPMixed -" comment for ctrlp-funky {{{ -nnoremap fu :CtrlPFunky -" narrow the list down with a word under cursor -nnoremap fU :execute 'CtrlPFunky ' . expand('') + let g:ctrlp_funky_syntax_highlight = get(g:, 'ctrlp_funky_syntax_highlight', 1) " }}} "for ctrlp_nerdtree {{{ @@ -46,12 +51,7 @@ let g:ctrlp_nerdtree_show_hidden = get(g:, 'ctrlp_nerdtree_show_hidden', 1) "for ctrlp_sessions{{{ let g:ctrlp_extensions = ['funky', 'sessions' , 'k' , 'tag', 'mixed', 'quickfix', 'undo', 'line', 'changes', 'cmdline', 'menu'] "}}} -"for k.vim {{{ -nnoremap qe :CtrlPK -"}}} -" for ctrlp-launcher {{{ -nnoremap pl :CtrlPLauncher -"}}} + ""for ctrlp-cmatcher {{{ "let g:ctrlp_max_files = 0 "let g:ctrlp_match_func = {'match' : 'matcher#cmatch' } @@ -60,7 +60,6 @@ nnoremap pl :CtrlPLauncher augroup Fix_command_in_help_buffer au! autocmd FileType help exec 'nnoremap :CtrlP ' . getcwd() .'' - au FileType help exec "nnoremap q :q" augroup END " vim:set et sw=2: