26

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

nnyby
  • 1,509

2 Answers2

34

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

Do :help NERDTreeIgnore for more information.

Neg_EV
  • 625
8

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
  • 181