add git diff support
This commit is contained in:
parent
386d5cdcf6
commit
363eb6cfa5
1
vimrc
1
vimrc
@ -139,6 +139,7 @@ imap <F1> <ESC>
|
||||
|
||||
" 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 <F10> :let difffile=expand('%')<CR>:new<CR>:read '!git diff --cached '.difffile<CR>:set syntax=diff buftype=nofile<CR>gg
|
||||
|
||||
noremap gf gf`"
|
||||
noremap <C-^> <C-^>`"
|
||||
|
Loading…
Reference in New Issue
Block a user