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

2 Answers 2


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

Do :help NERDTreeIgnore for more information.

  • 1
    Just to add you can use f to show/hide ignored files
    – Alex Mckay
    Oct 22, 2020 at 23:07

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .