From 9ce95d65649354b275b84146a59f4896dc9d3b8e Mon Sep 17 00:00:00 2001 From: Nao Ueda Date: Mon, 21 Sep 2020 09:09:24 +0900 Subject: Add `ctrp-matchfuzzy`. --- _config/110-ctrlp.vim | 4 ++++ vimrc | 1 + 2 files changed, 5 insertions(+) diff --git a/_config/110-ctrlp.vim b/_config/110-ctrlp.vim index 4970f68..ac66b5a 100644 --- a/_config/110-ctrlp.vim +++ b/_config/110-ctrlp.vim @@ -6,6 +6,10 @@ let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]node_modules$', \ } +if !empty(globpath(&rtp, 'autoload/ctrlp_matchfuzzy.vim')) + let g:ctrlp_match_func = {'match': 'ctrlp_matchfuzzy#matcher'} +endif + if !empty(globpath(&rtp, 'autoload/memolist.vim')) nmap mf :exe "CtrlP" g:memolist_path nmap mc :MemoNew diff --git a/vimrc b/vimrc index f5cbd02..cca52c7 100644 --- a/vimrc +++ b/vimrc @@ -127,6 +127,7 @@ Plug 'ctrlpvim/ctrlp.vim' Plug 'mattn/ctrlp-mark' Plug 'mattn/ctrlp-register' Plug 'mattn/ctrlp-launcher' +Plug 'mattn/ctrlp-matchfuzzy' "apt install ripgrep Plug 'mileszs/ack.vim' -- cgit v1.2.3-54-g00ecf