Sunday, March 30, 2014

Re: Suggestion for vim -diff behavior change

Justin Keyes wrote:

> On Fri, Mar 28, 2014 at 4:53 PM, Josef Fortier <josef.fortier@gmail.com> wrote:
> > I've only really actively used diff mode recently (as opposed to using it as a visual diff tool). The default folding update on a change has led me astray more then once.
> >
> > I've learned the workaround only today, zo and zc, but the auto-folding behavior seems to me to be a real UI issue. I believe that diff mode should:
> >
> > * leave the initial folding alone (it's quite useful)
> > * leave the change markers in place (this is less important)
> > * but **not** refold.
> >
> > In almost all diff resolution workflows I can imagine, we want to **review** the changes. Auto-folding assumes that we are omniscient and do not need to review.
>
> I agree. The initial folding is welcome, but auto-folding after 'do'
> or 'dp' is jarring. You are talking about do/dp, right?

So then do:
:set foldmethod=manual

It will keep the current folds.


--
Never enter the boss's office unless it's absolutely necessary. Every boss
saves one corner of the desk for useless assignments that are doled out like
Halloween candy to each visitor.
(Scott Adams - The Dilbert principle)

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments: