You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using vim-fugitive to view different versions of myfile from different branches: while viewing a given file in currentbranch, I give the command :Gvsplit otherbranch:%.
However, the FugitiveStatusline() still shows [Git(currentbranch)] in both windows, and myrepo/.git/<SHA>/myfile in the new window: this long statusline is harder to read, and does not show the essential information, which is the name of the branch, otherbranch, associated with this version of the file.
Instead, I would like to make the new window's statusline show [Git(otherbranch)] while still listing the file's path the same as in the first window: myrepo/myfile.
What would be the best way to go about making this customization?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using vim-fugitive to view different versions of
myfile
from different branches: while viewing a given file incurrentbranch
, I give the command:Gvsplit otherbranch:%
.However, the
FugitiveStatusline()
still shows[Git(currentbranch)]
in both windows, andmyrepo/.git/<SHA>/myfile
in the new window: this long statusline is harder to read, and does not show the essential information, which is the name of the branch,otherbranch
, associated with this version of the file.Instead, I would like to make the new window's statusline show
[Git(otherbranch)]
while still listing the file's path the same as in the first window:myrepo/myfile
.What would be the best way to go about making this customization?
Beta Was this translation helpful? Give feedback.
All reactions