To expand the width of a split to the longest line in your file press <leader>m. To collapse the split back to its original size just press <leader>m again.
To expand the height of a split to the lenght of your file press <leader>M. To collapse the split back to its original size just press <leader>M again.
Copyright (c) Tobias Macey. Distributed under the same terms as Vim itself.