scratch.vim
scratch.vim copied to clipboard
Adding option to dynamically resize the Scratch window.
Especially when using :ScratchPreview and keeping it open with just a few lines in the buffer I was annoyed by the wasted space.
The PR enables dynamic window resizing to the number of lines in the scratch buffer, capped at g:scratch_height (only if g:scratch_horizontal is disabled).