vim - 如何增加 vim ctrlp 插件的结果/匹配窗口的高度/大小?

标签 vim vim-plugin ctrlp

使用 vim ctrlp (control-p) plugin ,当我执行 control+p 命令搜索文件时,显示结果的窗口最多 10 行高。我怎样才能让它更大,并占据我的整个窗口,以便一次看到更多结果?

screenshot showing results window limited to 10 lines

最佳答案

设置 ctrlp_match_windowmax 值(在您的 vim session 或 .vimrc 文件中),例如,

:let g:ctrlp_match_window = 'min:4,max:999'

screenshot showing setting the variable screenshot showing the results taking up the whole window

:help g:ctrlp_match_window :

*'g:ctrlp_match_window'*

Change the position, the listing order of results, the minimum and the maximum heights of the match window:
...

The minimum and maximum heights:
min:{n} - show minimum {n} lines (default: 1).
max:{n} - show maximum {n} lines (default: 10).

The maximum number of results:
results:{n} - list maximum {n} results (default: sync with max height).

另请参阅:https://github.com/kien/ctrlp.vim/issues/187#issuecomment-44924110

关于vim - 如何增加 vim ctrlp 插件的结果/匹配窗口的高度/大小?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41526131/

相关文章:

sorting - 如何使用 vi 对文件行进行排序?

vim-plugin - 在插入模式下使用 vundle 绑定(bind) ctrl-h 以在 vim 中向左移动

linux - 如何使用 Shell 脚本在 VIM 中的关键字前添加几行

vim - 在不同的 .vimrc 中使用 vimdiff?

vim - 在 vim session 中保存文件资源管理器面板

ctrlp - 如何在新窗口中按 CtrlP 拆分打开多个文件

vim - 如何在 VIM 中将文件夹添加到项目(如 Sublime Text)?

ctrlp - 打开所有选定的文件作为隐藏缓冲区?

Java (Eclim + Vim) "system.out.print"不工作