summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNao Ueda <nao.uedder@gmail.com>2020-09-21 09:09:24 +0900
committerNao Ueda <nao.uedder@gmail.com>2020-09-21 09:09:24 +0900
commit9ce95d65649354b275b84146a59f4896dc9d3b8e (patch)
treee0a8f2e42906c2f007c42b78ca522703631bb127
parentffc0092b1d9aee00585f4796c9f42653fe99ef78 (diff)
downloadvimrc-9ce95d65649354b275b84146a59f4896dc9d3b8e.tar.gz
vimrc-9ce95d65649354b275b84146a59f4896dc9d3b8e.tar.bz2
vimrc-9ce95d65649354b275b84146a59f4896dc9d3b8e.zip
Add `ctrp-matchfuzzy`.
-rw-r--r--_config/110-ctrlp.vim4
-rw-r--r--vimrc1
2 files changed, 5 insertions, 0 deletions
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 <Leader>mf :exe "CtrlP" g:memolist_path<cr><f5>
nmap <Leader>mc :MemoNew<cr>
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'