mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Relative height setting (50%, 100%), not just absolute units #4

Closed mcandre closed 10 years ago

mcandre commented 10 years ago

When I launch :Scratch, I would like for it to open a new window using the top half of the current window height (50%), not "10 lines", which may be too few on large monitors, and too many on tiny monitors.

I would really like to have an option to launch :Scratch at 100% height, which would be an awesome replacement for the default Vim splash screen!

mtth commented 10 years ago

That's a good idea!

With 5d5569552655d4374988645388516cd1769646bb, if you specify a float as g:scratch_height, it will be interpreted as that fraction of the current window size.