最佳答案
谢谢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/