darkrc/vim/plugin/scratch.vim

3 lines
90 B
VimL

command! -nargs=? Scratch enew
\ | set filetype=<args>
\ | set buftype=nofile