diff options
-rw-r--r-- | vim/autoload/scratch_buffer.vim (renamed from vim/autoload/scratch.vim) | 2 | ||||
-rw-r--r-- | vim/plugin/scratch.vim | 2 | ||||
-rw-r--r-- | vim/plugin/scratch_buffer.vim | 2 | ||||
-rw-r--r-- | vim/vimrc | 4 |
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>) @@ -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 |