Search code examples
vimnerdtree

How to filter out files by extension in NERDTree?


I would like to *.pyc files not to be shown in NERDTree vim plugin.

How to achieve that?


Solution

  • You want the NERDTreeIgnore option. For example, in your .vimrc:

    let NERDTreeIgnore = ['\.pyc$']
    

    Where NERDTreeIgnore is an array of regular expressions that match the files you want to exclude.