Move vim scratch command to separate file
This commit is contained in:
parent
fb139cbe4a
commit
9d692bcff0
3 changed files with 4 additions and 1 deletions
3
vim/scratch.vim
Normal file
3
vim/scratch.vim
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
command! -nargs=? Scratch enew
|
||||||
|
\ | set filetype=<args>
|
||||||
|
\ | set buftype=nofile
|
|
@ -492,7 +492,6 @@ function! s:snapshot()
|
||||||
endfun
|
endfun
|
||||||
command! Snapshot call <sid>snapshot()
|
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*\[ \?\].*$') |
|
command! Todo call matchadd('Todo', '^\s*\[ \?\].*$') |
|
||||||
\ call matchadd('Comment', '^\s*\[x\].*$') |
|
\ call matchadd('Comment', '^\s*\[x\].*$') |
|
||||||
\ call matchadd('Comment', '^\s*\[-\].*$') |
|
\ call matchadd('Comment', '^\s*\[-\].*$') |
|
||||||
|
|
1
vimrc
1
vimrc
|
@ -5,4 +5,5 @@ let &rtp=expand('<sfile>:p:h').'/vim,'.&rtp
|
||||||
|
|
||||||
run git.vim
|
run git.vim
|
||||||
run surround.vim
|
run surround.vim
|
||||||
|
run scratch.vim
|
||||||
run shame.vim
|
run shame.vim
|
||||||
|
|
Loading…
Reference in a new issue