Support setting/detecting the file type in the scratch window, so if for example I set g:scratch_persistence_file to ~/.scratch.md, it would be nice to have markdown syntax enabled in the scratch window. Or alternatively introduce a variable like g:scratch_syntax so I can set the syntax manually in my .vimrc.
Support setting/detecting the file type in the scratch window, so if for example I set
g:scratch_persistence_file
to~/.scratch.md
, it would be nice to have markdown syntax enabled in the scratch window. Or alternatively introduce a variable likeg:scratch_syntax
so I can set the syntax manually in my.vimrc
.