mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Adding option to dynamically resize the Scratch window. #33

Open phux opened 5 years ago

phux commented 5 years ago

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).