Saturday, December 28, 2019

Re: Why don't :diffget and :diffput allow completion after hitting or ?

jairlopez@etca.com.ve wrote:

> Hello Vim community,
>
> This is what the documentation in :help E787 says:
>
> > The [bufspec] argument above can be a buffer number, a pattern for a buffer
> > name or a part of a buffer name. Examples:
> >
> > :diffget Use the other buffer which is in diff mode
> > :diffget 3 Use buffer 3
> > :diffget v2 Use the buffer which matches "v2" and is in
> > diff mode (e.g., "file.c.v2")
>
>
> It would be nice if it can allow completion like the :buffer command currently
> does; specially when dealing with merge conflicts as described here:
> https://stackoverflow.com/questions/14904644/how-do-i-use-vimdiff-to-resolve-a-git-merge-conflict
>
> Maybe I'm missing something, so I wonder why <Tab> and <C-D> doesn't work in
> :diffget and :diffput.

Completion could indeed be improved for diffput & diffget.
But ideally, it should not be like :buffer, as :diffput :diffget
should only complete to buffer which are in diffmode and
also not complete the buffer name from which the diffput
or diffget originates.

Regards
Dominique

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAON-T_jxXWoT%2BhS8wiYa6-rc8wSecHT2895gxcaqLzS4g-ffdA%40mail.gmail.com.

No comments: