Move vim scratch command to separate file

This commit is contained in:
Talia 2020-05-18 10:11:38 +02:00
parent fb139cbe4a
commit 9d692bcff0
3 changed files with 4 additions and 1 deletions

3
vim/scratch.vim Normal file
View file

@ -0,0 +1,3 @@
command! -nargs=? Scratch enew
\ | set filetype=<args>
\ | set buftype=nofile

View file

@ -492,7 +492,6 @@ function! s:snapshot()
endfun
command! Snapshot call <sid>snapshot()
command! -nargs=? Scratch enew | call <sid>init_generic_file() | set filetype=<args> | set buftype=nofile
command! Todo call matchadd('Todo', '^\s*\[ \?\].*$') |
\ call matchadd('Comment', '^\s*\[x\].*$') |
\ call matchadd('Comment', '^\s*\[-\].*$') |

1
vimrc
View file

@ -5,4 +5,5 @@ let &rtp=expand('<sfile>:p:h').'/vim,'.&rtp
run git.vim
run surround.vim
run scratch.vim
run shame.vim