Minimalistic plugin to automatically adjust the size (and position) of your quickfix and location list windows in Vim. Works out of the box. Checkout the documentation for detail of how the behavior looks like and how to customize it.
Install the plugin with your favorite manager tool. Here is an example using dein.vim:
call dein#add('weilbith/vim-qfloc-tailor')