Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使 vim Ctrlp 插件的结果(文件列表)只显示没有路径的文件名?
喜欢:
a.c b.c c.c
代替:
Desktop/Development/Project/XXX/src/a.c AnotherPath1/Project/XXX/src/b.c AnotherPath2/Project/XXX/src/c.c
将以下选项添加到您的 .vimrc:
let g:ctrlp_working_path_mode = 0
供参考: https ://github.com/kien/ctrlp.vim/issues/96