相关疑难解决方法(0)

在CtrlP上性能下降,它无法忽略某些文件夹

我试图忽略vendor通过添加以下设置,.vimrcctrlP通过键入启动我ff

map ff :CtrlP<.><cr>
Run Code Online (Sandbox Code Playgroud)

但是,它仍然试图索引zeus包含vendor文件夹的文件夹下的所有文件.

在此输入图像描述

但在完成索引后,我仍然可以NOT搜索下的文件vendor,

在此输入图像描述

为什么CtrlP需要很长时间才能编入索引?

129 "add ctrlp.vim setting
130 ""
131 set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/vendor/*,*/\.git/*
132 let g:ctrlp_custom_ignore = 'tmp$\|\.git$\|\.hg$\|\.svn$\|.rvm$|.bundle$\|vendor'
133 let g:ctrlp_working_path_mode = 'ra'
134 let g:ctrlp_match_window_bottom=1
135 let g:ctrlp_max_height=25
136 let g:ctrlp_match_window_reversed=0
137 let g:ctrlp_mruf_max=500
138 let g:ctrlp_follow_symlinks=1
139 let g:ctrlp_clear_cache_on_exit=0
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

这是我的.vimrc,我以为可能会有一些设置相互冲突

hi  Comment  ctermfg=6

"make vim save and load the folding of the document each time it …
Run Code Online (Sandbox Code Playgroud)

vim ctrlp

28
推荐指数
3
解决办法
1万
查看次数

标签 统计

ctrlp ×1

vim ×1