NERDTree directory colours

comments 7

I just realised that my NERDTree directory colour wasn’t inline with my Vim theme, and I couldn’t help but be bugged by it. Seems it’s a simple change. To change colour you need to use the treeDir highlight group.

To keep it synced with the ir_black theme I use, I just added the following to my colour scheme file.


  1. Cristian says

    I had ugly blue text on black background couldn’t see a thing :( Thanks for the quick fix :):)

  2. Zeeshan Jan says

    Hi, I am not able to use these commands. In my case I have configured the color scheme for my VIM but my Nerdtree shows no highlighting what does the treeDir refer to and do i have to mention the second statement in the color scheme vim file?

      • Zeeshan Jan says

        Thanks for the quick response. I am trying to run the commands in the following manner:

        1. I place the command hi Directory guifg=#96CBFE guibg=#00ff00 in my .vimrc file

        2. Then I placethe command hi link Directory Keyword in my badwolf.vim color scheme file

        But when I restart VIM the NerdTree shows all white color.

      • Hates says

        IIRC my post was when I was using MacVim. Now I user Vim in the terminal something like this works for me:

        hi NERDTreeDir ctermfg=DarkGrey ctermbg=White

Leave a Reply to tiagofumo Cancel reply

Your email address will not be published.