I use mercurial and I want to see modified change in Vim or GVim.
Normally there is hg diff
which show the modified changes in diff format.
but I want to see it in Vim as the original version and modified version side-by-side.
I try extdiff in ExtdiffExtension but it doesn't work and gvim open some blank file.
I know there is gvim -d localfile otherfile
but I don't know how to config mercurial.
If you're fine with vim, I'm been using this in my ~/.hgrc
for months without problems
[extensions]
hgext.extdiff =
[extdiff]
cmd.vimdiff =
[alias]
vi = vimdiff
vim = vimdiff
Then you just use
hg vimdiff somefile
The [alias]
section is optional, but it's nice to have.
I'm using v1.4.2, FWIW.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With