如何为vim ctrlp 插件增加results/match window 的height/size?
How to increase the height/size of the results/match window for the vim ctrlp plugin?
用vimctrlp (control-p) plugin,当我执行control+p
命令搜索文件时,显示结果的window最多10行高。我怎样才能让它变大,并占据我的整个 window 以便一次可以看到更多结果?
设置 ctrlp_match_window
的 max
值(在您的 vim 会话或您的 .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
用vimctrlp (control-p) plugin,当我执行control+p
命令搜索文件时,显示结果的window最多10行高。我怎样才能让它变大,并占据我的整个 window 以便一次可以看到更多结果?
设置 ctrlp_match_window
的 max
值(在您的 vim 会话或您的 .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