我想保留g:ctrlp_working_path_mode = 2的默认设置,但是我想要手动覆盖当前窗口中所有缓冲区的能力。
具体来说,我想发出一个ctrlp命令或更改设置根搜索目录的ctrlp配置变量,这样就可以使用该目录来进行所有的搜索,无论我在哪个缓冲区。
奖金问题:是否可以设置两个根目录,以便搜索它们并组合结果?
谢谢!
let g:ctrlp_working_path_mode = ‘ra’
‘c’ – the directory of the current file.
‘r’ – the nearest ancestor that contains one of these directories or files: .git .hg .svn .bzr
‘a’ – like c,but only if the current working directory outside of CtrlP is not a direct ancestor of the directory of the current file.
0 or ” (empty string) – disable this feature.
资料来源:https://github.com/kien/ctrlp.vim
另外,在这里:https://github.com/kien/ctrlp.vim/issues/292,作者提供了一种设置fullpath的方法:
:CtrlP /var/www/myproject/bla/bla/theme
原文地址:https://www.jb51.cc/vim/387664.html
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。