Skip to content

Instantly share code, notes, and snippets.

@botimer
Created July 7, 2012 16:18
Show Gist options
  • Save botimer/3067054 to your computer and use it in GitHub Desktop.
Save botimer/3067054 to your computer and use it in GitHub Desktop.
Check working copy SVN diff
" 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