mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Allowing for custom name of the scratch buffer #35

Closed nova-nowiz closed 4 years ago

nova-nowiz commented 4 years ago

For now, the scratch buffer is named __Scratch__ I would like to change that to gain support for the vim-markdown plugin by renaming it scratch.md for example. I've seen in the code that it might be easily implementable if the name of a scratch buffer doesn't always have to be equal to __Scratch__ I will try to do a pull request as soon as possible. Also, I might help you on other issues as I really like the concept of a scratch window for example for todo list perposes (which is why I wanted markdown in the first place)

mtth commented 4 years ago

Hi @Narice,

I would like to change that to gain support for the vim-markdown plugin by renaming it scratch.md for example.

Can you get the features you need by setting the buffer's filetype? (There is an option for this.)