Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening macvim on sudo mode makes menu bar color change to default #145

Closed
khlj opened this issue Nov 19, 2015 · 1 comment
Closed

Opening macvim on sudo mode makes menu bar color change to default #145

khlj opened this issue Nov 19, 2015 · 1 comment

Comments

@khlj
Copy link

khlj commented Nov 19, 2015

I set my menu bar color to be dark mode.
When I open macvim via terminal using mvim, it opens with dark menu bar.
However when I do sudo mvim filename it somehow overrides the dark menu bar and opens with a white menu bar (default).
Is this bug due to my settings or a known issue?

@splhack
Copy link
Contributor

splhack commented Nov 19, 2015

It's not a bug or issue.

Your /etc/sudoers env_keep doesn't include HOME if you are using OS X's sudo. Take a look at man sudo. You can use -e option.

$ sudo -e FILE

Or -E option.

$ sudo -E mvim FILE

@splhack splhack closed this as completed Nov 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants