Github GitHub - rgrinberg/evil-quick-diff: linediff.vim for evil
source link: https://github.com/rgrinberg/evil-quick-diff
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
evil-quick-diff
This is a replacement for the linediff.vim plugin. It's not a faithful port, as it uses ediff for diffing, but the spirit is the same.
The implementation itself is heavily based on evil-exchange.
The default operator key for diffing is god
. While goD
is used for canceling.
Installation
(use-package evil-quick-diff :init ;; change default key bindings (if you want) HERE ;; (setq evil-quick-diff-key (kbd "zx")) (evil-quick-diff-install))
Customization
You can change the default bindings by customizing evil-quick-diff-key
and/or
evil-quick-diff-cancel-key
before evil-quick-diff-install
is called.
Wish List
-
Support linewise and wordwise diffing. Ediff doesn't seem to have a convenient way to do this easily.
-
Support diffing post pretty-printing. To diff things such sexpressions easily.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK