Emacs之vdiff

1.Download and Install
<1>.
M-x package-install RET vdiff RET

Or

<2>.
https://github.com/justbur/emacs-vdiff

2.Set env
# emacs ~/.emacs
(require 'vdiff)
(define-key vdiff-mode-map (kbd "C-c") vdiff-mode-prefix-map)

3.Shortcut key
C-c p	vdiff-previous-hunk 上一个changs
C-c n	vdiff-next-hunk 下一个changs
C-c h	vdiff-hydra/body 快捷命令
C-c r	vdiff-receive-changes	右边同步到左边
C-c s	vdiff-send-changes	左边同步到右边
C-c f	vdiff-refine-this-hunk	高亮changs
C-c x	vdiff-remove-refinements-in-hunk 撤销高亮
C-c F	vdiff-refine-all-hunks	高亮所有changes
C-c w	vdiff-save-buffers	保存所有changs
C-c u	vdiff-refresh	刷新
C-c q	vdiff-quit	退出

 

你可能感兴趣的:(Emacs)