Update [extdiff] configuration sample for vimdiff.
Mathieu Clabaut
mathieu.clabaut at gmail.com
Tue Sep 12 21:15:56 UTC 2006
On 9/12/06, Christian Ebert <blacktrash at gmx.net> wrote:
>
> * Mathieu Clabaut on Tuesday, September 12, 2006 at 21:03:06 +0200:
> > On 9/12/06, Christian Ebert <blacktrash at gmx.net> wrote:
> >> * Thomas Arendsen Hein on Tuesday, September 12, 2006 at 18:49:57
> +0200:
> >>> I don't know if it is caused by a loaded plugin or something, but I
> >>> have to use:
> >>> opts.vimdiff = -f '+next' '+execute "DirDiff ".argv(0)." ".argv(1)'
> >>>
> >>> Otherwise vim complains that bdel 1 2 doesn't do anything useful,
> >>> and three times :q doesn't close vim, but say that there is a next
> >>> file.
> >
> > Hmm, strange.
> > Normaly vim is launched with two directory as argument, which leads to
> > 2 buffers number respectively 1 and 2.
> > You may try the following :
> > mkdir a b
> > gvim a b
> > then in vim type :ls to give a liste of loaded buffers.
> > If 2 buffers are open you can type :bdel 1 2 to kill them.
> >
> > As said Christian, it also works with +next;
>
> With '+next' I do not get the "E173: 1 more file to edit" when I
> do 3 times :q instead of :qa
>
> > And it also works with nothing.
>
> But again, I get E173.
>
> > The bdel was used to get rid of unused loaded buffer....
>
> Probably depends what buffers are exacly No. 1 & 2, and on when
> exactly :bd is executed during startup.
>
> > Tell us if you find why it doesn't work.
> > In the meanwhile we may add the following in the help :
> >
> > +# opts.vimdiff = -f '+ execute "DirDiff argv(0) argv(1)'
> ^
> "
> I am still for
>
> +# opts.vimdiff = -f '+next' '+execute "DirDiff" argv(0) argv(1)'
>
> even if I don't know why ;)
To be consistent, perhaps ?
:)
It's ok for me... Even if I do not have any E173 error here..
PS. thank to the guy who change the mailing list setting such that a Reply
is sufficient.... I do not forget to "Reply All" anymore ! A big win !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20060912/52357de7/attachment-0002.html>
More information about the Mercurial
mailing list