From 363eb6cfa50edf5ef7c1db95f9f1fae9ca0693d5 Mon Sep 17 00:00:00 2001 From: Orien Vandenbergh Date: Tue, 4 Nov 2014 14:24:15 -0700 Subject: [PATCH] add git diff support --- vimrc | 1 + 1 file changed, 1 insertion(+) 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 `"