使用 vim ctrlp (control-p) plugin ,当我执行 control+p
命令搜索文件时,显示结果的窗口最多 10 行高。我怎样才能让它更大,并占据我的整个窗口,以便一次看到更多结果?
最佳答案
设置 ctrlp_match_window
的 max
值(在您的 vim session 或 .vimrc 文件中),例如,
:let g:ctrlp_match_window = 'min:4,max:999'
每 :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/