当我在 $HOME 目录的根目录中打开 CtrlP 时,CtrlP 的默认文件模式太慢。这是因为我的主目录中有太多文件和目录。
我已经按照this answer加快了扫描速度使用 ag
命令代替。然而,扫描速度仍然很慢。
所以,我想将MRU模式设置为CtrlP的默认模式。如何做到这一点?
最佳答案
我同意@romainl的回答,但是为了回答这个问题:
来自:help CtrlP
*'g:ctrlp_map'*
Use this option to change the mapping to invoke CtrlP in |Normal| mode: >
let g:ctrlp_map = '<c-p>'
*'g:ctrlp_cmd'*
Set the default opening command to use when pressing the above mapping: >
let g:ctrlp_cmd = 'CtrlP'
放入你的 vimrc :
let g:ctrlp_map='<c-p>'
let g:ctrlp_cmd = 'CtrlPMRU'
关于vim - 在CtrlP中,如何将 `mru`模式设置为默认模式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33991689/