mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Toggle Scratch Window? #17

Closed justinmoon closed 9 years ago

justinmoon commented 9 years ago

Is it possible to toggle the scratch window?

What I mean by this is:

Is there a way I can achieve this?

Thanks

mtth commented 9 years ago

3f969e6ce68ca37c3ea66d7e4dcac1f09a2232dc adds a :ScratchPreview command which should do what you want :). Let me know if you had something else in mind.

jdsutherland commented 6 years ago

I think making :Scratch close the scratch buffer when called from the scratch buffer would be ideal behavior. I'll submit a PR if you're interested.

:ScratchPreview is useful if you want to reference the scratch while making changes in other buffers but I find myself rarely doing this; I mostly want to add to or view the scratch. I prefer keeping this plugin to a single toggle mapping for simplicity.