首先保证系统中的diff命令是可用的。Vim的diff模式是依赖于diff命令的。Vimdiff的基本用法就是: vimdiff [options] file1 file2 [file3] # vimdiff FILE_LEFT FILE_RIGHT 或者 # vim -d FILE_LEFT FILE_RIGHT 除了用这种方法启动vim的diff模式之外,我们还可以用分割
The further steps show an example of how to set up thevimdifftool for Vim. 2. Change thegit configto set the default merge tool: git config merge.tool [tool_name]Copy For example, if you are using Vim, run: git config merge.tool vimdiffCopy 3. Set the diff tool to show the comm...