sonph / onehalf

Clean, vibrant and pleasing color schemes for Vim, Sublime Text, iTerm, gnome-terminal and more.
MIT License
1.78k stars 236 forks source link

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

Closed b-goldney closed 3 years ago

b-goldney commented 3 years ago

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

sonph commented 3 years ago

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

b-goldney commented 3 years ago

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