PKV4=y{Merge.pyimport sublime, sublimeplugin import os from subprocess import Popen WINMERGE = '"%s\WinMerge\WinMergeU.exe"' % os.environ['ProgramFiles'] class MergeCommand(sublimeplugin.ApplicationCommand): def __init__(self): self.fileA = self.fileB = None def run(self, args): Popen('%s /e /ul /ur "%s" "%s"' % (WINMERGE, self.fileA, self.fileB)) def onActivated(self, view): if view.fileName() != self.fileA: self.fileB = self.fileA self.fileA = view.fileName()PKV4=#DDDefault.sublime-keymap PKV4=2j README.txtMerge plugin This command will diff/merge the last two selected files. You need to have WinMerge installed: http://winmerge.org/ Default shortcut is Ctrl+Alt+D. To use: click on view A, click on view B, press Ctrl+Alt+D. WinMerge will be launched with files A and B.PKV4=y{Merge.pyPKV4=#DDDefault.sublime-keymapPKV4=2j README.txtPK