Skip to content

Instantly share code, notes, and snippets.

@gaveen
Created November 7, 2010 19:59
Show Gist options
  • Select an option

  • Save gaveen/666372 to your computer and use it in GitHub Desktop.

Select an option

Save gaveen/666372 to your computer and use it in GitHub Desktop.
" Set keys to toggle Scratch buffer
function! ToggleScratch()
if expand('%') == g:ScratchBufferName
quit
else
Sscratch
endif
endfunction
map <leader>s :call ToggleScratch()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment