Created
November 7, 2010 19:59
-
-
Save gaveen/666372 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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