Vim NERDTree colors
Asked Answered
N

4

15

I want to change default blue color of folders

enter image description here

How to set it?

Neils answered 28/9, 2011 at 14:49 Comment(2)
look in the helpfiles for nerdtree, I believe it's listed there...Sot
~/.vim/bundle/nerdtree$ grep -r "color" * ~/.vim/bundle/nerdtree$ grep -r "cterm" * ~/.vim/bundle/nerdtree$ grep -r "guiterm" * - no results :(Neils
K
32
:hi Directory guifg=#FF0000 ctermfg=red
Kuhlmann answered 28/9, 2011 at 16:37 Comment(4)
How do you change the color of the "expand" icons (basically the + signs)Hammered
@Hammered There are two highlight groups for NERDTree "expand" sign, so basically Change "Directory" in the above command to "NERDTreeClosable" and "NERDTreeOpenable"Thapsus
how can i use this in my .vimrc? i need to set this command every time i open vimCianca
@CarlosMartinez put the above in the .vimrc and it will workPostern
C
4

If you want to customize file colors based on extension, I created this plugin. You can use it with vim-devicons, but If you don't have it, you can add this line to your .vimrc and it will highlight the filenames:

let g:NERDTreeFileExtensionHighlightFullName = 1
Clair answered 16/8, 2016 at 6:57 Comment(0)
A
1

Not a heavy vim user, but, I think you can add the following to your .vimrc to highlight the folders/directories in Cyan

highlight Directory ctermfg=cyan

Have only tried this out in MacOS 10.14

Achromatous answered 28/3, 2019 at 21:9 Comment(1)
Works in "Red Hat Enterprise Linux 7' as wellAluminum
J
0

NERDTree doesn't provide such an option but looking at the source and reading about highlight you could come up with some customization.

Jude answered 28/9, 2011 at 16:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.