add git diff support

This commit is contained in:
Orien Vandenbergh 2014-11-04 14:24:15 -07:00
parent 386d5cdcf6
commit 363eb6cfa5

1
vimrc
View File

@ -139,6 +139,7 @@ imap <F1> <ESC>
" During an svn edit, display a split window with the diff enclosed " During an svn edit, display a split window with the diff enclosed
map <F9> :new<CR>:read !svn diff<CR>:set syntax=diff buftype=nofile<CR>gg map <F9> :new<CR>:read !svn diff<CR>:set syntax=diff buftype=nofile<CR>gg
map <F10> :let difffile=expand('%')<CR>:new<CR>:read '!git diff --cached '.difffile<CR>:set syntax=diff buftype=nofile<CR>gg
noremap gf gf`" noremap gf gf`"
noremap <C-^> <C-^>`" noremap <C-^> <C-^>`"