Skip to content

Commit

Permalink
Use vim-scripts/scrarch instead of kana/vim-scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
von committed Apr 1, 2016
1 parent 6055f5d commit 3a1bab3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/key-bindings.vim
Expand Up @@ -62,7 +62,7 @@ nnoremap <silent> <leader>g :Unite grep:.<cr>
:map <leader>R :redraw!<cr>
" Open a scratch buffer with 's'
:map <leader>s :ScratchOpen<cr>
:map <leader>s :call ToggleScratch()<CR>
" Run tig to do my git stuff
" silent turns off request for enter when tig is done, that requires
Expand Down
10 changes: 9 additions & 1 deletion plugin/scratch.vim
@@ -1,3 +1,11 @@
" Configuration related to scratch plugin

CommandCabbr scratch ScratchOpen
" Toggle scratch buffer (scratch.vim plugin)
" Kudos: http://blog.mojotech.com/a-veterans-vimrc/
function! ToggleScratch()
if expand('%') == g:ScratchBufferName
quit
else
Sscratch
endif
endfunction
6 changes: 3 additions & 3 deletions vimrc
Expand Up @@ -84,9 +84,6 @@ NeoBundle 'ciaranm/securemodelines'
let g:buffergator_suppress_keymaps=1 " Do this in key-bindings.vim
NeoBundle 'jeetsukumaran/vim-buffergator'

" Open a scratch buffer with :ScratchOpen
NeoBundle 'kana/vim-scratch'

" Allows definiton of arbitrary objects (prereusite of following)
NeoBundle 'kana/vim-textobj-user'
" vim-textobj-entire adds text object of 'ae' for entire buffer
Expand Down Expand Up @@ -153,6 +150,9 @@ NeoBundle 'tpope/vim-unimpaired'
" Tweaks for netrw
NeoBundle 'tpope/vim-vinegar'

" For :Scratch and Sscratch
NeoBundle 'vim-scripts/scratch.vim'

" Ring for yanked text
NeoBundle 'vim-scripts/YankRing.vim'

Expand Down

0 comments on commit 3a1bab3

Please sign in to comment.