Change SVN diff to vimdiff

Source: Internet
Author: User

When using securecrt during development, there is no graphical interface, and it is very difficult to view SVN version differences, mainly due to lack of graphical comparison under Win. Today we found a method to replace with vimdiff, which is better than simply looking at diff. However, we cannot choose to accept the version in a different place like win, you have to get started with the trade-off.

Create a file somewhere. If you do not have the permission or do not want to affect others, you are advised to place it in ~ /, Named. vimdiff. The content is as follows:

1#! /Bin/Sh2 # Configure your favorite diffProgramPath3Diff ="Vimdiff"4 # SVN diff command will pass in parameters of two files5Left =$ {6}6Right =$ {7}7 # Format required for splicing diff commands8$ Diff $ left $ right

Edit~ /. Subversion/config file, where

#Diff-Cmd = diff_program (Diff, Gdiff, etc .)

Replace

 
Diff-Cmd =/home/user-name/. vimdiff

You can. The effect is as follows:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.