我希望能够ctrlp到.gitignore和.circleci/等,但我不知道是什么阻止我打开以.开头的文件,我已经尝试禁用所有ctrlp的自定义并执行:PluginUpdate,但我不知道发生了什么。
我所在的目录有一个.gitignore,但它没有显示出来:

下面是我的来自vim的ctrlp变量:
: echo copy(g:)->filter('v:key =~# "^ctrlp"')
{'ctrlp_newcache': 0,
'ctrlp_map': '<c-p>',
'ctrlp_alltags': [],
'ctrlp_mruf_include': '',
'ctrlp_mruf_max': 250,
'ctrlp_allmixes': {},
'ctrlp_status_func': {
'prog': 'PowerlineStatuslineCallback_ctrlp_prog',
'main': 'PowerlineStatuslineCallback_ctrlp_main'},
'ctrlp_mruf_relative': 0,
'ctrlp_cmd': 'CtrlP',
'ctrlp_mruf_exclude': '',
'ctrlp_mruf_case_sensitive': 1,
'ctrlp_lines': [],
'ctrlp_mruf_save_on_update': 1,
'ctrlp_ext_vars': [],
'ctrlp_alldirs': [],
'ctrlp_allfiles': ['bashrc',
'bin/gus',
'Brewfile',
'bash/env',
'readme.md',
'osx/hacks',
'bash/config',
'bash/aliases',
'git/gitconfig',
'settings/sync.sh',
'bash/functions/focus.sh'],
'ctrlp_builtins': 2,
'ctrlp_buftags': {}}关于如何调试,为什么ctrlp不显示隐藏的/dot文件,或者如何调试,有什么想法吗?
发布于 2021-09-04 21:43:41
搜索文档(再次感谢) I found this source file with a setting let g:ctrlp_show_hidden=1,但它没有解决我的问题。
我还必须用:CtrlPClearAllCaches强制清除缓存,现在它起作用了!
虽然这解决了我眼前的问题,但我也找到了一篇相关的SO帖子,其中提到在定义自定义搜索脚本(如使用ag Use ag in ctrlp + vim )时,此设置在某些情况下不起作用
https://stackoverflow.com/questions/69057512
复制相似问题