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

MacVim Change the red forward slash after directory name in NerdTree #103

Closed
b-goldney opened this issue Jan 4, 2021 · 2 comments
Closed

Comments

@b-goldney
Copy link

Thanks for the awesome theme. How can we change the forward slash to be a color that isn't red?

@sonph
Copy link
Owner

sonph commented Jan 15, 2021

Thanks, glad you like it!

I may be wrong, but I think NerdTree has a default set of color definitions that are not controlled by the onehalf themes. However if you just want to change the forward slash color, you can put this in the config file:

hi NERDTreeDirSlash guifg=5c6370 ctermfg=241

This will update the foreground color to match the comments. Change the color as you like :) For reference here's the list of color definitions: link.

Bonus: If you want to change other colors within NerdTree, type :hi in vim and you'll see a list of highlight groups. Scroll down the list to find NERDTree....

Screen Shot 2021-01-14 at 10 42 40 PM

@sonph sonph closed this as completed Jan 15, 2021
@b-goldney
Copy link
Author

Thank you - that worked.

One minor clarification for anyone else interested:
The following line worked for me (notice the "#" after guifg). Also, this has to come after the OneHalf theme loads. The colors I input match the background of OneHalf so the forward slash disappears.

hi NERDTreeDirSlash guifg=#282c34 ctermfg=236

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