From defddaf75cf8b49fdd67824e72f9bf3b24b9ac4f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 24 Jul 2019 12:28:05 +1200 Subject: Spin scratch_buffer.vim plugin into a dist --- .gitmodules | 3 +++ IDEAS.md | 1 - vim/autoload/scratch_buffer.vim | 11 ----------- vim/bundle/scratch_buffer | 1 + vim/plugin/scratch_buffer.vim | 2 -- 5 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 vim/autoload/scratch_buffer.vim create mode 160000 vim/bundle/scratch_buffer delete mode 100644 vim/plugin/scratch_buffer.vim diff --git a/.gitmodules b/.gitmodules index b15ef0dc..e78d89ea 100644 --- a/.gitmodules +++ b/.gitmodules @@ -53,6 +53,9 @@ [submodule "vim/bundle/replace_operator"] path = vim/bundle/replace_operator url = https://sanctum.geek.nz/code/vim-replace-operator.git +[submodule "vim/bundle/scratch_buffer"] + path = vim/bundle/scratch_buffer + url = https://sanctum.geek.nz/code/vim-scratch-buffer.git [submodule "vim/bundle/select_old_files"] path = vim/bundle/select_old_files url = https://sanctum.geek.nz/code/vim-select-old-files.git diff --git a/IDEAS.md b/IDEAS.md index 64a85717..7622dd97 100644 --- a/IDEAS.md +++ b/IDEAS.md @@ -34,4 +34,3 @@ Ideas * There's no reason to limit `digraph_search.vim` to insert mode only * fortune.vim can be spun out into its own repository * put\_date.vim can be spun out into its own repository -* scratch\_buffer.vim can be spun out into its own repository diff --git a/vim/autoload/scratch_buffer.vim b/vim/autoload/scratch_buffer.vim deleted file mode 100644 index c0ef7cfc..00000000 --- a/vim/autoload/scratch_buffer.vim +++ /dev/null @@ -1,11 +0,0 @@ -function! scratch_buffer#(mods, count, ...) abort - let command = [] - call add(command, a:mods) - if a:count - call add(command, a:count) - endif - call add(command, 'new') - call extend(command, a:000) - execute join(command) - set buftype=nofile -endfunction diff --git a/vim/bundle/scratch_buffer b/vim/bundle/scratch_buffer new file mode 160000 index 00000000..f312e23a --- /dev/null +++ b/vim/bundle/scratch_buffer @@ -0,0 +1 @@ +Subproject commit f312e23a3fe5094b79127d8485737fe4438a8644 diff --git a/vim/plugin/scratch_buffer.vim b/vim/plugin/scratch_buffer.vim deleted file mode 100644 index c209c8b1..00000000 --- a/vim/plugin/scratch_buffer.vim +++ /dev/null @@ -1,2 +0,0 @@ -command! -bar -count=0 -nargs=* ScratchBuffer - \ call scratch_buffer#(, , ) -- cgit v1.2.3