I use MacVim for both general editing and as my git mergetool for diffing and resolving conflicts.
It would be really nice if I didn't have to Cmd+Shift+D every time I opened up mvimdiff and it would just hide the sidebar for me. Generally, diffing takes up so much of the window that the sidebar just makes everything harder to see.
Is there currently a way to do this? I was thinking of something like mvim -s to invoke the sidebar. That way I can leave the sidebar off by default, and just open any projects I want the sidebar on with mvim -s .
mvim -s .
There currently is no way to do this and I would rather not touch the CLI part of the codebase, as it makes it that much harder to maintain from upstream.
What might be an option, though, is to check for an env var, would that work for you?
People who use mvim frequently without the sidebar could set up a shell alias:
alias myvim='MVIM_SIDEBAR=off mvim'
@alloy yeah that works, definitely. whatever's easiest to integrate with upstream.