mtth / scratch.vim

Unobtrusive scratch window
MIT License
395 stars 32 forks source link

Default :Scratch windows to a certain programming language format? #3

Closed mcandre closed 10 years ago

mcandre commented 10 years ago

scratch.vim is really cool! I'd love to use it to pop up a quick "markdown" window, since I spend a lot of time reporting bugs.

How could I configure my ~/.vimrc so that :Scratch opens in markdown format by default?

mtth commented 10 years ago

b62ac6e0835f0dc89c4258724b410337512fd1d2 added a g:scratch_filetype option you can use! E.g. in your ~/.vimrc:

let g:scratch_filetype = 'markdown'

Let me know if this doesn't fit your use case.

kminh commented 8 years ago

Maybe we can improve this further by prompting for filetype when creating a new scratch buffer (not on reuse)? Perhaps something like :ScratchType.