Created
July 7, 2012 16:18
-
-
Save botimer/3067054 to your computer and use it in GitHub Desktop.
Check working copy SVN diff
This file contains 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
" Open a new scratch buffer with the SVN diff of the current | |
" working directory (pwd). Set up mappings for \sd (with the | |
" default backslash leader) and F7 for convenience. | |
function! SvnDiff() | |
wincmd n | |
set buftype=nofile | |
exec "%!svn diff" | |
set ft=diff | |
endfunction | |
nmap <leader>sd :call SvnDiff()<CR> | |
nmap <F7> :call SvnDiff()<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment