Vim CtrlP插件:手动设置根搜索目录?

我已阅读文档,但无法弄清楚这是否可能。

我想保留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

相关文章

解决方案:解决linux下vim乱码的情况:(修改vimrc的内容)全...
Linuxvi/vim所有的UnixLike系统都会内建vi文书编辑器,其他的...
      vim正则匹配:空行:/^$/  /^[\t]*$/注释...
$select-editorSelectaneditor.Tochangelater,run'sele...
上次手贱忘了保存,这次就简单做个备忘吧,把踩过的坑记一下...
Linux之文本编译器小结vim的优势所有的UNIX-LIKE习通都会内置...