【发布时间】:2011-01-21 10:39:02
【问题描述】:
我已将 'vimdiff' 设置为我的默认 svn-diff 工具,方法是将下面的行添加到 ~/.subversion/config
diff-cmd = /home/ravikirn/svndiff/diffwrap.sh
diffwrap.sh
!/bin/sh
# Configure your favorite diff program here.
DIFF="/usr/local/bin/vimdiff"
# Subversion provides the paths we need as the sixth and seventh
# parameters.
LEFT=${6}
RIGHT=${7}
# Call the diff command (change the following line to make sense for
# your merge program).
$DIFF $LEFT $RIGHT
但是,vimdiff 用所有难看的颜色来显示差异。我有黑色背景和绿色字体颜色,如何修改 vimdiff 以显示此差异的自定义颜色?我想要一个更愉快的体验。
【问题讨论】: