Unpredictable diff split behaviour #2084
simonmclean
started this conversation in
General
Replies: 1 comment
-
Horizontal versus vertical is determined based on the window width, as documented. Long term it might get phased out but I don't take changes like that lightly. If you don't like it use
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A common part of my workflow before I commit is to do a quick visual scan of my changes. I do
:tab G
, move my cursor over a file, and thendd
. But I've found the result ofdd
can be quite inconsistent in how it decides to perform the split. Usually it'll leave the status view at the top, and then open 2 buffers underneath like this (which I like)But other times it'll do
And other times it'll take over the whole status view like
I know I can eliminate the vertical vs horizontal inconsistency by using
dv
. But it feels like it should be more predicable, anddv
still can have inconsistent results.So I'm just wondering whether this is a Vim thing, or a Fugitive thing? And whether there's some way I can mitigate it? I think what it comes down to is that there's some algorithm which decides how to lay things out, whereas I'd like to have complete control of that myself.
Beta Was this translation helpful? Give feedback.
All reactions