gpt4 book ai didi

vim - 如何限制 Vim Syntastic 位置列表窗口的大小

转载 作者:行者123 更新时间:2023-12-04 13:40:33 25 4
gpt4 key购买 nike

Vim 语法插件弹出错误和警告位置列表,它不必要地消耗比列表所需更多的屏幕空间:

enter image description here

如何配置 syntastic 以打开一个位置列表窗口,该窗口只有足够的行来显示列表?

最佳答案

谢谢lcd047指出答案。我在我的 vimrc 中添加了以下内容并且它起作用了:

" see :h syntastic-loclist-callback
function! SyntasticCheckHook(errors)
if !empty(a:errors)
let g:syntastic_loc_list_height = min([len(a:errors), 10])
endif
endfunction

关于vim - 如何限制 Vim Syntastic 位置列表窗口的大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44031017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com