diff --git a/vimrc b/vimrc index 07ed25c..44f4570 100644 --- a/vimrc +++ b/vimrc @@ -139,6 +139,7 @@ imap " During an svn edit, display a split window with the diff enclosed map :new:read !svn diff:set syntax=diff buftype=nofilegg +map :let difffile=expand('%'):new:read '!git diff --cached '.difffile:set syntax=diff buftype=nofilegg noremap gf gf`" noremap `"