Skip to content

Instantly share code, notes, and snippets.

@kurtdavis
kurtdavis / .vimrc-git
Created November 19, 2012 19:29
git-vim fun
" Open path cursor is sitting on into new window
map gf <C-w><C-f>
" Git shortcuts
" Do a git diff on current buffer
map gd :!git diff -b %<CR>
" ShowGitStatus -- KD function to open buffer/window and display 'git status'
" to allow quick jumps to modded files in a repo.
map gs :ShowGitStatus<CR>