Vim syntastic plugin pops up the errors and warnings location list and it needlessly consumes more screen space than needed for the list:
How can I configure syntastic to open a location list window that has only enough lines to show the list?
Thank you lcd047 for pointing out the answer. I added the following to my vimrc and it worked:
" 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With