24

I would like to hide object files (*.o) in the Vim NERDTree plugin. Does the plugin support this feature, yet?

nnyby
  • 1,359
  • 3
  • 13
  • 22

2 Answers2

33

You want to use the NERDTreeIgnore option, for example: let NERDTreeIgnore=['\.o$', '\~$']

Do :help NERDTreeIgnore for more information.

Neg_EV
  • 615
  • 6
  • 9
7

Hoping this might be helpful as per New NerdTree Documentation.

// put this in your .vimrc
set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store,*.min.*

// Nerdtree config for wildignore
let NERDTreeRespectWildIgnore=1
Priya
  • 171
  • 1
  • 3