aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-24 09:52:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-24 09:52:21 +1200
commitbc48d680985b7849f01d11aa6a64a4d36f4a3be8 (patch)
tree543ae09a5bdb27955c85a06e40b62782ec0554d2
parentd401a47b349c0387dc772759f4b64db3881e6e51 (diff)
downloaddotfiles-bc48d680985b7849f01d11aa6a64a4d36f4a3be8.tar.gz
dotfiles-bc48d680985b7849f01d11aa6a64a4d36f4a3be8.zip
Rename scratch.vim to scratch_buffer.vim
-rw-r--r--vim/autoload/scratch_buffer.vim (renamed from vim/autoload/scratch.vim)2
-rw-r--r--vim/plugin/scratch.vim2
-rw-r--r--vim/plugin/scratch_buffer.vim2
-rw-r--r--vim/vimrc4
4 files changed, 5 insertions, 5 deletions
diff --git a/vim/autoload/scratch.vim b/vim/autoload/scratch_buffer.vim
index bf6566dc..c0ef7cfc 100644
--- a/vim/autoload/scratch.vim
+++ b/vim/autoload/scratch_buffer.vim
@@ -1,4 +1,4 @@
-function! scratch#(mods, count, ...) abort
+function! scratch_buffer#(mods, count, ...) abort
let command = []
call add(command, a:mods)
if a:count
diff --git a/vim/plugin/scratch.vim b/vim/plugin/scratch.vim
deleted file mode 100644
index 399f5a31..00000000
--- a/vim/plugin/scratch.vim
+++ /dev/null
@@ -1,2 +0,0 @@
-command! -bar -count=0 -nargs=* Scratch
- \ call scratch#(<q-mods>, <q-count>, <f-args>)
diff --git a/vim/plugin/scratch_buffer.vim b/vim/plugin/scratch_buffer.vim
new file mode 100644
index 00000000..c209c8b1
--- /dev/null
+++ b/vim/plugin/scratch_buffer.vim
@@ -0,0 +1,2 @@
+command! -bar -count=0 -nargs=* ScratchBuffer
+ \ call scratch_buffer#(<q-mods>, <q-count>, <f-args>)
diff --git a/vim/vimrc b/vim/vimrc
index b9b491e9..e88fe8b0 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1627,10 +1627,10 @@ nnoremap <silent> <Leader>* *N
nmap <Leader>8 <Leader>*
"" Leader,` opens a scratch buffer, horizontally split
nnoremap <silent> <Leader>`
- \ :<C-U>Scratch<CR>
+ \ :<C-U>ScratchBuffer<CR>
"" Leader,~ opens a scratch buffer, vertically split
nnoremap <silent> <Leader>~
- \ :<C-U>vertical Scratch<CR>
+ \ :<C-U>vertical ScratchBuffer<CR>
" And last, but definitely not least, I'm required by Vim fanatic law to
" include a mapping that reloads my whole configuration. This uses the