gvimdiff作为git的mergetool的配置文件(转载)

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

原文出处http://linuxtoy.org/archives/merging-with-git.html
编辑 ~/.gitconfig 文件

[merge]
   tool = whatever_you_want
[mergetool "whatever_you_want"]
#    cmd = "gvim --noplugin --remote-tab-silent \"+set buftype=nowrite\"
#\"$PWD/$MERGED\" && sleep 1;\
#           gvim --remote-send \":split $PWD/$REMOTE:set
#buftype=nowrite:vertical diffsplit $PWD/$LOCAL:vertical diffsplit
#$PWD/$BASE:set buftype=nowritel\""
#    cmd = "gvim --noplugin \"$PWD/$MERGED\" \
#        +\":split $PWD/$REMOTE\" +\":set buftype=nowrite\" \
#        +\":vertical diffsplit $PWD/$LOCAL\" +\":set buftype=nowrite\" \
#        +\":vertical diffsplit $PWD/$BASE\" +\":set buftype=nowrite\" \
#        +\":wincmd l\""
   cmd = "gvim --noplugin \"$PWD/$MERGED\" \
       +\":split $PWD/$REMOTE\" +\":set buftype=nowrite\" \
       +\":vertical diffsplit $PWD/$LOCAL\" +\":set buftype=nowrite\" \
       +\":vertical diffsplit $PWD/$BASE\" +\":set buftype=nowrite\" \
       +\":wincmd l\""

转载于:https://my.oschina.net/eric0593/blog/122520

你可能感兴趣的:(gvimdiff作为git的mergetool的配置文件(转载))