From 9d692bcff0b18863e765ea163402a0f60da12c48 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 18 May 2020 10:11:38 +0200 Subject: [PATCH] Move vim scratch command to separate file --- vim/scratch.vim | 3 +++ vim/shame.vim | 1 - vimrc | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 vim/scratch.vim diff --git a/vim/scratch.vim b/vim/scratch.vim new file mode 100644 index 0000000..5449949 --- /dev/null +++ b/vim/scratch.vim @@ -0,0 +1,3 @@ +command! -nargs=? Scratch enew + \ | set filetype= + \ | set buftype=nofile diff --git a/vim/shame.vim b/vim/shame.vim index 3a7daed..1e18037 100644 --- a/vim/shame.vim +++ b/vim/shame.vim @@ -492,7 +492,6 @@ function! s:snapshot() endfun command! Snapshot call snapshot() -command! -nargs=? Scratch enew | call init_generic_file() | set filetype= | set buftype=nofile command! Todo call matchadd('Todo', '^\s*\[ \?\].*$') | \ call matchadd('Comment', '^\s*\[x\].*$') | \ call matchadd('Comment', '^\s*\[-\].*$') | diff --git a/vimrc b/vimrc index c4256ad..3dbeec3 100644 --- a/vimrc +++ b/vimrc @@ -5,4 +5,5 @@ let &rtp=expand(':p:h').'/vim,'.&rtp run git.vim run surround.vim +run scratch.vim run shame.vim